Complex Issue and need a solution !

Discussion in 'Site & Server Administration' started by coun_vincent, Nov 5, 2012.

  1. #1
    Hey ,

    The issue is Dedicated server went down ( apache2 going down ) everytime /Var Folder got full . if i check the space by
    df -h
    Code (markup):
    :
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1             323M  174M  132M  57% /
    tmpfs                 5.9G     0  5.9G   0% /lib/init/rw
    udev                  5.9G  148K  5.9G   1% /dev
    tmpfs                 5.9G     0  5.9G   0% /dev/shm
    /dev/sda9             432G   11G  400G   3% /home
    /dev/sda8             368M   11M  339M   3% /tmp
    /dev/sda5             8.3G  3.9G  4.1G  49% /usr
    /dev/sda6             2.8G  1.1G  1.6G  41% /var
    Code (markup):
    As you see above there's a issue on the Partition and that was a mistake of ancient Administrator .

    My Question is how i can fix that issue ? or there's any way to change the partition and make /tmp , /usr , /var and /home in the same Partition to avoid that flood in size without losing the currently system and files and configuration ....etc ?

    thanks in advance
     
    Solved! View solution.
    coun_vincent, Nov 5, 2012 IP
  2. #2
    Yes, you can either resize the partitons, move them and/or use a loopback partition. Your best bet though would be to get another server, parition it in a better manner and then move everything over.

    A simple fix, but a not very good one would be to move some /var directories that are filling up into /home.

    Like
    mkdir /home/var
    mv /var/log /home/var/log
    ln -s /home/var/log /var/log

    And so on

    Also if you need this done for you in a secure manner that will last, pm me and I can help.
     
    blockdos, Nov 5, 2012 IP
  3. wetbupa

    wetbupa Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Yes, your /dev/sda1 doesn't have enough space for normal performance.I guess that the company which provided the server for you didn't configure the server partitions properly and you can ask them to change it according to your needs.
     
    wetbupa, Nov 5, 2012 IP
  4. samirj09

    samirj09 Well-Known Member

    Messages:
    335
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #4
    Need to know more about your setup here. What exactly are you running on this server? If you are running cPanel, disabling eximstats can help. Also, changing the location of the MySQL databases can also be beneficial.
     
    samirj09, Nov 6, 2012 IP