Re: [vserver] PEBKACs I can't see with quotas and (unrelated) vserver init PID

From: Grzegorz Nosek <grzegorz.nosek_at_gmail.com>
Date: Thu 29 Jul 2010 - 09:02:19 BST
Message-ID: <AANLkTi=9O6fLVPveRC2eM-zcQJpaAz5_KU+Zvoqhb=B2@mail.gmail.com>

2010/7/29 Herbert Poetzl <herbert@13thfloor.at>:
> I remember that xfs has 'special' quota ioctls different
> from the 'normal' quota ioctls, but I'm not sure this
> is still true (or even was true :) as I haven't looked
> at xfs for some time now ....

Yup, they have an extra 'X' somewhere in the name.

> in any case, strace -fF should give some insight what
> ioctl (or syscall) fails with EPERM ...

Indeed. From my first mail:

quotactl(Q_XSETQLIM|GRPQUOTA, "/dev/hdv1", 200203, {4128768, 4000000,
0, 0, 0, 301808, 19809, 0}) = -1 EPERM (Operation not permitted)

BTW, I now see the guest is missing CAP_SYS_RESOURCE -- that would be
the reason, wouldn't it? Can I add it to a running guest? vattribute
--help does not really suggest a way to do it.

BTW2, echo SYS_RESOURCE >> /etc/vservers/<guest>/bcapabilites is the
proper way to enable it, right?

BTW3, what about the init pid issue?

Best regards,
 Grzegorz Nosek
Received on Thu Jul 29 09:02:39 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 29 Jul 2010 - 09:02:40 BST by hypermail 2.1.8