Ok, im constantly running into issues with my /usr directory becoming 84% full etc... and its getting tiresome removing files.
Ive already moved and symlinked domlogs, still get the warnings.
Now, i have a secondary hard drive on this server, it is a 120GB drive with 109GB usable.
Currently, the setup is:
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 2.0G 331M 1.6G 18% /
/dev/hda8 83G 13G 66G 16% /home
/dev/hdc1 109G 2.5G 101G 3% /home2
/dev/hda6 2.0G 40M 1.8G 3% /tmp
/dev/hda3 3.9G 3.1G 656M 83% /usr
/dev/hda2 16G 1.9G 13G 13% /var
/dev/hda1 494M 21M 448M 5% /boot
tmpfs 505M 0 505M 0% /dev/shm
Obviously the /usr partition is too small but formatting etc.. is out of the question as this is a live server.
There is no critical data on the secondary drive (hdc), only tar.gz backups which are also on a remote server i have for backups.
My question:
Can i format & partition the secondary hdd (hdc) to have the below:
hdc1 - 9GB
hdc2 - 100GB
Then:
- mount /dev/hdc1 /usr2
- Copy all data from /usr to /usr2
- umount /dev/hda3 (usr)
- umount /dev/hdc1 (usr2)
- mount /dev/hdc1 /usr
- mount /dev/hdc2 /home2
It all looks good in writing unless someone can spot any flaws?
Also, could someone describe the steps on formatting and partitioning the drive via ssh? or point me in the right direction?
I know most will say hire an admin but as this is only a secondary drive i would rather learn myself, after all, what harm can learning on a secondary, unused drive do?
Any help is greatly appreciated, cheers.



LinkBack URL
About LinkBacks
Reply With Quote




