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 Im 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 Im 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
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com