Re: when I set quota on CephFS folder I have this error => setfattr: /mnt/cephfs/foo: Invalid argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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
--
_______________________________________________
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

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux