1. NFS mount
192.25.10.101/home/sharedata/azkaban/ODS_HS08 to 192.25.10.102/home/data_azkaban
(1) Operation on 192.25.10.101:
1. Check whether rpcbind and nfs are installed with
rpm -qa|grep nfs
rpm -qa|grep rpcbind
Installation command: yum install -y nfs-utils rpcbind
2,vi /etc/exports
内容:/home/sharedata/azkaban/ODS_HS08 192.25.105.188/24(rw,sync)
Effective command: exportfs -arv
Parameters: -a all mount or unmount the contents of /etc/exports
-r Reread the information in /etc/exports, and update /etc/exports, /var/lib/nfs/xtab synchronously
-u uninstall a single directory (used with -a to uninstall all directories in the /etc/exports file)
-v When exporting, output detailed information to the screen.
3. Restart the service
- stop
service rpcbind stop
service nfs stop
- start
service rpcbind start
service nfs start
- view status
service rpcbind status
service nfs status
4. View the mounting situation
showmount -e localhost #Query the situation of the local nfs shared directory
showmount -a localhost #Query the connection of the local shared directory
(2) Operation
1 on 192.25.10.102 , check whether rpcbind and nfs are installed with
rpm -qa|grep nfs
rpm -qa|grep rpcbind
Installation command: yum install -y nfs-utils rpcbind
2. Mount
mounting command: mount -t nfs 192.25.105.186:/home/sharedata/azkaban/ODS_HS08 /home/data_azkaban
3.
Unmount the command to view the occupation: fuser -mv /home/data_azkaban
Kill occupied command: fuser -kv /home/data_azkaban
Unmount command: umount -a