| [1] | It's the Configuration on the system you want to build NFS server. |
|
vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name
Domain =
server.world
# 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
/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 ]
[root@dlp ~]#
[ OK ]
Starting RPC idmapd: [ OK ]
[ OK ]
chkconfig rpcbind on
[root@dlp ~]#
chkconfig nfslock on
[root@dlp ~]#
chkconfig nfs on
[root@www ~]#
vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name
Domain =
server.world
/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
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 |