Re: moving containers need help [message #42912 is a reply to message #42851] |
Thu, 16 June 2011 11:34  |
seanfulton
Messages: 105 Registered: May 2007
|
Senior Member |
|
|
Simplest thing is:
mkdir /newvz
mount /dev/sda2 /vz
mount /dev/sda3 /newvz
/etc/rc.d/init.d/vz stop
cd /vz
find . -print | cpio -pvdum ../newvz
when it's done,
umount /vz
umount /newvz
mount /dev/sda3 /vz
/etc/rc.d/init.d/vz start
THEN MAKE SURE YOU EDIT /etc/fstab
With this approach, you will still have your data on /dev/sda2 if for some reason you messed it up, and you can retrieve it by doing:
mkdir /oldvz
mount /dev/sda2 /oldvz
Good luck!
sean
|
|
|