[Users] VM stops slow, backup ETA and vznetstat question :): vznetstat answer

Dmitry Mishin dim at virtuozzo.com
Wed Sep 7 08:38:43 PDT 2016


Hello,

On 07/09/16 17:02, "users-bounces at openvz.org on behalf of Konstantin
Khorenko" <users-bounces at openvz.org on behalf of khorenko at virtuozzo.com>
wrote:

>On 09/06/2016 08:26 PM, Scott Dowdle wrote:
>> Greetings,
>>
>> ----- Original Message -----
>>> - When stopping a VM (qemu), it take around 1 minute to do. The node is
>>> not running on SSD, but with nothing running on it... we expect that
>>> there is something wrong here.
>>
>> What OS is the VM running?  Just out of curiosity, is there any
>>difference in shutdown time if it is initiated from with the VM vs.
>>prlctl?
>>
>>> - When running a backup, we get a implementation error: Failed to
>>>backed
>>> up the CT: Unimplemented. This feature is not implemented yet.
>>> There is a ETA on the backup implementation?
>>
>> I think the backup feature is going to be a Virtuozzo 7-only (aka pay)
>>feature per this comparison chart on the wiki:
>>
>> https://wiki.openvz.org/Comparison
>>
>> That doesn't mean you can't backup containers and VM with various
>>methods, just that it won't be integrated solution in OpenVZ.  That's my
>>guess anyway.  I've been backing up containers with OpenVZ Legacy using
>>a ploop-based snapshot method and can report that it is not difficult...
>>just slightly different in VZ7 for containers and VMs.
>>
>>> - We don't found how to reset to 0 (zero) the stats reported on
>>> "vznetstat". We are working on a control panel and we want do on each
>>> VM/CT a reset the first day of the month.
>
>No userspace tool to reset the statistics right now,
>but there are 2 ioctls for this functionality, so you can write your own
>tool.
Please try 'prlsrvctl tc restart'

Thank you,
Dmitry.
>
>Part of kernel commit
>
>commit b1cd150666a738018080b5e85516a9d35d27bbc5
>Author: Vladimir Davydov <vdavydov at parallels.com>
>Date:   Wed Jun 24 14:41:57 2015 +0400
>
>     vznetstat: Port
>diff-vznetstat-support-of-resetting-of-traffic-statistics-on-running-CTs
>
>@@ -748,6 +848,13 @@ static int venet_acct_ioctl(struct file *file,
>unsigned int cmd
>                         err = 0;
>                         venet_acct_destroy_all_stat();
>                         break;
>+               case VZCTL_TC_CLEAR_STAT:
>+                       err = venet_acct_clear_stat(arg);
>+                       break;
>+               case VZCTL_TC_CLEAR_ALL_STAT:
>+                       err = venet_acct_clear_all_stat();
>+                       break;
>+
>                 case VZCTL_TC_GET_BASE:
>                         err = venet_acct_get_base(arg);
>                         break;
>+++ b/include/uapi/linux/vzctl_netstat.h
>@@ -83,6 +83,9 @@ struct vzctl_tc_set_base {
>
>  #define VZCTL_TC_CLASS_NUM_V6          _IO(VZTCCTLTYPE, 16)
>
>+#define VZCTL_TC_CLEAR_STAT            _IO(VZTCCTLTYPE, 17)
>+#define VZCTL_TC_CLEAR_ALL_STAT                _IO(VZTCCTLTYPE, 18)
>+
>
>_______________________________________________
>Users mailing list
>Users at openvz.org
>https://lists.openvz.org/mailman/listinfo/users




More information about the Users mailing list