[ceph pacific 16.2.9]

When creating a NFS export using "ceph nfs export apply ... -i export.json" for 
a subdirectory of /cephfs, does the subdir that you wish to export need to be 
pre-created or will ceph (or ganesha) create it for you?

I'm trying to create an "/shared" directory in a cephfs tree and export it 
using a JSON spec file, but the nfs-ganesha log file shows errors because it 
cannot mount or create the desired directory in cephfs.  If I manually create 
the directory prior to applying the export spec, it does work.  But it seems 
that ganesha is trying to create it for me so I'm wondering how to make that 
work.




29/06/2022 16:14:54 : epoch 62bc67c3 : foobar : ganesha.nfsd-6[sigmgr] 
create_export :FSAL :CRIT :Unable to mount Ceph cluster for /shared.

29/06/2022 16:14:54 : epoch 62bc67c3 : foobar : ganesha.nfsd-6[sigmgr] 
mdcache_fsal_create_export :FSAL :MAJ :Failed to call create_export on 
underlying FSAL Ceph

29/06/2022 16:14:54 : epoch 62bc67c3 : foobar : ganesha.nfsd-6[sigmgr] 
fsal_cfg_commit :CONFIG :CRIT :Could not create export for (/shared) to 
(/shared)

The JSON spec used looks like:


{

  "export_id": 2,

  "transports": [ "TCP" ],

  "cluster_id": "ceph",

  "path": "/shared",

  "pseudo": "/shared",

  "protocols": [4],

  "access_type": "RW",

  "squash": "no_root_squash",

  "fsal": {

    "name":  "CEPH",

    "user_id": "nfs.ceph.2",

    "fs_name": "cephfs"

  }

}


thanks,
   Wyllys Ingersoll

_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to