What Is NFS: Port Number 2049
Network File System is A distributed file System that allows users to access files and directories of remote server as were Local.
NFS is independent of machine type, Operating Systems
NFS Services:
Server -> Computer that makes filesystem, directories and other resource available for remote access.
Clients:
The Computer or there process uses server resources.
Export:
The act of file system available to remote clients.
Mount:
The Act of file system access file system that server export.
Mount:
Mountd daemon:
The mounts daemon is a remote procedure call that answers a client request to mount a file system
Mountd daemons find out which file system available by reading /etc/xtab file.
Client you need to mount command.
Remote File Access:
Nfsd Daemon on the Server
Biod daemon on the Client
When user want to read write files in server biod daemon send request to server nfsd daemon it will provide access.
Boot Parameter:
Provide parameter for Sun os diskless clients from rpc.bootparamd on the server.
PCAuthentication:
Provides user authentication service for pc-NFS rpc.pcnfsd daemon on the server.
Start Nfs Daemon:
Command:
Smit mknfs
Or
Mknfs –N
-b –l options add entry to inittab file it will start automatically system restart.
Start Nfs Daemon:
Startsrc –s nfsd
Start all Nfs Daemon:
Startsrc –g nfs
Exporting NFS Directories:
Verify nfs service is running or not
Lssrc –g nfs
Smitty mknfsexp
Smitty chnfsexp
Add the Path and security style and other things
It will add the line to VI /etc/exports file
/home
Then you need to enter command
Exportfs –a it will pass the command to kernel.
Verify the File system Exported Properly
Showmount –e hostname or IP address
Export Nfs Directory Temporarily
Exportfs –i /tmpdirectory
UnExporting NFS Directory:
Smitty rmnfsexp
Remove path name
Remove the line in vi /etc/exports and save it.
Exportfs –u /dirname.
Mounting NFS Directory:
Vi /etc/filesystems
/home
Dev = “/home”
Vfs = nfs
Nodename = bgaix01
Mount = true
Options = bg,soft,intr
Account = false/
Start the all the NFs service
Rc.nfs
Mount Nfs Home Directory:
Smitty mknfsmnt
List of NFS Commands:
Chnfs
Mknfs
Nfso
Automount
Chnfsexp
Chnfsmnt
Exportfs
Lsnfsexp
Lsnfsmnt
Mknfsexp
Mknfsmnt
Rmnfs
Rmnfsexp
Rmnfsmnt
Rpc.lockd -> Process Lock request through rpc package.
Rpc.statd -> Provide crash and recovery functions
Biod -> answer request from server to client
Rpc.mountd -> answer the request from client mounts
Nfsstat -> Display information ability to receive calls.
Portmap -> map program number to internet number
Rpcinfo -> Report the status of rpc servers
Rpc.statd ->
No comments:
Post a Comment