Thursday 1 May, 2008

NFS Mount...Start..Stop NFS Service...

NFS Mounting (AIX and other Unix flavors)

MAKE ENTRY IN /etc/exports file and also check the NFS service whether started or not...

===================================
exportfs Lists all exported filesystems

exportfs -a Exports all fs's in /etc/exports file

exportfs -u (filesystem) Un-exports a filesystem

mknfs Configures and starts NFS services

rmnfs Stops and un-configures NFS services

mknfsexp -d /directory Creates an NFS export directory

mknfsmnt Creates an NFS mount directory

***mknfsmnt -f filesys -d remotedir -h host

mount hostname:/filesystem /mount-point Mount an NFS filesystem

nfso -a Display NFS Options
nfso -o option=value Set an NFS Option
nfso -o nfs_use_reserved_port=1

=====================================

Example
----------
To add the mount of a remote directory, enter:

mknfsmnt -f /usr/share/man -d /usr/share/man -h host1

In this example, the mknfsmnt command mounts the remote directory /usr/share/man on the /usr/share/man directory that resides on host1.

Files
------
/etc/filesystems -- Lists the remote file systems to be mounted during the system restart.

=======================================

The output of exportfs command should be
/usr/sap/trans -public,sec=sys,rw,root=142.147.101.33

This will give the same group of the folder which is NFS mounted as in Source system.

======================================

No comments:

Post a Comment