change path for 1 openvz vps

blueice

Renowned Member
Sep 30, 2009
28
5
68
Greece
icehosting.com
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?
 
..

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?

this is not supported, there is only one place for containers.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!