FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free 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!
Related topics
What is your operating system?
your specs
Linux or Windows on your computer?!
Quel(s) est/sont votre/vos système d'exploitation ?
BIG LINUX
Linux & Windows
Linux Needs Progs
Alias Maya for Linux - How to get it.
Windows XP the best?
SUSE Linux-Home LAN Server
I have a problem with .ogg system sounds on suse.
Running local perl scripts in open SuSE 10.3
Screen Resolution is wrong in all users
Joomla Genel Yapýlandýrma- Internal Server Error
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

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