Like I said though, use a symlink per VE, not the entire vz2/vz directory. Then you won't have to change anything in the config. Just create a symlink for the virtual servers you want on the second SSD prior to migrating.

mkdir /vz2/private/VEID
ln -s /vz2/private/VEID /vz/private/VEID

Then try the migration, does it work?

On 9/11/2014 8:51 PM, Nick Knutov wrote:
I'm not good enough with such openvz internals and was hoped there is
ready solution. I found https://openvz.org/Vzmigrate_filesystem_aware
but it is for older version of vzmigrate.

Yes, I tried symlink and

1) /vz2 -> /vz2 as symlink on /vz and back
and I have changed private/root paths in CT conf after
vzmigrate+vzmigrate back and files was not removed after second
vzmigrate (from node where symlink was).

2) /vz -> /vz2
looks ok but I have to change pathes in CT config after so CT should be
restarted with downtime.

So, all this does not look good. May be it can be better with mount
--bind, but this is also not a good way.



12.09.2014 5:33, Devon B. пишет:
On 9/11/2014 7:00 PM, Nick Knutov wrote:
I have old server with usual disks and new server with two ssd which are
smaller size. I have /vz on one disk and /vz2 on another.

I want to live migrate CTs from the old server to specified partition on
the new server but I can't find how to do it. Does anybody know?

You could get dirty and do it manually with ploop send and
checkpointing.  However, have you tried just using a symlink from
/vz/private/VEID to /vz2/private/VEID?


_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to