NFS共有ストレージ


サーバクライアントyum -y install rpcbind nfs-utilsサーバ
vim /etc/exports
/data  192.168.10.0/24(rw,sync,no_root_squash)   

* ro #     
* rw #     
* sync #   ,     ,   
* async #  ,   ,   ,    
systemctl enable nfs-server
systemctl enable rpcbind
systemctl  start nfs-server
systemctl   start rpcbind.service

exportfs

chmod o+w  /data

exportfs -v
/data           192.168.10.0/24(rw,async,wdelay,hide,no_subtree_check,sec=sys,secure,root_squash,no_all_squash)

共通のオプション
* -a:         
* -r:    
* -u:      
* -v:      
*     :exportfs -arv
*           ,     ,                     。
  :    nfs               ,         ,       

クライアント
yum -y install  rpcbind nfs-utils
systemctl   start rpcbind.service

showmount -e  192.168.10.100

mount    192.168.10.100:/data /data1   

vim /etc/fstab  
192.168.10.100:/data    /data  nfs   rw

サーバクライアント#作成者を作成した後、作成者のユーザーになります.
vim /etc/idmapd.conf
5 Domain = xx.com

systemctl restart rpcbind.service