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.
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.
