Saurabh Deochake
2013-Mar-19 07:00 UTC
[libvirt-users] Errors while using blkiotune command
Hi all, I want to limit the I/O bandwidth inside the container, so I used virsh command blkiotune. But when I enter a command: virsh # blkiotune lxcguest --weight 250 I get following errors: error: Unable to change blkio parameters error: Requested operation is not valid: blkio cgroup isn't mounted I also have blkio cgroup mounted. What can be the problem? Thanks in advance. Regards, Saurabh Deochake -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130319/62f97e17/attachment.htm>
On 03/19/2013 01:00 AM, Saurabh Deochake wrote:> Hi all, > > I want to limit the I/O bandwidth inside the container, so I used virsh > command blkiotune. But when I enter a command: > > virsh # blkiotune lxcguest --weight 250 > > I get following errors: > > error: Unable to change blkio parameters > error: Requested operation is not valid: blkio cgroup isn't mounted > > I also have blkio cgroup mounted. What can be the problem?Have you restarted libvirtd since you mounted the blkio cgroup? Which version of libvirt are you running, on what platform? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 621 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130319/f243501f/attachment.sig>
Saurabh, please make sure blkio controller has been mounted on your host firstly then need to restart libvirtd service after manually mounting it. # lssubsys cpuset cpu cpuacct memory devices freezer net_cls blkio or # grep blkio /proc/mounts cgroup /cgroup/blkio cgroup rw,relatime,blkio 0 0 -- Regards, Alex ----- Original Message ----- From: "Saurabh Deochake" <saurabh.d04 at gmail.com> To: libvirt-users at redhat.com Sent: Tuesday, March 19, 2013 3:00:53 PM Subject: [libvirt-users] Errors while using blkiotune command Hi all, I want to limit the I/O bandwidth inside the container, so I used virsh command blkiotune. But when I enter a command: virsh # blkiotune lxcguest --weight 250 I get following errors: error: Unable to change blkio parameters error: Requested operation is not valid: blkio cgroup isn't mounted I also have blkio cgroup mounted. What can be the problem? Thanks in advance. Regards, Saurabh Deochake _______________________________________________ libvirt-users mailing list libvirt-users at redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users