Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I have a cPanel server, and it's been running for over 6 months now. The problem comes now that as we have been collecting logs and installing additional programs, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    2

    /var full - need to resize


    Hello,

    I have a cPanel server, and it's been running for over 6 months now. The problem comes now that as we have been collecting logs and installing additional programs, the /var partition has become 100% full.

    The problem is, we have to keep all the logs of the server, so deleting them is not an option, basically I need to resize the /var partition.

    Now don't get me wrong, Iím no Linux beginner, but I am when it comes to partitioning, so if anyone can help with a step to step tutorial, I would be very grateful.

    Current system:
    Code:
    root@libre [/]# df
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/mapper/VolGroup00-LogVol04
                           1548144    379744   1089760  26% /
    /dev/sda1               101086     12584     83283  14% /boot
    none                    225460         0    225460   0% /dev/shm
    /dev/mapper/VolGroup00-LogVol05
                         293702680  19957648 258825764   8% /home
    /dev/mapper/VolGroup00-LogVol03
                           1032088     89516    890144  10% /tmp
    /dev/mapper/VolGroup00-LogVol01
                           8256952   4389464   3448060  57% /usr
    /dev/mapper/VolGroup00-LogVol02
                           2064208   2064208         0 100% /var
    /tmp
    Really I wish to take some out of the /home (say 4GB) and then add it to the /var partition. Now I understand that it may not be possible to do that, so if it's not, how do I create a partition on the /home one (of 8GB), and move the /var over to the new partition?

    Thanks,
    Richard Anderson.

  2. #2
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    You will be able to resize another partition to make space, but you cannot change where the var partition starts. Can you tar the logs and leave them in another location on the server, leaving a symlink perhaps?

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    2
    Quote Originally Posted by bigtomrodney
    You will be able to resize another partition to make space, but you cannot change where the var partition starts. Can you tar the logs and leave them in another location on the server, leaving a symlink perhaps?

    I've already tried that. The /var directory is still 100% full... I don't understand it.

  4. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Before planning to resize anything you'll want to identify which log(s) are growing so quickly and why.

    I've already tried that. The /var directory is still 100% full...
    So you tar'd and gzip'd the offending logs, and physically moved them to a different partition, and /var is still 100% full? (That doesn't make sense.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •