CentOS7搭建NAS,包括NFS、ISCSI

  • Post author:
  • Post category:其他


第一步:安装

更新系统

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

转载于:https://www.cnblogs.com/firadio/p/5340160.html