-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Take a look into how vzmigrate works. It's a bash script after all and it isn't that hard to reproduce what it really does.
If your container uses simfs file system, you can do an rsync of the files into another directory, twice. Once that is done, just suspend the container, make a final rsync and restore the container. That way the container was only offline for the time of the last rsync which shouldn't take very long. If your container uses ploop file system, you can do ploop send and ploop receive (I never looked into the details how it works, but vzmigrate will help you with this), suspend the container and then let ploop finalize the progress. You need to resume the container here too once done. For simfs, please take a look at my bash script here which does simfs -> ploop live migration: https://github.com/Fusl/simfs2ploop just to get an idea how you can do it with rsync. On 09/08/2015 03:12 PM, Nick Knutov wrote: > > This way takes time. It's definitely not _live_ migration ( > > > 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@openvz.org >> https://lists.openvz.org/mailman/listinfo/users > > > > > _______________________________________________ > Users mailing list > Users@openvz.org > https://lists.openvz.org/mailman/listinfo/users > - -- Best regards Kevin Holly - r...@hallowe.lt - http://hallowe.lt/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJV7wcXAAoJELAaqP3QtzpMe3cIAIoZgve/Q4/7BzzVKFIJw0Zw wrAT9oJZZKbWsCMgWEsRAXoPDQjAo5YyVRpgEj4JsAwAdchf+w1txdZu6n6rxexN mdaTaXHWMZ3xsNYCUVl5IQW6v0+Ny2vGEDkEK+FHzhD1NibnP3IJQfmsEBB8sFD7 e6xccVkeNcw6mZT8IklRcJmlcL2/tZ/y0D3YcqVY2PTm9/ayFkT0t1AZbElR4TJG pPuEKdDFXN9Q+tftI2YVwTsISU3B2rQtxNIQ/hK8tz35qoQmAu8RZwxtypdTGvXW cuSRC5SsXl1mNC0RHmrzVTRCw0ojZSIsAjT7yuTTG5F94LV4frNYY6d2M34DN3A= =mFo0 -----END PGP SIGNATURE----- _______________________________________________ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users