123HELPDESK

IT professionals voor ondernemers

NFS share in Solaris 10 PDF Afdrukken
Satus van de NFS server:

bash-3.00# svcs network/nfs/server
STATE          STIME    FMRI
online         16:38:21 svc:/network/nfs/server:default

Indien de service niet is gestart:
bash-3.00# svcs network/nfs/server
STATE          STIME    FMRI
offline         16:38:21 svc:/network/nfs/server:default

Enable en start de NFS service:
bash-3.00# svcadm enable -r network/nfs/server
bash-3.00# svcadm enable -s network/nfs/server
bash-3.00# svcadm restart network/nfs/server

Om een directory te delen/ share aan te maken:

bash-3.00# vi /etc/dfs/dfstab
add the next line:  share -F nfs /data/sharedir

share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
.e.g, share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2

Start de share:
bash-3.00# shareall -F nfs

Controleren:
bash-3.00# share
- /data/sharedir rw ""

Voorbeeld dfstab:
bash-3.00# cat /etc/dfs/dfstab

share -F nfs -o rw=server1:server2 -d "staging" /data/staging
share -F nfs -o rw=server1:server2 -d "archive" /data/archive
share -F nfs -o rw=server3:server4,anon=500 -d "nfsassets" /data/nfsassets
bash-3.00# share
-               /data/staging   rw=server1:server2   "staging"
-               /data/archive   rw=server1:server2   "archive"
-               /data/nfsassets   rw=server3:server4,anon=500   "nfsassets"



 
< Vorige   Volgende >