Tom de Waal
2009-Sep-15 20:31 UTC
[zfs-discuss] zfs not sharing nfs shares on OSOl 2009.06?
Hi, I''m trying to identify why my nfs server does not work. I''m using a more or less core install of OSOL 2009.06 (release) and installed and configured a nfs server. The issue: nfs server won''t start - it can''t find any filesystems in /etc/dfs/sharetab. the zfs file systems do have sharenfs=on property (infact the pool the used to be on a working NV build 100). Some investigations that I did: zfs create -o sharenfs=os tank1/home/nfs # just an example fs cannot share ''tank1/home/nfs'': share(1M) failed filesystem successfully create, but not shared sharemgr list -v default enabled nfs zfs enabled nfs smb svcs -a | grep nfs disabled 19:52:51 svc:/network/nfs/client:default disabled 21:05:36 svc:/network/nfs/server:default online 19:53:23 svc:/network/nfs/status:default online 19:53:25 svc:/network/nfs/nlockmgr:default online 19:53:25 svc:/network/nfs/mapid:default online 19:53:30 svc:/network/nfs/rquota:default online 21:05:24 svc:/network/nfs/cbd:default cat /etc/dfs/sharetab is empty sharemgr start -v -P nfs zfs Starting group "zfs" share # no response share -F nfs /tank1/home/nfs zfs Could not share: /tank1/home/nfs: system error pkg list | grep nfs SUNWnfsc 0.5.11-0.111 installed ---- SUNWnfsckr 0.5.11-0.111 installed ---- SUNWnfss 0.5.11-0.111 installed ---- Note: I also enabled the smb server (CIFS), which works fine (and fills sharetab) Any suggestion how to resolve this? Am I missing an ips package or a file? Regards, Tom de Waal
Brandon Mercer
2009-Sep-15 23:14 UTC
[zfs-discuss] zfs not sharing nfs shares on OSOl 2009.06?
On Tue, Sep 15, 2009 at 4:31 PM, Tom de Waal <Tom.Dewaal at sun.com> wrote:> Hi, > > I''m trying to identify why my nfs server does not work. I''m using a more or > less core install of OSOL 2009.06 (release) and installed and configured a > nfs server. > > The issue: nfs server won''t start - it can''t find any filesystems in > /etc/dfs/sharetab. the zfs file systems do have sharenfs=on property (infact > the pool the used to be on a working NV build 100). > > Some investigations that I did: > zfs create -o sharenfs=os tank1/home/nfs # just an example fs > cannot share ''tank1/home/nfs'': share(1M) failed > filesystem successfully create, but not shared > > sharemgr list -v > default enabled nfs > zfs ? ? enabled nfs smb > > > svcs -a | grep nfs > disabled ? ? ? 19:52:51 svc:/network/nfs/client:default > disabled ? ? ? 21:05:36 svc:/network/nfs/server:default > online ? ? ? ? 19:53:23 svc:/network/nfs/status:default > online ? ? ? ? 19:53:25 svc:/network/nfs/nlockmgr:default > online ? ? ? ? 19:53:25 svc:/network/nfs/mapid:default > online ? ? ? ? 19:53:30 svc:/network/nfs/rquota:default > online ? ? ? ? 21:05:24 svc:/network/nfs/cbd:default > > cat /etc/dfs/sharetab is empty > > sharemgr start -v -P nfs zfs > Starting group "zfs" > > share > # no response > > share -F nfs /tank1/home/nfs zfs > Could not share: /tank1/home/nfs: system error > > pkg list | grep nfs > SUNWnfsc ? ? ? ? ? 0.5.11-0.111 ? ?installed ?---- > SUNWnfsckr ? ? ? ? 0.5.11-0.111 ? ?installed ?---- > SUNWnfss ? ? ? ? ? 0.5.11-0.111 ? ?installed ?---- > > Note: I also enabled the smb server (CIFS), which works fine (and fills > sharetab) > > Any suggestion how to resolve this? Am I missing an ?ips package or a file? >Make sure the hosts that are trying to connect resolve properly either by DNS or by putting them in the /etc/hosts file. Brandon
Tom What''s in the NFS server log? (svcs -x) BTW: Why are the NFS services disabled? If it has a problem I would have expected it to be in state maintenance. http://docs.sun.com/app/docs/doc/819-2252/smf-5?a=view DISABLED The instance is disabled. Enabling the service results in a transition to the offline state and eventually to the online state with all dependencies satisfied. MAINTENANCE The instance is enabled, but not able to run. Administrative action (through svcadm clear) is required to move the instance out of the maintenance state. The maintenance state might be a temporarily reached state if an administrative operation is underway. Trevor Tom de Waal wrote: Hi, I''m trying to identify why my nfs server does not work. I''m using a more or less core install of OSOL 2009.06 (release) and installed and configured a nfs server. The issue: nfs server won''t start - it can''t find any filesystems in /etc/dfs/sharetab. the zfs file systems do have sharenfs=on property (infact the pool the used to be on a working NV build 100). Some investigations that I did: zfs create -o sharenfs=os tank1/home/nfs # just an example fs cannot share ''tank1/home/nfs'': share(1M) failed filesystem successfully create, but not shared sharemgr list -v default enabled nfs zfs enabled nfs smb svcs -a | grep nfs disabled 19:52:51 svc:/network/nfs/client:default disabled 21:05:36 svc:/network/nfs/server:default online 19:53:23 svc:/network/nfs/status:default online 19:53:25 svc:/network/nfs/nlockmgr:default online 19:53:25 svc:/network/nfs/mapid:default online 19:53:30 svc:/network/nfs/rquota:default online 21:05:24 svc:/network/nfs/cbd:default cat /etc/dfs/sharetab is empty sharemgr start -v -P nfs zfs Starting group "zfs" share # no response share -F nfs /tank1/home/nfs zfs Could not share: /tank1/home/nfs: system error pkg list | grep nfs SUNWnfsc 0.5.11-0.111 installed ---- SUNWnfsckr 0.5.11-0.111 installed ---- SUNWnfss 0.5.11-0.111 installed ---- Note: I also enabled the smb server (CIFS), which works fine (and fills sharetab) Any suggestion how to resolve this? Am I missing an ips package or a file? Regards, Tom de Waal _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss -- Trevor Pretty | Technical Account Manager | +64 9 639 0652 | +64 21 666 161 Eagle Technology Group Ltd. Gate D, Alexandra Park, Greenlane West, Epsom Private Bag 93211, Parnell, Auckland www.eagle.co.nz This email is confidential and may be legally privileged. If received in error please destroy and immediately notify us. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Tom de Waal
2009-Sep-17 08:32 UTC
[zfs-discuss] zfs not sharing nfs shares on OSOl 2009.06?
All, After long and long searching: I found the reason: ips package SUNWnfsskr was missing . Thanks for all your replies and help. Regards, Tom. Tom de Waal wrote:> Hi, > > I''m trying to identify why my nfs server does not work. I''m using a more > or less core install of OSOL 2009.06 (release) and installed and > configured a nfs server. > > The issue: nfs server won''t start - it can''t find any filesystems in > /etc/dfs/sharetab. the zfs file systems do have sharenfs=on property > (infact the pool the used to be on a working NV build 100). > > Some investigations that I did: > zfs create -o sharenfs=os tank1/home/nfs # just an example fs > cannot share ''tank1/home/nfs'': share(1M) failed > filesystem successfully create, but not shared > > sharemgr list -v > default enabled nfs > zfs enabled nfs smb > > > svcs -a | grep nfs > disabled 19:52:51 svc:/network/nfs/client:default > disabled 21:05:36 svc:/network/nfs/server:default > online 19:53:23 svc:/network/nfs/status:default > online 19:53:25 svc:/network/nfs/nlockmgr:default > online 19:53:25 svc:/network/nfs/mapid:default > online 19:53:30 svc:/network/nfs/rquota:default > online 21:05:24 svc:/network/nfs/cbd:default > > cat /etc/dfs/sharetab is empty > > sharemgr start -v -P nfs zfs > Starting group "zfs" > > share > # no response > > share -F nfs /tank1/home/nfs zfs > Could not share: /tank1/home/nfs: system error > > pkg list | grep nfs > SUNWnfsc 0.5.11-0.111 installed ---- > SUNWnfsckr 0.5.11-0.111 installed ---- > SUNWnfss 0.5.11-0.111 installed ---- > > Note: I also enabled the smb server (CIFS), which works fine (and fills > sharetab) > > Any suggestion how to resolve this? Am I missing an ips package or a file? > > Regards, > > > > Tom de Waal-- Met vriendelijke groet, Tom de Waal Technical Account Manager Sun Microsystems Nederland B.V. Tel: +31 (0)33 451 57 38 Fax: +31 (0)33 455 30 58 e-mail: tom.dewaal at Holland.Sun.COM visit us at http://www.sun.nl