urgenthost
02-04-2001, 01:18 PM
One of our servers needs to have a partition resized.
Below is the output of the command df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda8 251M 142M 96M 60% /
/dev/hda1 23M 2.4M 19M 11% /boot
/dev/hda6 8.6G 22M 8.1G 0% /home
/dev/hda5 8.6G 7.7G 415M 95% /usr
/dev/hda7 251M 171M 66M 72% /var
We are using PLESK on that server and it uses the /usr partition.
Any comments or suggestions, please feel free to post.
Thanks!
DanielP
02-04-2001, 01:47 PM
Without taking mass pains i've been told by my techs when I came across the same problem with 1 of the servers is to just re-install the OS and set the partitions properly there the first time. :)
Thats the easiest way anyhow..
DanielP
02-04-2001, 01:48 PM
Also........
A USR partition normally doesn't take up a whole lot of space (2g and under) soo i would check your apache logs etc and delete them.......
Also make sure any/all log files are rotating @ least 1ce a month to prevent the drive from filling up.
Travis
02-04-2001, 02:17 PM
If you actually do need to resize the partition... literally the easiest way is probably to install another drive, partition as desired on the new drive, and copy all your data over there.
scottlaw
02-04-2001, 05:32 PM
We ran into this same problem with Plesk... It puts everything on the /usr partition instead of the usual /home partition where all your space. What we did, was add a symbolic link for the Plesk directory in the /usr partition and pointed it to our /home partition. It worked perfectly... Though Plesk told us it would not work :) You can also just move the web directory over to your /home partition with a symbolic link also...
Scott
webfors
02-04-2001, 07:07 PM
Yeah, here is the response I received from Plesk when I asked how they recommended I partition my drive using plesk:
265 mb for /
30 mb for /boot
400 mb for /home
265 mb for /var
The rest should go to the /usr directory.
At first I thought having everything stored in the /usr partition was a bad thing, but it seems to work just fine, not to mention this makes it very easy to backup my data.