[lxc-users] Allow quotas settings in container.
Devon B.
devon.b at virtualcomplete.com
Mon Mar 2 21:00:05 UTC 2015
I couldn't figure out how to allow user/group quotas inside the
container and I couldn't find many resources other than failed attempts
or unresolved reports.
I received the same error as you and tried making a fake device using
mknod to no avail. The problem is that the rootfs (/) is always only
mounted as (rw). So then it tries to fall back to the other / in
/proc/mounts which is the block device which isn't available in the
container (for good reason probably).
I think the only possible way I had seen that quotas had worked was
using a bind mount from the container to a host mount with usrquota
enabled. However, in my case, this did not seem appealing because I
would have to maintain two filesystems for each container (rootfs and
the usrquota) and from what I remember, the users/groups had to coexist
on the host and the container so it would only be viable on one container.
> PONCET Anthony <mailto:ff240 at msn.com>
> Monday, March 2, 2015 12:13 PM
> Hi,
> I know lxc doesn't manage or use quota, but how to used it in one
> container?
> I created one lv for my container, and I mounted with usrquota and
> grpquota options.
> But when I try to used quotacheck or quotaon (in my container), I have
> an error : "impossible to use stat() on /dev/mapper/vg_name-lv_name,
> file doesn't exist ".
> Do you have an idea?
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150302/3ac5a421/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150302/3ac5a421/attachment.jpg>
More information about the lxc-users
mailing list