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

José Manuel Giner jm at ginernet.com
Fri Aug 18 21:34:08 MSK 2017


On 07/09/2016 17:38, Dmitry Mishin wrote:
> 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.



No,

prlsrvctl tc restart

don't reset the vznetstat values



[root at ns1015 ~]# vznetstat -v b3ecac8e-e421-42d5-8728-ca9b597e7d40
UUID                                 Net.Class     Input(bytes) 
Input(pkts)        Output(bytes) Output(pkts)
b3ecac8e-e421-42d5-8728-ca9b597e7d40 0                     0           0 
                    0           0
b3ecac8e-e421-42d5-8728-ca9b597e7d40 1              22040995      321106 
             34216734      358678
[root at ns1015 ~]#


[root at ns1015 ~]# prlsrvctl tc restart
Network shaping has been successfully restarted
[root at ns1015 ~]#


[root at ns1015 ~]# vznetstat -v b3ecac8e-e421-42d5-8728-ca9b597e7d40
UUID                                 Net.Class     Input(bytes) 
Input(pkts)        Output(bytes) Output(pkts)
b3ecac8e-e421-42d5-8728-ca9b597e7d40 0                     0           0 
                    0           0
b3ecac8e-e421-42d5-8728-ca9b597e7d40 1              22048023      321156 
             34224852      358721
[root at ns1015 ~]#





>>
>> 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
> 
> 
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
> 


-- 
José Manuel Giner
http://ginernet.com


More information about the Users mailing list