Here is my steps:
1.Install rpcbind and nfs-utils
yum install rpcbind nfs-utils
chkconfig rpcbind on
service rpcbind start
To check rpc info:
rpcinfo -p
To check available nfs mount from nfshost(192.168.1.200 as example)
showmount -e 192.168.1.200
2.Mount nfs manually
# mkdir /nfsbackup
# mount 192.168.1.200:/mnt/test /nfsbackup/
To check mount status:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root
19306716 1503088 16825700 9% /
tmpfs 12371100 0 12371100 0% /dev/shm
/dev/sda1 495844 53039 417205 12% /boot
/dev/sdb1 10320184 193872 9602076 2% /var/log
/dev/sdc1 51605436 22952412 26031620 47% /pgsql
/dev/sdd1 30961664 4958796 24430108 17% /tmp
/dev/sdf1 41279536 5682164 33500492 15% /home
192.168.201.200:/mnt/test
511967200 32 511967168 1% /nfsbackup
3.Mounting NFS File Systems using /etc/fstab
The general syntax for the line in /etc/fstab is as follows:
server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr
A sample /etc/fstab line to mount an NFS export looks like the following example:
192.168.1.200:/mnt/test /nfsbackup nfs hard 0 0
No comments:
Post a Comment