Thank you Paul. mount_path_pseudo does the trick. Now nfs v3 works on Linux, but on MAC OS, it mounts successfully, with empty folder:
bat8485maci:~ root# mount -t nfs -o vers=3 ceph-admin:/ceph /mnt/ceph bat8485maci:~ root# ls -l /mnt/ceph/ bat8485maci:~ root# This is how it looks like on Linux: root@yyang-deb9-64:~# mount -t nfs ceph-admin:/ceph /mnt/ceph mount.nfs: requested NFS version or transport protocol is not supported root@yyang-deb9-64:~# mount -t nfs -o vers=3 ceph-admin:/ceph /mnt/ceph root@yyang-deb9-64:~# ls -l /mnt/ceph/ total 2 drwxr-xr-x 3 root root 8566720930 Jun 27 08:32 Btnas1_stage drwxr-xr-x 3 root root 2776623737 Jun 27 08:37 Btnas2_stage drwxr-xr-x 6 batserve users 456266 Jun 25 21:30 include drwxrwxrwx 2 root root 0 Jun 27 08:32 scratch Is this a MAC OS nfs bug? or an nfs-ganesha issue? By the way, my /etc/ganesha/ganesha.conf is as below: EXPORT_DEFAULTS { SecType = sys; Protocols = 3; } NFS_CORE_PARAM { Enable_NLM = false; Enable_RQUOTA = false; Protocols = 3; mount_path_pseudo = true; } CACHEINODE { Dir_Chunk = 0; NParts = 1; Cache_Size = 1; } EXPORT { Export_ID=100; Protocols = 3; Transports = TCP,UDP; Path = /; Pseudo = /ceph; Tag = ceph; Access_Type = RW; Attr_Expiration_Time = 0; Squash = None; FSAL { Name = CEPH; } } Thanks, --Youzhong On Wed, Jun 27, 2018 at 2:55 AM, Paul Emmerich <paul.emmer...@croit.io> wrote: > NFS3 does not use pseudo paths usually. You can enable > the Mount_Path_Pseudo option in NFS_CORE_PARAM to > enable usage of pseudo fsal for NFS3 clients. (Note that > the NFS3 clients cannot mount the pseudo root itself, but > only subdirectories due to limitations in the inode size) > > > Paul > > 2018-06-26 18:13 GMT+02:00 Youzhong Yang <youzh...@gmail.com>: > >> NFS v4 works like a charm, no issue for Linux clients, but when trying to >> mount on MAC OS X client, it doesn't work - likely due to 'mountd' not >> registered in rpc by ganesha when it comes to v4. >> >> So I tried to set up v3, no luck: >> >> # mount -t nfs -o rw,noatime,vers=3 ceph-dev:/ceph /mnt/ceph >> mount.nfs: access denied by server while mounting ceph-dev:/ceph >> >> /var/log/ganesha/ganesha.log says: >> >> mnt_Mnt :NFS3 :INFO :MOUNT: Export entry / does not support NFS v3 for >> client ::ffff:172.21.24.38 >> >> My /etc/ganesha/ganesha.conf looks like this: >> >> EXPORT >> { >> Export_ID=100; >> Protocols = 3; >> Transports = TCP; >> Path = /ceph; >> Tag = ceph; >> Pseudo = /ceph; >> Access_Type = RW; >> Squash = None; >> FSAL { >> Name = CEPH; >> } >> } >> >> Any way to make it work? Thanks in advance. >> >> --Youzhong >> >> >> >> _______________________________________________ >> ceph-users mailing list >> ceph-users@lists.ceph.com >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >> >> > > > -- > Paul Emmerich > > Looking for help with your Ceph cluster? Contact us at https://croit.io > > croit GmbH > Freseniusstr. 31h > <https://maps.google.com/?q=Freseniusstr.+31h+81247+M%C3%BCnchen&entry=gmail&source=g> > 81247 München > <https://maps.google.com/?q=Freseniusstr.+31h+81247+M%C3%BCnchen&entry=gmail&source=g> > www.croit.io > Tel: +49 89 1896585 90 >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com