Hello everyone,
I'm hoping this is the right place to post to - I've just started
using OpenSolaris and would like to use it as a ZFS/NFS server for
some Linux/FreeBSD clients.
I do apologize if I'm doing anything particularly dumb - I've cobbled
this information from so many sources on the Internet that I hardly
even know what's the right way to do anything anymore :-p
I've set up all my ZFS filesystems (about 3000 of them - I made a
separate one for each user as I've heard recommended) and I'm trying
to share them all, using
pfexec zfs set sharenfs=ro pool/dataset
(the rest all inherit the sharenfs property)
I then run
pfexec zfs share -a
and I check sharemgr:
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")
/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?
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...
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)
/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
DFStab has only the comments that come with it, fstypes has:
nfs NFS Utilities
autofs AUTOFS Utilities
cachefs CACHEFS Utilities
smbfs CIFS Utilities
and sharetab is empty all the time.
Thanks for any tips and/or pointers! I have searched around but
either this isn't a normal problem or my google-fu is failing me today.
Best,
Steven Schlansker