Friday, February 20, 2015

Sharing directories with NFS in Solaris 10

Sharing directories with NFS in Solaris 10

To share a directory in Solaria, the home of the users, or a directory with binaries.
With svcs the service status can be checked, so lets check the status of the nfs server:

#svcs network/nfs/server
STATE STIME FMRI
offline 2:19:03 svc:/network/nfs/server:default
The service is offline, so you have to enable it and start it, lets do it:
#svcadm enable -r network/nfs/server
#svcadm enable -s network/nfs/server
#svcadm restart network/nfs/server
Now it is started:
#svcs network/nfs/server
STATE STIME FMRI
online 2:29:51 svc:/network/nfs/server:default
Now, to share a directory, edit /etc/dfs/dfstab and add:
share -F nfs /export/test
Save the file and execute:
#shareall -F nfs
Now check the shares:
#share
- /export/test rw "" 

No comments:

Post a Comment

Featured Post

Managing CA Certificates on Red Hat Linux 9: Understanding update-ca-trust extract

  Managing CA Certificates on RHEL9 RHEL8 OracleLinux9 OracleLinux8 In today's digital landscape, securing communications and verifying ...