Can't start NFS server - new to Solaris

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't start NFS server - new to Solaris

Anh Quach
Hi all, 

This seems like a really dumb question but, I can't figure out how to get the NFS server running on Solaris 11. Have tried everything I've found in the Oracle docs as well as posts I've found via Google. Pasted the output below... Any help greatly appreciated! Thanks in advance.

-Anh

root@bank:~# svcadm enable network/nfs/server

root@bank:~# svcs nfs/server

STATE STIME FMRI
disabled 14:06:16 svc:/network/nfs/server:default

OR:

root@bank:~# svcadm -v enable -rs network/nfs/server

svc:/network/nfs/server:default enabled.
svc:/milestone/network enabled.
svc:/network/loopback enabled.
svc:/network/ip-interface-management enabled.
svc:/network/socket-config enabled.
svc:/system/name-service/upgrade enabled.
svc:/network/physical:default enabled.
svc:/network/netcfg enabled.
svc:/network/physical:upgrade enabled.
svc:/network/datalink-management enabled.
svc:/network/nfs/nlockmgr enabled.
svc:/network/rpc/bind enabled.
svc:/system/filesystem/minimal enabled.
svc:/system/filesystem/usr enabled.
svc:/system/boot-archive enabled.
svc:/system/filesystem/root enabled.
svc:/system/device/local enabled.
svc:/system/identity:node enabled.
svc:/network/nfs/status enabled.
svc:/system/filesystem/local enabled.
svc:/network/npiv_config enabled.
svc:/system/sysevent enabled.
svc:/milestone/single-user enabled.
svc:/milestone/unconfig enabled.
svc:/system/filesystem/minimal:default enabled.
svc:/system/utmp:default enabled.
svc:/network/ip-interface-management:default enabled.
svc:/network/netcfg:default enabled.
svc:/milestone/config enabled.
svc:/system/device/local:default enabled.
svc:/milestone/unconfig:default enabled.
svc:/milestone/devices enabled.
svc:/system/devfsadm enabled.
svc:/system/device/fc-fabric enabled.
svc:/system/manifest-import enabled.
svc:/system/config-user enabled.
svcadm: Instance "svc:/network/nfs/server:default" has been disabled by another entity.



_______________________________________________
opensolaris-discuss mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Can't start NFS server - new to Solaris

Cindy Swearingen
Hi Anh,

I'm unclear what else might be going on but maybe we should go
back to some basics. In general, the NFS services don't start
up unless something is shared. See the example below.

Failing that, did you review the nfs-server log to identify
what the problem is:

# more /var/svc/log/network-nfs-server:default.log

Thanks,

Cindy

Nothing is shared so services aren't running:

# share
# zfs get share
# svcs -a | grep nfs
disabled       16:15:02 svc:/network/nfs/client:default
disabled       16:15:08 svc:/network/nfs/server:default
disabled       16:15:53 svc:/network/nfs/rquota:default
online         16:16:02 svc:/network/nfs/status:default
online         16:16:03 svc:/network/nfs/cbd:default
online         16:16:03 svc:/network/nfs/mapid:default
online         16:16:03 svc:/network/nfs/nlockmgr:default

Create a legacy share. For example:

# share -F nfs /tank/cindy
# share
tank_cindy      /tank/cindy     nfs     sec=sys,rw

Check the services:

# svcs -a | grep nfs
disabled       16:15:02 svc:/network/nfs/client:default
online         16:16:02 svc:/network/nfs/status:default
online         16:16:03 svc:/network/nfs/cbd:default
online         16:16:03 svc:/network/nfs/mapid:default
online         16:16:03 svc:/network/nfs/nlockmgr:default
online         16:21:21 svc:/network/nfs/rquota:default
online         16:21:21 svc:/network/nfs/server:default

Confirm that the resource is available:

# dfshares t2k-brm-10
RESOURCE                                  SERVER ACCESS    TRANSPORT
t2k-brm-10:/tank/cindy                t2k-brm-10  -         -

# mount -F nfs t2k-brm-10:/tank/cindy /mnt
# ls /mnt
file.1     test1.dir  test2.dir  test3.dir  test4.dir


On 03/05/12 15:47, Anh Quach wrote:

> Hi all,
>
> This seems like a really dumb question but, I can't figure out how to
> get the NFS server running on Solaris 11. Have tried everything I've
> found in the Oracle docs as well as posts I've found via Google. Pasted
> the output below... Any help greatly appreciated! Thanks in advance.
>
> -Anh
>
> root@bank:~# svcadm enable network/nfs/server
>
> root@bank:~# svcs nfs/server
>
> STATE STIME FMRI
> disabled 14:06:16 svc:/network/nfs/server:default
>
> OR:
>
> root@bank:~# svcadm -v enable -rs network/nfs/server
>
> svc:/network/nfs/server:default enabled.
> svc:/milestone/network enabled.
> svc:/network/loopback enabled.
> svc:/network/ip-interface-management enabled.
> svc:/network/socket-config enabled.
> svc:/system/name-service/upgrade enabled.
> svc:/network/physical:default enabled.
> svc:/network/netcfg enabled.
> svc:/network/physical:upgrade enabled.
> svc:/network/datalink-management enabled.
> svc:/network/nfs/nlockmgr enabled.
> svc:/network/rpc/bind enabled.
> svc:/system/filesystem/minimal enabled.
> svc:/system/filesystem/usr enabled.
> svc:/system/boot-archive enabled.
> svc:/system/filesystem/root enabled.
> svc:/system/device/local enabled.
> svc:/system/identity:node enabled.
> svc:/network/nfs/status enabled.
> svc:/system/filesystem/local enabled.
> svc:/network/npiv_config enabled.
> svc:/system/sysevent enabled.
> svc:/milestone/single-user enabled.
> svc:/milestone/unconfig enabled.
> svc:/system/filesystem/minimal:default enabled.
> svc:/system/utmp:default enabled.
> svc:/network/ip-interface-management:default enabled.
> svc:/network/netcfg:default enabled.
> svc:/milestone/config enabled.
> svc:/system/device/local:default enabled.
> svc:/milestone/unconfig:default enabled.
> svc:/milestone/devices enabled.
> svc:/system/devfsadm enabled.
> svc:/system/device/fc-fabric enabled.
> svc:/system/manifest-import enabled.
> svc:/system/config-user enabled.
> svcadm: Instance "svc:/network/nfs/server:default" has been disabled by
> another entity.
>
>
>
>
> _______________________________________________
> opensolaris-discuss mailing list
> [hidden email]
_______________________________________________
opensolaris-discuss mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Can't start NFS server - new to Solaris

Anh Quach
Hi Cindy, 

Your response and this page helped immensely. 


You were right, I had no shares set up and was struggling to find the correct order in which to configure things using a combination of different Solaris docs and stuff online… was embarrassingly confused. Taking a while to wrap my head around just the Solaris 11 basics, but enjoying it so far and looking forward to being able to deploy a ZFS solution in the near future. Thanks for the help!

-Anh


On Mar 5, 2012, at 3:34 PM, Cindy Swearingen wrote:

Hi Anh,

I'm unclear what else might be going on but maybe we should go
back to some basics. In general, the NFS services don't start
up unless something is shared. See the example below.

Failing that, did you review the nfs-server log to identify
what the problem is:

# more /var/svc/log/network-nfs-server:default.log

Thanks,

Cindy

Nothing is shared so services aren't running:

# share
# zfs get share
# svcs -a | grep nfs
disabled       16:15:02 svc:/network/nfs/client:default
disabled       16:15:08 svc:/network/nfs/server:default
disabled       16:15:53 svc:/network/nfs/rquota:default
online         16:16:02 svc:/network/nfs/status:default
online         16:16:03 svc:/network/nfs/cbd:default
online         16:16:03 svc:/network/nfs/mapid:default
online         16:16:03 svc:/network/nfs/nlockmgr:default

Create a legacy share. For example:

# share -F nfs /tank/cindy
# share
tank_cindy      /tank/cindy     nfs     sec=sys,rw

Check the services:

# svcs -a | grep nfs
disabled       16:15:02 svc:/network/nfs/client:default
online         16:16:02 svc:/network/nfs/status:default
online         16:16:03 svc:/network/nfs/cbd:default
online         16:16:03 svc:/network/nfs/mapid:default
online         16:16:03 svc:/network/nfs/nlockmgr:default
online         16:21:21 svc:/network/nfs/rquota:default
online         16:21:21 svc:/network/nfs/server:default

Confirm that the resource is available:

# dfshares t2k-brm-10
RESOURCE                                  SERVER ACCESS    TRANSPORT
t2k-brm-10:/tank/cindy                t2k-brm-10  -         -

# mount -F nfs t2k-brm-10:/tank/cindy /mnt
# ls /mnt
file.1     test1.dir  test2.dir  test3.dir  test4.dir


On 03/05/12 15:47, Anh Quach wrote:
Hi all,

This seems like a really dumb question but, I can't figure out how to
get the NFS server running on Solaris 11. Have tried everything I've
found in the Oracle docs as well as posts I've found via Google. Pasted
the output below... Any help greatly appreciated! Thanks in advance.

-Anh

root@bank:~# svcadm enable network/nfs/server

root@bank:~# svcs nfs/server

STATE STIME FMRI
disabled 14:06:16 svc:/network/nfs/server:default

OR:

root@bank:~# svcadm -v enable -rs network/nfs/server

svc:/network/nfs/server:default enabled.
svc:/milestone/network enabled.
svc:/network/loopback enabled.
svc:/network/ip-interface-management enabled.
svc:/network/socket-config enabled.
svc:/system/name-service/upgrade enabled.
svc:/network/physical:default enabled.
svc:/network/netcfg enabled.
svc:/network/physical:upgrade enabled.
svc:/network/datalink-management enabled.
svc:/network/nfs/nlockmgr enabled.
svc:/network/rpc/bind enabled.
svc:/system/filesystem/minimal enabled.
svc:/system/filesystem/usr enabled.
svc:/system/boot-archive enabled.
svc:/system/filesystem/root enabled.
svc:/system/device/local enabled.
svc:/system/identity:node enabled.
svc:/network/nfs/status enabled.
svc:/system/filesystem/local enabled.
svc:/network/npiv_config enabled.
svc:/system/sysevent enabled.
svc:/milestone/single-user enabled.
svc:/milestone/unconfig enabled.
svc:/system/filesystem/minimal:default enabled.
svc:/system/utmp:default enabled.
svc:/network/ip-interface-management:default enabled.
svc:/network/netcfg:default enabled.
svc:/milestone/config enabled.
svc:/system/device/local:default enabled.
svc:/milestone/unconfig:default enabled.
svc:/milestone/devices enabled.
svc:/system/devfsadm enabled.
svc:/system/device/fc-fabric enabled.
svc:/system/manifest-import enabled.
svc:/system/config-user enabled.
svcadm: Instance "svc:/network/nfs/server:default" has been disabled by
another entity.




_______________________________________________
opensolaris-discuss mailing list
[hidden email]
_______________________________________________
opensolaris-discuss mailing list
[hidden email]


_______________________________________________
opensolaris-discuss mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Can't start NFS server - new to Solaris

Will Fiveash-2
In reply to this post by Cindy Swearingen
On Mon, Mar 05, 2012 at 04:34:34PM -0700, Cindy Swearingen wrote:

> Hi Anh,
>
> I'm unclear what else might be going on but maybe we should go
> back to some basics. In general, the NFS services don't start
> up unless something is shared. See the example below.
>
> Failing that, did you review the nfs-server log to identify
> what the problem is:
>
> # more /var/svc/log/network-nfs-server:default.log
>
> Thanks,
>
> Cindy
>
> Nothing is shared so services aren't running:

Seems like a doc bug should be opened against the Oracle Solaris
sysadmin guide as it doesn't discuss this when describing how to start
NFS:

http://docs.oracle.com/cd/E23824_01/html/821-1454/rfsadmin-68.html#scrolltoc

--
Will Fiveash
Oracle Solaris Software Engineer
Austin, TX, USA
_______________________________________________
opensolaris-discuss mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Can't start NFS server - new to Solaris

Cindy Swearingen
In reply to this post by Anh Quach
This doc is pretty good but it is unclear that the services are
started automatically so I added the text below.

In addition, the SMB server services must be started manually so
I added that text as well.

Will, I passed your feedback along to the NFS writer.

Thanks,

Cindy

In the new sharing section:

In general, the NFS server services are not started until the sharenfs
property is set on a defined share. If you set the sharenfs property on
the NFS share, the NFS services are started automatically

After you define an SMB share and set the sharesmb property on the SMB
share, you must enable the SMB server services manually.

# svcadm enable -r smb/server

In the legacy sharing section:

Legacy sharing syntax is still supported. The NFS server services are
started automatically when the share is created.

On 03/05/12 16:45, Anh Quach wrote:

> Hi Cindy,
>
> Your response and this page helped immensely.
>
> http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html#scrolltoc
>
> You were right, I had no shares set up and was struggling to find the
> correct order in which to configure things using a combination of
> different Solaris docs and stuff online… was embarrassingly confused.
> Taking a while to wrap my head around just the Solaris 11 basics, but
> enjoying it so far and looking forward to being able to deploy a ZFS
> solution in the near future. Thanks for the help!
>
> -Anh
>
>
> On Mar 5, 2012, at 3:34 PM, Cindy Swearingen wrote:
>
>> Hi Anh,
>>
>> I'm unclear what else might be going on but maybe we should go
>> back to some basics. In general, the NFS services don't start
>> up unless something is shared. See the example below.
>>
>> Failing that, did you review the nfs-server log to identify
>> what the problem is:
>>
>> # more /var/svc/log/network-nfs-server:default.log
>>
>> Thanks,
>>
>> Cindy
>>
>> Nothing is shared so services aren't running:
>>
>> # share
>> # zfs get share
>> # svcs -a | grep nfs
>> disabled 16:15:02 svc:/network/nfs/client:default
>> disabled 16:15:08 svc:/network/nfs/server:default
>> disabled 16:15:53 svc:/network/nfs/rquota:default
>> online 16:16:02 svc:/network/nfs/status:default
>> online 16:16:03 svc:/network/nfs/cbd:default
>> online 16:16:03 svc:/network/nfs/mapid:default
>> online 16:16:03 svc:/network/nfs/nlockmgr:default
>>
>> Create a legacy share. For example:
>>
>> # share -F nfs /tank/cindy
>> # share
>> tank_cindy /tank/cindy nfs sec=sys,rw
>>
>> Check the services:
>>
>> # svcs -a | grep nfs
>> disabled 16:15:02 svc:/network/nfs/client:default
>> online 16:16:02 svc:/network/nfs/status:default
>> online 16:16:03 svc:/network/nfs/cbd:default
>> online 16:16:03 svc:/network/nfs/mapid:default
>> online 16:16:03 svc:/network/nfs/nlockmgr:default
>> online 16:21:21 svc:/network/nfs/rquota:default
>> online 16:21:21 svc:/network/nfs/server:default
>>
>> Confirm that the resource is available:
>>
>> # dfshares t2k-brm-10
>> RESOURCE SERVER ACCESS TRANSPORT
>> t2k-brm-10:/tank/cindy t2k-brm-10 - -
>>
>> # mount -F nfs t2k-brm-10:/tank/cindy /mnt
>> # ls /mnt
>> file.1 test1.dir test2.dir test3.dir test4.dir
>>
>>
>> On 03/05/12 15:47, Anh Quach wrote:
>>> Hi all,
>>>
>>> This seems like a really dumb question but, I can't figure out how to
>>> get the NFS server running on Solaris 11. Have tried everything I've
>>> found in the Oracle docs as well as posts I've found via Google. Pasted
>>> the output below... Any help greatly appreciated! Thanks in advance.
>>>
>>> -Anh
>>>
>>> root@bank:~# svcadm enable network/nfs/server
>>>
>>> root@bank:~# svcs nfs/server
>>>
>>> STATE STIME FMRI
>>> disabled 14:06:16 svc:/network/nfs/server:default
>>>
>>> OR:
>>>
>>> root@bank:~# svcadm -v enable -rs network/nfs/server
>>>
>>> svc:/network/nfs/server:default enabled.
>>> svc:/milestone/network enabled.
>>> svc:/network/loopback enabled.
>>> svc:/network/ip-interface-management enabled.
>>> svc:/network/socket-config enabled.
>>> svc:/system/name-service/upgrade enabled.
>>> svc:/network/physical:default enabled.
>>> svc:/network/netcfg enabled.
>>> svc:/network/physical:upgrade enabled.
>>> svc:/network/datalink-management enabled.
>>> svc:/network/nfs/nlockmgr enabled.
>>> svc:/network/rpc/bind enabled.
>>> svc:/system/filesystem/minimal enabled.
>>> svc:/system/filesystem/usr enabled.
>>> svc:/system/boot-archive enabled.
>>> svc:/system/filesystem/root enabled.
>>> svc:/system/device/local enabled.
>>> svc:/system/identity:node enabled.
>>> svc:/network/nfs/status enabled.
>>> svc:/system/filesystem/local enabled.
>>> svc:/network/npiv_config enabled.
>>> svc:/system/sysevent enabled.
>>> svc:/milestone/single-user enabled.
>>> svc:/milestone/unconfig enabled.
>>> svc:/system/filesystem/minimal:default enabled.
>>> svc:/system/utmp:default enabled.
>>> svc:/network/ip-interface-management:default enabled.
>>> svc:/network/netcfg:default enabled.
>>> svc:/milestone/config enabled.
>>> svc:/system/device/local:default enabled.
>>> svc:/milestone/unconfig:default enabled.
>>> svc:/milestone/devices enabled.
>>> svc:/system/devfsadm enabled.
>>> svc:/system/device/fc-fabric enabled.
>>> svc:/system/manifest-import enabled.
>>> svc:/system/config-user enabled.
>>> svcadm: Instance "svc:/network/nfs/server:default" has been disabled by
>>> another entity.
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> opensolaris-discuss mailing list
>>> [hidden email]
>>> <mailto:[hidden email]>
>> _______________________________________________
>> opensolaris-discuss mailing list
>> [hidden email]
>> <mailto:[hidden email]>
>
_______________________________________________
opensolaris-discuss mailing list
[hidden email]