官方:http://www.openfiler.com/
第一步:安装openfiler虚拟机
https://nchc.dl.sourceforge.net/project/openfiler/openfiler-distribution-iso-2.99-x64/openfileresa-2.99.1-x86_64-disc1.iso

登录https://10.2.11.222:446 用户名:openfiler 密码:password
第二步:配置
1)创建物理卷



(可以登录到openfiler服务器上,fdisk /dev/sda)
2) 创建卷组

3)创建逻辑卷

启动服务

4)配置iscsi


客户端操作
[root@node2 aa]# iscsiadm -m discovery -t st -p 10.2.11.222
10.2.11.222:3260,1 iqn.2018-01.com.openfiler:tsn.94d5
配置ACL策略


客户端连接:
[root@node2 aa]# iscsiadm -m node -T iqn.2018-01.com.openfiler:tsn.94d5 -p 10.2.11.222 -l
Logging in to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] (multiple)
Login to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] successful.
[root@node2 aa]#fdisk -l
Disk /dev/sdb: 5268 MB, 5268045824 bytes
163 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10106 * 512 = 5174272 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
配置用户名和密码

客户端配置配置文件
[root@node2 aa]# vim /etc/iscsi/iscsid.conf
# *************
# CHAP Settings
# *************
# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
#node.session.auth.authmethod = CHAP
# To set a CHAP username and password for initiator
# authentication by the target(s), uncomment the following lines:
node.session.auth.username = tom
node.session.auth.password = redhat
客户端连接:
[root@node2 aa]# iscsiadm -m node -T iqn.2018-01.com.openfiler:tsn.94d5 -p 10.2.11.222 -l
Logging in to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] (multiple)
Login to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] successful.
- 第一章:集群理论介绍
- 第二章:共享存储
- 第一节:搭建基于 IP SAN 的 ISCSI 存储系统(在centos6系统)
- 第二节:基于openfiler搭建共享存储
- 第三章:高可用HA集群
- 第一节:Heartbeat高可用集群
- 第二节:corosync+pacemaker高可用nginx集群
- 第四章:反向代理(负载均衡)集群
- 第一部分:haproxy服务
- 第一节:haproxy基本介绍
- 第二节:在Centos7安装HAProxy
- 第三节: haproxy配置文件参数详解
- 第四节:haproxy+nginx+mysql+discuz
- 第五节:haproxy配置文件
- 第六节: Haproxy搭建全站ssl