Basic NFS Configuration

From Genunix

HOWTO - Setup NFS (Brian Gupta - 1998)

  • Major Config Files:
    • /etc/vfstab - remote filestems entered here
    • /etc/dfs/dfstab - local fs's to be exported here (if you change run exportfs -a)
  • RESTARTING THE nfsdaemon:
    1. /etc/init.d/nfs.server stop
    2. /etc/init.d/nfs.server start
  • Some Status Commands:
    • nfsstat -m
    • /usr/sbin/showmount -e systemname (SHOWS AVAILABLE FILESYSTEMS TO MOUNT ON REMOTE SYSTEM)
  • Check the entry in /etc/mnttab
    • ps -ef |grep rpcbind
    • /usr/sbin/rpcbind -w
    • rpcinfo -s systemname |sort -n
  • How to automatically share your local CDROM Drive: (Assuming nfsd and vold is running)
    1. Add the following lines to /etc/rmmount.conf:
    • # File System Sharing
    • share cdrom*
  • How to remotely access this CDROM:
    • mount -F nfs -o ro vjtest:/cdrom/vrts_9803 /mnt