[Users] live migration inside one physical node
Kir Kolyshkin
kir at openvz.org
Tue Sep 8 17:42:31 PDT 2015
On 09/08/2015 06:12 AM, Nick Knutov wrote:
> This way takes time. It's definitely not _live_ migration (
You mean, ploop copy is not used? Yes I think you can use ploop copy
for moving the top ploop delta to another location. Here's how:
0. figure out $VE_ROOT and $VE_PRIVATE (use vzlist -H -o root,private
$CTID).
1. figure out ploop device (/dev/ploopXXX) and top delta (relative to
VE_PRIVATE)
for the given CT -- reuse get_ploop_info() function from vzmigrate script.
2. copy everything but top delta to new location (in vzmigrate we do
rsync --exclude $VE_PRIVATE/$TOP_DELTA, guess you can do something
similar with cp).
3. run ploop copy; for the local case it will be as easy as
ploop copy -s $PLOOP_DEV -d $NEW_VE_PRIVATE/$TOP_DELTA -F "vzctl
suspend $CTID --suspend"
4. move the CT mount to the new place:
mount --move $VE_PRIVATE $NEW_VE_PRIVATE
5. change VE_PRIVATE:
vzctl set $CTID --private $NEW_VE_PRIVATE --save
6. restore container
vzctl suspend $CTID --resume
With these details, you'll be able to write the proper script in no time,
and I'll be happy to review it for you.
Kir.
>
>
> 08.09.2015 14:00, Kevin Holly [Fusl] ?????:
> > 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 > Users at openvz.org >
> https://lists.openvz.org/mailman/listinfo/users
>
> - --
> Best Regards,
> Nick Knutov
> http://knutov.com
> ICQ: 272873706
> Voice: +7-904-84-23-130
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJV7t7RAAoJELne4KEUgITtOcEH/0R1ACFQgJp6rcJ+2l17JvUp
> OdvzmBhRoWiNSHRvxlQTtGatfKY3lCFiFUlDlNu+mdkfQ5HKszuG4LM5n4zQ5brj
> MKtbGy7nQX0+9e/lujtLuHPF0tjLgTgevlWibJncvfDnvErvy2cvNyuVoztH9wS1
> vXcfexBhRR5pGkJTSNUqBPe/mfN0AkzkmOXGyuAfRPc2r6tx7AgMV90mPyHSaA7s
> 04ouKfDATOG/ReUbxILabCVttAMlyj1tZvQSOU7S9MrXQ/R5PqN8HS60AcJ6wlFs
> Jzij4B53jUnyNrFMX4P8uSbF4rlxF+g2qwv4bdPRRUedgosm2PUvUs1UUVBRgHU=
> =xNm3
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20150908/31395f0d/attachment.html>
More information about the Users
mailing list