Re: Adding pool to cephfs, setfattr permission denied

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

 



On Fri, May 11, 2018 at 8:10 AM, Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx> wrote:
>
>
> Thanks! That did it. This 'tag cephfs' is probably a restriction you can
> add when you have mulitple filesystems? And I don't need x permission on
> the osd's?

The "tag cephfs data <name>" bit is authorising the client to access
any pools that are part of that filesystem.  If you have "allow rw"
without any other qualifier, then the client will be able to access
any non-cephfs pools as well.

John

>
>
>
>
> -----Original Message-----
> From: John Spray [mailto:jspray@xxxxxxxxxx]
> Sent: vrijdag 11 mei 2018 14:05
> To: Marc Roos
> Cc: ceph-users
> Subject: Re:  Adding pool to cephfs, setfattr permission
> denied
>
> On Fri, May 11, 2018 at 7:40 AM, Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx>
> wrote:
>>
>> I have added a data pool by:
>>
>> ceph osd pool set fs_data.ec21 allow_ec_overwrites true ceph osd pool
>> application enable fs_data.ec21 cephfs ceph fs add_data_pool cephfs
>> fs_data.ec21
>>
>> setfattr -n ceph.dir.layout.pool -v fs_data.ec21 folder
>> setfattr: folder: Permission denied
>
> You need "rwp" mds auth caps to modify layouts (see
> http://docs.ceph.com/docs/master/cephfs/client-auth/#layout-and-quota-restriction-the-p-flag)
>
> John
>
>>
>> Added the pool also to client auth
>>
>>      caps mds = "allow rw"
>>      caps mgr = "allow r"
>>      caps mon = "allow r"
>>      caps osd = "allow rwx pool=fs_meta,allow rwx pool=fs_data,allow
>> rwx pool=fs_data.ec21"
>>
>>
>> _______________________________________________
>> 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