<div dir="ltr"><div><div>Hi Satheesh,<br><br></div>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. <br><br>
</div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 20, 2013 at 1:54 PM, Satheesh Rajendran <span dir="ltr"><<a href="mailto:sathnaga@linux.vnet.ibm.com" target="_blank">sathnaga@linux.vnet.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Mar 20, 2013 at 10:27:21AM +0530, Saurabh Deochake wrote:<br>
> Hi Alex,<br>
> I checked it again and found that blkio controller is already mounted.<br>
> Output of above commands are also same.<br>
<br>
</div>Saurabh,<br>
<br>
Please check whether libvirt container is mounted in the blkio cgroup controller.<br>
(/cgroup/blkio/libvirt/), and if not the libvirt dameon has to be restarted, if it is<br>
available check for the respective domain is available in the respective container,<br>
(/cgroup/blkio/libvirt/qemu/<domain-name>), if not the respective domain also has to be<br>
restarted to get the cgroups reflected.<br>
<br>
I hope this helps.<br>
<br>
Regards,<br>
-Satheesh.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> So the problem still persists.<br>
><br>
><br>
> On Wed, Mar 20, 2013 at 8:23 AM, Alex Jia <<a href="mailto:ajia@redhat.com">ajia@redhat.com</a>> wrote:<br>
><br>
> > Saurabh, please make sure blkio controller has<br>
> > been mounted on your host firstly then need to<br>
> > restart libvirtd service after manually mounting<br>
> > it.<br>
> ><br>
> > # lssubsys<br>
> > cpuset<br>
> > cpu<br>
> > cpuacct<br>
> > memory<br>
> > devices<br>
> > freezer<br>
> > net_cls<br>
> > blkio<br>
> ><br>
> > or<br>
> ><br>
> > # grep blkio /proc/mounts<br>
> > cgroup /cgroup/blkio cgroup rw,relatime,blkio 0 0<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Regards,<br>
> > Alex<br>
> ><br>
> ><br>
> > ----- Original Message -----<br>
> > From: "Saurabh Deochake" <<a href="mailto:saurabh.d04@gmail.com">saurabh.d04@gmail.com</a>><br>
> > To: <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> > Sent: Tuesday, March 19, 2013 3:00:53 PM<br>
> > Subject: [libvirt-users] Errors while using blkiotune command<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Hi all,<br>
> ><br>
> > I want to limit the I/O bandwidth inside the container, so I used virsh<br>
> > command blkiotune. But when I enter a command:<br>
> ><br>
> > virsh # blkiotune lxcguest --weight 250<br>
> ><br>
> > I get following errors:<br>
> ><br>
> > error: Unable to change blkio parameters<br>
> > error: Requested operation is not valid: blkio cgroup isn't mounted<br>
> ><br>
> > I also have blkio cgroup mounted. What can be the problem?<br>
> ><br>
> ><br>
> > Thanks in advance.<br>
> ><br>
> ><br>
> > Regards,<br>
> > Saurabh Deochake<br>
> ><br>
> > _______________________________________________<br>
> > libvirt-users mailing list<br>
> > <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> > <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
> ><br>
<br>
> _______________________________________________<br>
> libvirt-users mailing list<br>
> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
<br>
</div></div></blockquote></div><br></div>