Re: add another vz directory [message #48840 is a reply to message #48829] |
Sat, 15 December 2012 20:21  |
seanfulton
Messages: 105 Registered: May 2007
|
Senior Member |
|
|
THis is simple. Create /vz2, then below that create:
/vz2/root
/vz2/private
/vz2/vztmp
/vz2/lock
To move an existing container, shut it down, copy the PRIVATE directory to /vz2 with something like:
cd /vz/private/160
find . -print | cpio -pvdum /vz2/private/160
Edit /etc/vz/conf/160.conf
change:
VE_ROOT and VE_PRIVATE from /vz to /vz2
Start the container!
To create a new container on /vz2, use:
vzctl create <ctid> [--ostemplate <name>] [--config <name>]
[--layout ploop|simfs] [--hostname <name>] [--name <name>] [--ipadd <addr>]
[--diskspace <kbytes>] [--private <path>] [--root <path>]
and set --private and --root
sean
|
|
|