Looks like you are trying to write to the pseudo-root, mount /cephfs instead of /.
Paul -- Paul Emmerich Looking for help with your Ceph cluster? Contact us at https://croit.io croit GmbH Freseniusstr. 31h 81247 München www.croit.io Tel: +49 89 1896585 90 On Sat, Apr 6, 2019 at 1:07 PM <tho...@thomaswhite.se> wrote: > > Hi all, > > > > I have recently setup a Ceph cluster and on request using CephFS (MDS > version: ceph version 13.2.5 (cbff874f9007f1869bfd3821b7e33b2a6ffd4988) mimic > (stable)) as a backend for NFS-Ganesha. I have successfully tested a direct > mount with CephFS to read/write files, however I’m perplexed as to NFS > mounting as read-only despite setting the RW flags. > > > > [root@mon02 mnt]# touch cephfs/test.txt > > touch: cannot touch âcephfs/test.txtâ: Read-only file system > > > > Configuration of Ganesha is below: > > > > NFS_CORE_PARAM > > { > > Enable_NLM = false; > > Enable_RQUOTA = false; > > Protocols = 4; > > } > > > > NFSv4 > > { > > Delegations = true; > > RecoveryBackend = rados_ng; > > Minor_Versions = 1,2; > > } > > > > CACHEINODE { > > Dir_Chunk = 0; > > NParts = 1; > > Cache_Size = 1; > > } > > > > EXPORT > > { > > Export_ID = 15; > > Path = "/"; > > Pseudo = "/cephfs/"; > > Access_Type = RW; > > NFS_Protocols = "4"; > > Squash = No_Root_Squash; > > Transport_Protocols = TCP; > > SecType = "none"; > > Attr_Expiration_Time = 0; > > Delegations = R; > > > > FSAL { > > Name = CEPH; > > User_Id = "ganesha"; > > Filesystem = "cephfs"; > > Secret_Access_Key = "<key here>"; > > } > > } > > > > > > Provided mount parameters: > > > > mount -t nfs -o nfsvers=4.1,proto=tcp,rw,noatime,sync 172.16.32.15:/ > /mnt/cephfs > > > > I have tried stripping much of the config and altering mount options, but so > far completely unable to decipher the cause. Also seems I’m not the only one > who has been caught on this: > > > > https://www.spinics.net/lists/ceph-devel/msg41201.html > > > > Thanks in advance, > > > > Thomas > > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com _______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com