The sufficient OSD capabilities to enable write access on cephfs

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

 



Hi guys,

I have a Ceph Cluster up and running and cephfs created (all done by
ceph-ansible).

I following the guide to mount the volume on CentOS7 via FUSE.

When I mount the volume as the default admin (client.admin), everything
works fine just like normal file system.

Then I created a new client just for FUSE mount purpose, follow this guide:
https://docs.ceph.com/docs/master/cephfs/mount-prerequisites/

The ceph fs authorize command created a new client with the following caps:

[client.wp_test]
        key = AQDAEc9ebLXjGhAAxEGqTuTvCOoN30g4UzF5jw==
        caps mds = "allow rw"
        caps mon = "allow r"
        caps osd = "allow rw tag cephfs data=cephfs"


It can mount the volume, and I can touch a file. But when I tried write
data, such as editing a new text or cat a file, I got some read-only error
or

[root@mon-6-26 ceph_root]# cat test.txt
cat: test.txt: Operation not permitted

if I modified the OSD cap to "allow *", the it allows write again.

Can anyone suggest what have been done incorrectly?

We are using

14.2.9 (581f22da52345dba46ee232b73b990f06029a2a0)
nautilus (stable)

Cheers,
Derrick
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[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