On Apr 9, 2009, at 6:45 PM, Tom Haynes wrote: > > Steven Schlansker wrote: >> >> >> pnunez at coole:/etc/dfs$ pfexec sharemgr show -vp | head >> default nfs=() >> zfs >> zfs/cooler/linux nfs=() nfs:sys=(ro="*") >> /cooler/linux >> zfs/cooler/sodahome nfs=() nfs:sys=(ro="@10.1.1") > > Just being nit picky, but they all aren't inheriting the share you > had above. I.e., you've got > a read-only share to the 10.1.1/24 subnet here.
Yeah, that was intentional. Sorry about my words not matching what is actually happening - although this doesn't really change the problem :) >> /cooler/sodahome >> /cooler/sodahome/Cameron589 >> /cooler/sodahome/GnowAD >> /cooler/sodahome/RichLan >> /cooler/sodahome/ThomasEP >> ...(continues for thousands of lines) >> >> and watch the svc logs (with tail -f /var/svc/log/*) >> >> ==> /var/svc/log/network-nfs-server:default.log <== >> [ Apr 9 17:44:52 Enabled. ] >> [ Apr 9 17:44:52 Executing start method ("/lib/svc/method/nfs- >> server start"). ] >> No NFS filesystems are shared >> [ Apr 9 17:49:19 Method "start" exited with status 0. ] >> [ Apr 9 17:49:19 Stopping because service disabled. ] >> [ Apr 9 17:49:20 Executing stop method ("/lib/svc/method/nfs- >> server stop 142"). ] >> >> >> NFS then proceeds to shut down. >> First question - why does NFS shut down immediately even though I >> have configured shares? > > What do you get with: > > > svcs -xv svc:/network/nfs/server > > You might look at this thread: While it's starting up: svc:/network/nfs/server:default (NFS server) State: offline since Thu Apr 09 20:14:37 2009 Reason: Start method is running. See: http://sun.com/msg/SMF-8000-C4 See: man -M /usr/share/man -s 1M nfsd See: /var/svc/log/network-nfs-server:default.log Impact: This service is not running. Then it says: svc:/network/nfs/server:default (NFS server) State: online since Thu Apr 09 20:19:10 2009 See: man -M /usr/share/man -s 1M nfsd See: /var/svc/log/network-nfs-server:default.log Impact: None. And when the stop method finishes (according to the log) svc:/network/nfs/server:default (NFS server) State: disabled since Thu Apr 09 20:22:34 2009 Reason: Temporarily disabled by an administrator. See: http://sun.com/msg/SMF-8000-1S See: man -M /usr/share/man -s 1M nfsd See: /var/svc/log/network-nfs-server:default.log Impact: This service is not running. > > > > http://www.unix.com/sun-solaris/80574-nfs-service-offline-after-enabling.html > > I'll do some more checking later ... svcs -xv is empty, and rpcbind is on: online 12:12:42 svc:/network/rpc/bind:default > > > >> Second question - is it normal for NFS to take a while five minutes >> to start up? It seems like it should be faster, even with a few >> thousand exports... >> > > Look at http://developers.sun.com/solaris/articles/nfs_zfs.html for > a discussion on what is going on here. We have been working on it. :-> Cool, thanks. Good to know :) > > > >> Just for fun, i tried doing an export using >> pfexec share -F nfs -o ro /tmp >> and the same thing happened (nfs starts then shuts down) > > Try removing the zfs shares and doing this again? Same thing. It shares it, starts nfs/server, and then immediately disables it again. > > > This would be good because it would eliminate the large number of > shares being a problem. > >> >> /etc/dfs is: >> pnunez at cooler:/etc/dfs$ ls -lh >> total 2.5K >> -rw-r--r-- 1 root sys 354 2008-11-19 23:43 dfstab >> -rw-r--r-- 1 root root 89 2008-11-19 23:43 fstypes >> -rw-r--r-- 1 root root 0 2009-04-09 13:06 sharetab > > I.e., nothing is shared here... Right. For some reason zfs share and share -F nfs aren't sharing anything. How can I got about fixing this? Thanks, Steven