CentOS7搭建NAS,包括NFS、ISCSI


第一步:安装

 

更新系统

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM