第一步:安裝
更新系統
yum update
安裝iftop
yum install epel-release yum install iftop
安裝NFS
yum install nfs-utils rpcbind
我的NFS配置文件
vi /etc/exports
內容是
#/home/vmdk/ 10.105.11.0/24(rw,no_root_squash,no_all_squash,sync,anonuid=501,anongid=501) /home/nfs/vmdk/ 10.105.11.0/24(rw) /home/nfs/vmdk-0/ 10.105.0.0/16(rw) /home/nfs/vmdk-1/ 10.105.11.0/24(rw)
重新加載NFS配置
exportfs -r
重啟服務
systemctl restart rpcbind.service
systemctl restart nfs-server.service
配置服務自動啟動
systemctl enable rpcbind
systemctl enable nfs-server
安裝ISCSI target
yum install targetcli