On Fri, Jun 23, 2017 at 4:59 PM, David Turner <drakonstein@xxxxxxxxx> wrote: > What is the output of the following command? If a directory has no quota, > it should respond "0" as the quota. > # getfattr -n ceph.quota.max_bytes /mnt/cephfs/foo > > I tested this in my home cluster that uses ceph-fuse to mount cephfs under > the david user (hence no need for sudo). I'm using Ubuntu 16.04. > Interestingly, I had to install the attr package for the test. Everything > seemed to work properly. I can't immediately remember which version we enabled quota by default in -- you might also need to set "client quota = true" in the client's ceph.conf. John > It might be possible that it doesn't want an absolute path and wants a > relative path for setfattr, although my version doesn't seem to care. I > mention that based on the getfattr response. > > david@kaylee:/mnt/cephfs$ ceph-fuse --version > ceph version 10.2.7 (50e863e0f4bc8f4b9e31156de690d765af245185) > david@kaylee:/mnt/cephfs$ setfattr --version > setfattr 2.4.47 > david@kaylee:/mnt/cephfs$ setfattr -n ceph.quota.max_bytes -v 1000000000 > /mnt/cephfs/foo > david@kaylee:/mnt/cephfs$ getfattr -n ceph.quota.max_bytes /mnt/cephfs/foo > getfattr: Removing leading '/' from absolute path names > # file: mnt/cephfs/foo > ceph.quota.max_bytes="1000000000" > > On Fri, Jun 23, 2017 at 8:03 AM Stéphane Klein <contact@xxxxxxxxxxxxxxxxxxx> > wrote: >> >> Hi, >> >> I have a CephFS cluster based on Ceph version: 10.2.5 >> (c461ee19ecbc0c5c330aca20f7392c9a00730367) >> >> I use ceph-fuse to mount CephFS volume on Debian with Ceph version 10.2.5 >> >> I would like set quota on CephFS folder: >> >> # setfattr -n ceph.quota.max_bytes -v 1000000000 /mnt/cephfs/foo >> setfattr: /mnt/cephfs/foo: Invalid argument >> >> I don't understand, where is my mistake? >> >> Best regards, >> Stéphane >> -- >> Stéphane Klein <contact@xxxxxxxxxxxxxxxxxxx> >> blog: http://stephane-klein.info >> cv : http://cv.stephane-klein.info >> Twitter: http://twitter.com/klein_stephane >> _______________________________________________ >> ceph-users mailing list >> ceph-users@xxxxxxxxxxxxxx >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com