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