[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

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

Hi Eric, Yes, I restarted libvirtd after mounting the blkio controller. I have libvirt 0.9.10 running on my machine. I'm using CentOS 6.3 (64 bit) virsh # version Compiled against library: libvir 0.9.10 Using library: libvir 0.9.10 Using API: LXC 0.9.10 Running hypervisor: LXC 2.6.32 On Wed, Mar 20, 2013 at 3:27 AM, Eric Blake <eblake@redhat.com> wrote:
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

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@gmail.com> To: libvirt-users@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@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Hi Alex, I checked it again and found that blkio controller is already mounted. Output of above commands are also same. So the problem still persists. On Wed, Mar 20, 2013 at 8:23 AM, Alex Jia <ajia@redhat.com> wrote:
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@gmail.com> To: libvirt-users@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@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On Wed, Mar 20, 2013 at 10:27:21AM +0530, Saurabh Deochake wrote:
Hi Alex, I checked it again and found that blkio controller is already mounted. Output of above commands are also same.
Saurabh, Please check whether libvirt container is mounted in the blkio cgroup controller. (/cgroup/blkio/libvirt/), and if not the libvirt dameon has to be restarted, if it is available check for the respective domain is available in the respective container, (/cgroup/blkio/libvirt/qemu/<domain-name>), if not the respective domain also has to be restarted to get the cgroups reflected. I hope this helps. Regards, -Satheesh.
So the problem still persists.
On Wed, Mar 20, 2013 at 8:23 AM, Alex Jia <ajia@redhat.com> wrote:
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@gmail.com> To: libvirt-users@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@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Hi Satheesh, My LXC domain is available in /cgroup/blkio/libvirt/lxc/. I also restarted the libvirtd. After restart, I'm facing the same problem with memtune command also. On Wed, Mar 20, 2013 at 1:54 PM, Satheesh Rajendran < sathnaga@linux.vnet.ibm.com> wrote:
On Wed, Mar 20, 2013 at 10:27:21AM +0530, Saurabh Deochake wrote:
Hi Alex, I checked it again and found that blkio controller is already mounted. Output of above commands are also same.
Saurabh,
Please check whether libvirt container is mounted in the blkio cgroup controller. (/cgroup/blkio/libvirt/), and if not the libvirt dameon has to be restarted, if it is available check for the respective domain is available in the respective container, (/cgroup/blkio/libvirt/qemu/<domain-name>), if not the respective domain also has to be restarted to get the cgroups reflected.
I hope this helps.
Regards, -Satheesh.
So the problem still persists.
On Wed, Mar 20, 2013 at 8:23 AM, Alex Jia <ajia@redhat.com> wrote:
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@gmail.com> To: libvirt-users@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@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (4)
-
Alex Jia
-
Eric Blake
-
Satheesh Rajendran
-
Saurabh Deochake