FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

SuSE 9.1 SP2 Ent. Server

 


ChrisCh
Hey everyone. im having a lil problem here. after installing SuSE 9.1 SP2 Ent. Server, I decided that /var, /usr, /home and /opt would be better suited on logical volumes. The problem is that the server is already built, and the above directories already exist at /.

Here is what I am thinking:

1) My volume group already exists --> Dell01
2) create logical volume
lvcreate -L 2G -n lvol4 /dev/Dell01
3) make filesystem
mkfs -t reiserfs /dev/Dell01/lvol4
4) modify fstab with the following entry:
/dev/Dell01/lvol4 /varNEW reiserfs acl,user_xattr 1 2
5) create mount point
mkdir /varNEW
6) mount varNEW
7) copy -R /var /varNEW

Okay. Now I've got the data copied to /varNEW. How do I rename /varNEW to /var? I'm stumped.
ocalhoun
It seems to me it would be easier to do this with YaST.
I would copy /var to the new drive, then set the mount point of that hard drive to /var.
You might need to log in as root and delete /var after copying it...
Sounds risky, make sure you do a full backup first!
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.