[lustre-discuss] setting quotas from within a container

Andreas Dilger adilger at whamcloud.com
Sat Oct 21 13:14:25 PDT 2023


Hi Lisa,
The first question to ask is which Lustre version you are using?

Second, are you using subdirectory mounts or other UID/GID mapping for the container? That could happen at both the Lustre level or by the kernel itself.  If you aren't sure, you could try creating a new file as root inside the container, then "ls -l" the file from outside the container to see if it is owned by root.

You could try running "strace lfs setquota" to see what operation the -EPERM = -1 error is coming from. 

The other important question is whether you really want to allow root inside the container to be able to set the quota, or whether this should be reserved for root outside the container?

Cheers, Andreas

> On Oct 21, 2023, at 09:18, Lisa Gerhardt via lustre-discuss <lustre-discuss at lists.lustre.org> wrote:
> 
> 
> Hello,
> I'm trying to set user quotas from within a container run as root. I can successfully do things like "lfs setstripe", but "lfs setquota" fails with 
> 
> lfs setquota: quotactl failed: Operation not permitted
> setquota failed: Operation not permitted
> 
> I suspect it might have something to do with how the file system is mounted in the container. I'm wondering if anyone has any experience with this or if someone could point me to some documentation to help me understand what "setquota" is doing differently from "setstripe" to see where things are going off the rails.
> 
> Thanks,
> Lisa
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


More information about the lustre-discuss mailing list