Hi,
i want to change the path for one openvz vps in the proxmox 2 server (i want to put it in 2nd disk).
I have find 2 ways to do this:
1. create vps 101
## stop vz
/etc/init.d/vz stop
## mv the /var/lib/vz/root/101 and /var/lib/vz/private/101 to the new hdd
mv /var/lib/vz/root/101 /vz2/root/101
mv /var/lib/vz/private/101 /vz2/private/101
## create symbolic links from the new to the above paths
ln -s /vz2/root/101 /var/lib/vz/root/101
ln -s /vz2/private/101 /var/lib/vz/private/101
## start vz
/etc/init.d/vz start
2. create cps 101
## stop vz
/etc/init.d/vz stop
## mv the /var/lib/vz/root/101 and /var/lib/vz/private/101 to the new hdd
mv /var/lib/vz/root/101 /vz2/root/101
mv /var/lib/vz/private/101 /vz2/private/101
## edit the file /etc/pve/nodes/parnassus/openvz/101.conf and change the values VE_ROOT and VE_PRIVATE to the new paths
## start vz
/etc/init.d/vz start
after a fast check both is working but who is the preferred way to do this? What is the possible problems i can have in the future?
i want to change the path for one openvz vps in the proxmox 2 server (i want to put it in 2nd disk).
I have find 2 ways to do this:
1. create vps 101
## stop vz
/etc/init.d/vz stop
## mv the /var/lib/vz/root/101 and /var/lib/vz/private/101 to the new hdd
mv /var/lib/vz/root/101 /vz2/root/101
mv /var/lib/vz/private/101 /vz2/private/101
## create symbolic links from the new to the above paths
ln -s /vz2/root/101 /var/lib/vz/root/101
ln -s /vz2/private/101 /var/lib/vz/private/101
## start vz
/etc/init.d/vz start
2. create cps 101
## stop vz
/etc/init.d/vz stop
## mv the /var/lib/vz/root/101 and /var/lib/vz/private/101 to the new hdd
mv /var/lib/vz/root/101 /vz2/root/101
mv /var/lib/vz/private/101 /vz2/private/101
## edit the file /etc/pve/nodes/parnassus/openvz/101.conf and change the values VE_ROOT and VE_PRIVATE to the new paths
## start vz
/etc/init.d/vz start
after a fast check both is working but who is the preferred way to do this? What is the possible problems i can have in the future?