using "sharemgr" your shares will survive a reboot, _unless_ you
specify the "-t" option to make them temporary.

"sharectl" is for controlling what types of shares are available from
your machine, e.g.:

jadams@jadlaptop:~$ sharectl status
nfs     disabled
smbfs   disabled client
smb     disabled
autofs  online client

root@jadlaptop:~# sharemgr show
default
zfs

root@jadlaptop:~# sharemgr add-share -r usb-drive -s /media/UDISK2 default
Failed to enable share for "nfs": system error
root@jadlaptop:~# sharemgr show
default
          /media/UDISK2
zfs
root@jadlaptop:~#

root@jadlaptop:~# sharectl status
nfs     online
smbfs   disabled client
smb     disabled
autofs  online client
root@jadlaptop:~#

root@jadlaptop:~# sharemgr remove-share -s /media/UDISK2/
root@jadlaptop:~# sharemgr show
default
zfs
root@jadlaptop:~# sharectl status
nfs     online
smbfs   disabled client
smb     disabled
autofs  online client
root@jadlaptop:~# svcs -a | grep -i nfs
disabled        8:38:02 svc:/network/nfs/cbd:default
online          8:39:17 svc:/network/nfs/status:default
online          8:39:18 svc:/network/nfs/nlockmgr:default
online          8:40:14 svc:/network/nfs/client:default
online         15:24:31 svc:/network/nfs/mapid:default
online         15:24:31 svc:/network/nfs/rquota:default
online         15:24:32 svc:/network/nfs/server:default
root@jadlaptop:~# svcadm disable svc:/network/nfs/server:default
root@jadlaptop:~# sharectl status
nfs     disabled
smbfs   disabled client
smb     disabled
autofs  online client
root@jadlaptop:~#

does that help?

On 21 February 2012 15:12, Sajith C.R. <[email protected]> wrote:
> Thank you Jonathan for your reply,
> I could not figure out from man pages of sharectl about how to make a share 
> reboot-surviving.
> Could you please help me with some commands?
> One of my requirement is to have nfs/server service running after reboot, and 
> for that I need to have something already shared.
>
> Thanks & Regards,
> Sajith
>
>
> -----Original Message-----
> From: Jonathan Adams [mailto:[email protected]]
> Sent: Tuesday, February 21, 2012 8:20 PM
> To: Sajith C.R.
> Cc: [email protected]
> Subject: Re: [nfs-discuss] question on permanent share on Solaris 11
>
> you should be able to access all the utilities that you used to use in
> dfstab using the "sharemgr" and "sharectl" commands ...
>
> On 21 February 2012 14:44, Sajith C.R. <[email protected]> wrote:
>> Hi all,
>> I am not sure whether this is the right mailing list to ask a question on 
>> share.
>> If not, please point me to the right alias.
>>
>> My question is, on Solaris 11, how to share a non-zfs file system 
>> permanently as nfs share?
>> Since /etc/dfs/dfstab is obsolete, where the entries of permanent shares are 
>> made?
>>
>> Thanks & Regards,
>> Sajith
>>
>> _______________________________________________
>> nfs-discuss mailing list
>> [email protected]
_______________________________________________
nfs-discuss mailing list
[email protected]

Reply via email to