# ceph nfs export ls nfs-cephfs --detailed
[
{
"access_type": "RW",
"clients": [],
"cluster_id": "nfs-cephfs",
"export_id": 3,
"fsal": {
"fs_name": "myFs",
"name": "CEPH",
"user_id": "nfs.nfs-cephfs.3"
},
"path": "/volumes/_nogroup/test-new-dir/cb970711-3e9a-49c4-a738-65162c7e6c50",
"protocols": [
3,
4
],
"pseudo": "/testnew",
"security_label": false,
"squash": "no_root_squash",
"transports": [
"TCP",
"UDP"
]
},
{
"access_type": "RW",
"clients": [],
"cluster_id": "nfs-cephfs",
"export_id": 2,
"fsal": {
"fs_name": "myFs",
"name": "CEPH",
"user_id": "nfs.nfs-cephfs.2"
},
"path": "/volumes/_nogroup/sub1/4e41f944-ca76-4378-b03d-303cf0489fbd",
"protocols": [
3,
4
],
"pseudo": "/sub1",
"security_label": false,
"squash": "no_root_squash",
"transports": [
"TCP",
"UDP"
]
},
{
"access_type": "RW",
"clients": [],
"cluster_id": "nfs-cephfs",
"export_id": 1,
"fsal": {
"fs_name": "myFs",
"name": "CEPH",
"user_id": "nfs.nfs-cephfs.1"
},
"path": "/volumes/_nogroup/test/7d54164f-2286-46f2-820a-d5700ad1dc40",
"protocols": [
4
],
"pseudo": "/test2",
"security_label": false,
"squash": "no_root_squash",
"transports": [
"TCP"
]
}
]
这里只有testnew是挂成功的,其他的都失败了
# mount |grep nfs
10.0.19.209:/testnew on /mnt/nfs3 type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.0.19.208,local_lock=none,addr=10.0.19.209)
另外一个:
root@ww208:/mnt# mount -t nfs 10.0.19.209:/sub1 /mnt/nfs
mount.nfs: mounting 10.0.19.209:/sub1 failed, reason given by server: No such file or directory
请问是什么原因?

排查顺序:
ceph nfs cluster ls ceph nfs export ls cephnfs ceph fs subvolume ls myFs ceph fs subvolume info myFs <name> ceph orch ps | grep nfs另外:敲重点!!!
如果你是通过Dashboard页面
编辑的子目录,是不行的,你需要删除重建这种,为什么我也不太清楚,因为我编辑更改了子目录是不生效的,也许是某个ceph版本的bug吧。你的答案