Powered By Blogger

Tuesday, June 29, 2010

NFS Setup on Solaris

NFS Setup on Solaris

NFS Server Setup
----------------
1) /etc/rc.d or /etc/init.d
/usr/sbin/portmap or rpc.portmap

2) /etc/dfs/dfstab

share -F nfs -o rw=nfsclient: /export/nfs

3) /etc/dfs/sharetab

/export/nfs - nfs rw=nfsclient

4) /etc/dfs/fstypes

nfs NFS Utilities

5) /etc/rmtab lists filesystems that are remotely mounted by clients.

6) mountd rpc.mountd
nfsd rpc.nfsd

7) /usr/sbin/share (and chomod a+rx)

#!/bin/sh
killall -HUP /usr/sbin/rpc.mountd
killall -HUP /usr/sbin/rpc.nfsd
echo re-exported file systems

(Run script after modifying /etc/exports)

8) rpcinfo -p (to check mountd and nfsd running)


NFS Client Setup
----------------

1) To make the system mount a nfs file system upon boot

/etc/vfstab

nfsserver:/export/nfs - /mnt/nfs nfs - yes -

2) /etc/mnttab lists filesystems which are currently mounted on
onto that client.

3) To mount:

No comments:

Post a Comment

Welcome to the UNIX world