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:
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:
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:
Now check the shares:
#share
- /export/test rw ""
- /export/test rw ""
No comments:
Post a Comment