Hello, Kevin!

Thank you for your feedback!

We selected this approach because rm -rf on /vz/root/CTID/* can
consume big amount of time due to "millions of files" inside image.

>From VPS provider side is very important provide to ability to
customer for fast container reinstall and we did it. But we did backup
after any reinstall operation (on ploop level too) for fast restore in
emergency case.

On Sat, Nov 29, 2014 at 4:29 AM, Kevin Holly [Fusl]
<[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Pavel,
>
> you really want to destroy a containers private directory on
> reinstall? Think about snapshots, they are stored in the private
> directory! For example, I want to snapshot a container, reinstall it
> for testing things and then want to restore a previous snapshot
> because the thing I wanted to test did not work.
>
> It would be better to just mount the filesystem of the container,
> delete the content within it and extract the .tar.gz file into it.
> Instead of deleting the content, you could also just mount the ploop
> device to /dev/ploopXXX, remove the partition and recreate it, then
> mount and extract the .tar.gz file.
>
> On 11/28/2014 08:28 PM, Pavel Odintsov wrote:
>> Hello, folks!
>>
>> Please take a look on my patch for vzctl reinstall ability. It's
>> very useful because reinstalling of already created ploop container
>> is a real pain.
>>
>> Thank you!
>>
>>
>>
>> _______________________________________________ Devel mailing list
>> [email protected] https://lists.openvz.org/mailman/listinfo/devel
>>
>
> - --
> Best regards
>
> Kevin Holly - [email protected] - http://hallowe.lt/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iQEcBAEBAgAGBQJUeSGKAAoJELAaqP3QtzpM2V8H/j/4UicgYpC2fogad6s3K+Ky
> 9pDPMgp/W7AbkTEgbyaSbJa0k0IvAAOxWi/JLX+PwoncvlEK6caWfpC3VH6WUFy7
> cftPA6viaGVazT43GG0DmDWpizaz2WzSJffrltp20RQAg9LkuJwTmcGnJMJzfk47
> 0bJlxPhHbox0HYMQLlQ+9cE53/l7eLMhnmSzuJRaxwJn0YWoj6KF1MoaGHXOx9TL
> CWh9Jh6hZ0l91TaxbXNKf9ADVXMxZbAuHEBmpWVGqbN4GMe/J1g5pZezMONqlkGD
> WIyf5tDjpc9jqviNhylAVmoeosJU6pFOew61dgajGwmyfpD4Yk7fO/HdrPPLqFY=
> =IRkv
> -----END PGP SIGNATURE-----
> _______________________________________________
> Devel mailing list
> [email protected]
> https://lists.openvz.org/mailman/listinfo/devel



-- 
Sincerely yours, Pavel Odintsov
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to