OpenVZ Forum


Home » General » Support » add another vz directory
add another vz directory [message #48829] Wed, 12 December 2012 16:20 Go to next message
iLinux85 is currently offline  iLinux85
Messages: 15
Registered: March 2010
Junior Member
hello

i had vpses on /vz folder which is default folder , i want to know is that possible to add 2nd hard disk and mount it as /vz2 , if yes how can i do it what is the tutorial ?

thanks
Re: add another vz directory [message #48840 is a reply to message #48829] Sat, 15 December 2012 20:21 Go to previous message
seanfulton is currently offline  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
Previous Topic: HA for VE haproxy
Next Topic: Two NIC, multiple subnets
Goto Forum:
  


Current Time: Mon May 13 00:55:44 GMT 2024

Total time taken to generate the page: 0.01414 seconds