#解压
[root@localhost ~]# unzip OceanStor_5300V3_5500V3_5600V3_5800V3_6800V3_V300R006C50SPC100_QuorumServer.zip
[root@localhost ~]# cd package/
[root@localhost package]# ls
packages qs_version.ini quorum_server.sh tools
# 安装仲裁服务器
[root@localhost package]# sh quorum_server.sh -install
Verify the QuorumServer existence.
The QuorumServer is not installed.
The current user is the root user. A quorum server administrator account needs to be provided. Continue to install?
<Y|N>:Y
Enter an adminstrator account for the quorum server:[default: quorumsvr]:
Created new account: quorumsvr.
usermod: no changes
Changing password for user quorumsvr.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
Installing the quorum server.
Preparing... ################################# [100%]
Updating / installing...
1:QuorumServer-V300R006C50SPC100-li################################# [100%]
[Notice] No old configuration need to resume.
QuorumServer install success completed.
2.3 添加仲裁服务器IP,查看
bash复制代码
[root@localhost package]# qsadmin
start main!
Waiting for connecting to server...
admin:/>help
quit : Logout.
exit : Logout.
add : add [white_list|server_ip], for more information, please type 'add help'.
delete : delete [white_list|server_ip|cert_crl], for more information, please type 'delete help'.
show : show [white_list|server_ip|tls_cert|server_info|ca_cert|cipher_info], for more information, please type 'show help'.
change : change [white_list|cipher], for more information, please type 'change help'.
export : export [tls_cert], for more information, please type 'export help'.
import : import [tls_cert|cert_crl], for more information, please type 'import help'.
admin:/>add server_ip ip=172.120.75.251 #配置本机的ens224
Command executed succesfully.
admin:/>add server_ip ip=172.120.75.252 #配置本机的ens256
Command executed succesfully.
admin:/>show server_ip
Index Server IP Server Port
----- --------------- ---------------
1 172.120.75.251 30002
2 172.120.75.252 30002
Index Local IP Local Port Remote IP Remote Port State
----- --------------- --------------- --------------- --------------- ----------
3. 双活存储配置
3.1 两台存储创建硬盘域和存储池
3.2 配置远端设备(mm_user/mm_user@storage)
3.3 主端存储创建lun(5G)
3.4 创建双活域,添加仲裁,以及鉴权
3.5 创建双活pair
3.6 业务主机配置,多路径
略,详情步骤可以见我之前的笔记
3.7 业务主机发起连接
bash复制代码
[root@localhost ~]# iscsiadm -m discovery -t st -p 172.118.73.201
172.118.73.201:3260,8196 iqn.2014-08.com.example::2100030203040506::22003:172.118.73.201
[root@localhost ~]# iscsiadm -m discovery -t st -p 172.118.73.202
172.118.73.202:3260,8197 iqn.2014-08.com.example::2100030203040506::22004:172.118.73.202
[root@localhost ~]# iscsiadm -m discovery -t st -p 172.118.74.202
172.118.74.202:3260,8197 iqn.2014-08.com.example::2100040203040506::22004:172.118.74.202
[root@localhost ~]# iscsiadm -m discovery -t st -p 172.118.74.201
172.118.74.201:3260,8196 iqn.2014-08.com.example::2100040203040506::22003:172.118.74.201
[root@localhost ~]# iscsiadm -m node -l
Logging in to [iface: default, target: iqn.2014-08.com.example::2100030203040506::22003:172.118.73.201, portal: 172.118.73.201,3260]
Logging in to [iface: default, target: iqn.2014-08.com.example::2100030203040506::22004:172.118.73.202, portal: 172.118.73.202,3260]
Logging in to [iface: default, target: iqn.2014-08.com.example::2100040203040506::22004:172.118.74.202, portal: 172.118.74.202,3260]
Logging in to [iface: default, target: iqn.2014-08.com.example::2100040203040506::22003:172.118.74.201, portal: 172.118.74.201,3260]
Login to [iface: default, target: iqn.2014-08.com.example::2100030203040506::22003:172.118.73.201, portal: 172.118.73.201,3260] successful.
Login to [iface: default, target: iqn.2014-08.com.example::2100030203040506::22004:172.118.73.202, portal: 172.118.73.202,3260] successful.
Login to [iface: default, target: iqn.2014-08.com.example::2100040203040506::22004:172.118.74.202, portal: 172.118.74.202,3260] successful.
Login to [iface: default, target: iqn.2014-08.com.example::2100040203040506::22003:172.118.74.201, portal: 172.118.74.201,3260] successful.
3.8 存储加启动器(双活双方都要添加)
略,详情步骤可以见我之前的笔记
3.9 业务主机验证双活lun的情况
shell复制代码
[root@localhost ~]# hot_add
[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 600M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 18.4G 0 part
├─cl-root 253:0 0 16.4G 0 lvm /
└─cl-swap 253:1 0 2G 0 lvm [SWAP]
sdb 8:16 0 5G 0 disk
up-0 252:0 0 5G 0 disk
up-1 252:1 0 5G 0 disk
up-2 252:2 0 5G 0 disk
[root@localhost ~]# upadmin
UltraPath CLI #0 >show vlun type=all
----------------------------------------------------------------------------------------------------------------------------------------------------------
Vlun ID Disk Name Lun WWN Status Capacity Ctrl(Own/Work) Array Name Dev Lun ID No. of Paths(Available/Total)
0 sdb LUN001.r 60302031000405060007f3d700000000 Normal 5.00GB 0A/0A Storage02 0 2/2
0 sdb LUN001 60302031000405060007f3d700000000 Normal 5.00GB 0A/0A Storage01 0 2/2
----------------------------------------------------------------------------------------------------------------------------------------------------------
UltraPath CLI #1 >show vlun id=0 type=all
=======================================================
VLUN#0 Information
=======================================================
Disk : sdb
Manual IO Suspension : Off
Aggregation Type : Hyper Metro
Aggregation Specific Attribution
WorkingMode : read write within primary array
Primary Array SN : ST000000002018120003
Aggregation Member#0 Infomation
Name : LUN001.r
Status : Normal
Capacity : 5.00GB
Aggregation Specific Attribution : N/A
LUN WWN : 60302031000405060007f3d700000000
Array Name : Storage02
Array SN : ST000000002018120003
Driver : Vendor-specific(DEFAULT)
Product Name : XSG1
Vendor Name : HUAWEI
Owning Controller : 0A
Working Controller: 0A
Num of Paths : 2
Controller 0A
Path 2 [35:0:0:1] (up-2) : Normal
Path 3 [36:0:0:1] (up-3) : Normal
Aggregation Member#1 Infomation
Name : LUN001
Status : Normal
Capacity : 5.00GB
Aggregation Specific Attribution : N/A
LUN WWN : 60302031000405060007f3d700000000
Array Name : Storage01
Array SN : ST000000002018120002
Driver : Vendor-specific(DEFAULT)
Product Name : XSG1
Vendor Name : HUAWEI
Owning Controller : 0A
Working Controller: 0A
Num of Paths : 2
Controller 0A
Path 0 [33:0:0:1] (up-0) : Normal
Path 1 [34:0:0:1] (up-1) : Normal
-------------------------------------------------------