<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 09/08/2015 06:12 AM, Nick Knutov wrote:<br>
<blockquote cite="mid:55EEDED1.3080100@knutov.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
This way takes time. It's definitely not _live_ migration (<br>
</blockquote>
<br>
You mean, ploop copy is not used? Yes I think you can use ploop copy<br>
for moving the top ploop delta to another location. Here's how:<br>
<br>
0. figure out $VE_ROOT and $VE_PRIVATE (use vzlist -H -o
root,private $CTID).<br>
<br>
1. figure out ploop device (/dev/ploopXXX) and top delta (relative
to VE_PRIVATE)<br>
for the given CT -- reuse get_ploop_info() function from vzmigrate
script.<br>
<br>
2. copy everything but top delta to new location (in vzmigrate we do<br>
rsync --exclude $VE_PRIVATE/$TOP_DELTA, guess you can do something<br>
similar with cp).<br>
<br>
3. run ploop copy; for the local case it will be as easy as<br>
<br>
ploop copy -s $PLOOP_DEV -d $NEW_VE_PRIVATE/$TOP_DELTA -F "vzctl
suspend $CTID --suspend"<br>
<br>
4. move the CT mount to the new place:<br>
<br>
mount --move $VE_PRIVATE $NEW_VE_PRIVATE<br>
<br>
5. change VE_PRIVATE:<br>
<br>
vzctl set $CTID --private $NEW_VE_PRIVATE --save<br>
<br>
6. restore container<br>
<br>
vzctl suspend $CTID --resume<br>
<br>
With these details, you'll be able to write the proper script in no
time,<br>
and I'll be happy to review it for you.<br>
<br>
Kir.<br>
<br>
<blockquote cite="mid:55EEDED1.3080100@knutov.com" type="cite"> <br>
<br>
08.09.2015 14:00, Kevin Holly [Fusl] ?????:<br>
<span style="white-space: pre;">> Hi!
>
> You can just do "vzctl suspend CTID", move the container to
another place and then restore it there with "vzctl restore CTID"
after you changed the configuration file.
>
> On 09/08/2015 07:14 AM, Nick Knutov wrote:
>
> > Is it possible to do live migration between physical
disks inside one
> > physical node?
>
> > I suppose the answer is still no, so the question is
what is possible to
> > do for this?
>
>
> _______________________________________________
> Users mailing list
> <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a>
> <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a></span><br>
<br>
- -- <br>
Best Regards,<br>
Nick Knutov<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://knutov.com">http://knutov.com</a><br>
ICQ: 272873706<br>
Voice: +7-904-84-23-130<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2.0.22 (MingW32)
<br>
<br>
iQEcBAEBAgAGBQJV7t7RAAoJELne4KEUgITtOcEH/0R1ACFQgJp6rcJ+2l17JvUp
<br>
OdvzmBhRoWiNSHRvxlQTtGatfKY3lCFiFUlDlNu+mdkfQ5HKszuG4LM5n4zQ5brj
<br>
MKtbGy7nQX0+9e/lujtLuHPF0tjLgTgevlWibJncvfDnvErvy2cvNyuVoztH9wS1
<br>
vXcfexBhRR5pGkJTSNUqBPe/mfN0AkzkmOXGyuAfRPc2r6tx7AgMV90mPyHSaA7s
<br>
04ouKfDATOG/ReUbxILabCVttAMlyj1tZvQSOU7S9MrXQ/R5PqN8HS60AcJ6wlFs
<br>
Jzij4B53jUnyNrFMX4P8uSbF4rlxF+g2qwv4bdPRRUedgosm2PUvUs1UUVBRgHU=
<br>
=xNm3
<br>
-----END PGP SIGNATURE-----
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>