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.
- 11-11-2006 #1Just 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:
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?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
Thanks,
Richard Anderson.
- 11-11-2006 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
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?
- 11-11-2006 #3Just Joined!
- Join Date
- Nov 2006
- Posts
- 2
Originally Posted by bigtomrodney
I've already tried that. The /var directory is still 100% full... I don't understand it.
- 11-11-2006 #4
Before planning to resize anything you'll want to identify which log(s) are growing so quickly and why.
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.)I've already tried that. The /var directory is still 100% full...


Reply With Quote
