Monday, January 7, 2013

Configuring NFS Server

[1]It's the Configuration on the system you want to build NFS server.
[root@dlp ~]#
yum -y install nfs-utils
[root@dlp ~]#
vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name

Domain =
server.world
[root@dlp ~]#
vi /etc/exports
# write like below *note

/home 10.0.0.0/24(rw,sync,no_root_squash,no_all_squash)
# *note
/home

⇒ shared directory

10.0.0.0/24
⇒ range of networks NFS permits accesses

rw
⇒ writable

sync
⇒ synchronize

no_root_squash
⇒ enable root privilege

no_all_squash
⇒ enable users' authority
[root@dlp ~]#
/etc/rc.d/init.d/rpcbind start

Starting rpcbind:
[  OK  ]

[root@dlp ~]#
/etc/rc.d/init.d/nfslock start

Starting NFS statd:
[  OK  ]

[root@dlp ~]#
/etc/rc.d/init.d/nfs start

RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Starting NFS services:

[  OK  ]

Starting NFS daemon: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
[ OK ]

Starting NFS mountd: [ OK ]
[  OK  ]

Starting RPC idmapd: [ OK ]
[  OK  ]
[root@dlp ~]#
chkconfig  rpcbind on

[root@dlp ~]#
chkconfig nfslock on

[root@dlp ~]#
chkconfig nfs on
Configuration on NFS clients

[root@www ~]#
yum -y install nfs-utils
# install
[root@www ~]#
vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name

Domain =
server.world
[root@www ~]#
/etc/rc.d/init.d/rpcbind start

Starting rpcbind:
[  OK  ]

[root@www ~]#
/etc/rc.d/init.d/rpcidmapd start

Starting RPC idmapd: RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
[ OK ]
[root@www ~]#
/etc/rc.d/init.d/nfslock start

Starting NFS statd:
[  OK  ]

[root@www ~]#
/etc/rc.d/init.d/netfs start

Mounting other filesystems:
[  OK  ]

[root@www ~]#
chkconfig rpcbind on

[root@www ~]#
chkconfig rpcidmapd on

[root@www ~]#
chkconfig nfslock on

[root@www ~]#
chkconfig netfs on

[root@www ~]#
mount -t nfs dlp.server.world:/home /home

[root@www ~]#
df -h

Mounted on

192.168.xx.x:/var/spool/asterisk/incoming      272G   36G  222G  14% /var/www/html/recordings/incoming

# home directory on NFS is mounted
[root@www ~]#
vi /etc/fstab

# add at the lat line:  server mounts to the one on NFS

/192.168.xx.x:/var/spool/asterisk/incoming  /var/www/html/recordings/incomin                                  g             nfs  hard,intr   0 0

No comments:

Post a Comment

SEO TOOLS

Check Page Rank of your Web site pages instantly:

This page rank checking tool is powered by Page Rank Checker service