On 01/03/08, Markus Moeller wrote: > Hi, > > I am new to nfsv4 and looking for a good install guide/howto/troubleshooting > guide for nfsv4 on Solaris. > > I have setup a nfsv4 share: > > exportfs -v > share -F nfs > - /export/src sec=krb5,rw "NFSv4 test" > > If I mount it locally with: > > mount -o sec=krb5 opensolaris.solaris.home:/ /solaris_src > > and do a list on /solaris_src/export/src as root I get an empty directory > whereas a ls on /export/src shows all files.
Markus, The reason why you couldn't see files under /solaris_src/export/src was because you mounted your nfsv4 server's "/" directory(instead of /export/src) and you were running a build with no mirror mount support. In the above example, "/" and "/export" were part of nfsv4 pseudo file system, which was shared implicitly and helped client to navigate to shared directories on server. This is necessary because nfsv4 doesn't use MOUNT protocol. On the other hand, however, while your client could reach the shared directory(/export/src in this case), it was not allowed to cross file system boundaries on server. That's the reason why you couldn't see files under that directory. The recently integrated mirror-mount feature solves this problem by doing mount automatically when necessary. See more information on this page: http://www.opensolaris.org/os/project/nfs-namespace/ To solve your problem, you can either mount /export/src directly or upgrade to the latest nevada build. Thanks, Raymond > Kerberos is fully setup and working I have the following keytab entries: > > klist -ekt > Keytab name: FILE:/etc/krb5/krb5.keytab > KVNO Timestamp Principal > ---- ----------------- > --------------------------------------------------------- > 3 12/15/07 17:59:10 host/opensolaris.solaris.home at SOLARIS.HOME (ArcFour > with HMAC/md5) > 3 12/15/07 17:59:10 host/opensolaris.solaris.home at SOLARIS.HOME (Triple > DES cbc mode with HMAC/sha1) > 3 12/15/07 17:59:10 host/opensolaris.solaris.home at SOLARIS.HOME (DES cbc > mode with CRC-32) > 4 01/03/08 01:10:23 nfs/opensolaris.solaris.home at SOLARIS.HOME (ArcFour > with HMAC/md5) > > I enabled krb5 in /etc/nfssec.conf > > What did I do wrong or missed out ? > > > Thank you > Markus > > > This message posted from opensolaris.org > _______________________________________________ > nfs-discuss mailing list > nfs-discuss at opensolaris.org