systemctl enable iscsid.service
systemctl start iscsid.service
systemctl start multipathd.service
iscsiadm --mode discoverydb --type sendtargets --portal 192.168.1.100 --discover
iscsiadm --mode node --targetname iqn.2006-01.com.openfiler:rhcs --portal 192.168.1.100:3260 --login
iscsiadm --mode node --targetname iqn.2006-01.com.openfiler:rhcs-1 --portal 192.168.1.100:3260 --login
multipath default config file
/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asmtest -p 192.168.1.100:3260 -o update -n node.startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asmtest -p 192.168.1.100:3260 -o update -n node.conn[0].startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asm -p 192.168.1.100:3260 -o update -n node.startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asm -p 192.168.1.100:3260 -o update -n node.conn[0].startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:rhcs -p 192.168.1.100:3260 -o update -n node.startup -v automatic
iscsiadm --mode node -T iqn.2006-01.com.openfiler:rhcs-1 -p 192.168.1.100:3260 -o update -n node.conn[0].startup -v automatic
yum -y install pcs fence-agents-all corosync resource-agents pacemaker
systemctl start pcsd.service
systemctl is-active pcsd.service
systemctl enable pcsd.service
systemctl is-enabled pcsd.service
passwd hacluster
[root@rhcs-1 ~]# pcs cluster auth rhcs1 rhcs2
Username: hacluster
Password:
rhcs-1: Authorized
rhcs-2: Authorized
/etc/multipath.conf
mpathb (14f504e46494c4552396e586871682d6f726a722d5a654343) dm-3 OPNFILER,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 33:0:0:1 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
`- 34:0:0:1 sde 8:64 active ready running
mpatha (14f504e46494c4552726a756556542d4b6435752d4f556248) dm-2 OPNFILER,VIRTUAL-DISK
size=10G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 33:0:0:0 sdb 8:16 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
`- 34:0:0:0 sdd 8:48 active ready running
multipaths {
multipath {
wwid 14f504e46494c4552726a756556542d4b6435752d4f556248
alias rhcs
}
multipath {
wwid 14f504e46494c4552396e586871682d6f726a722d5a654343
alias rhcs-fence
}
}
systemctl restart multipathd.service
not run /sbin/lvmconf --enable-cl
systemctl start iscsid.service
systemctl start multipathd.service
iscsiadm --mode discoverydb --type sendtargets --portal 192.168.1.100 --discover
iscsiadm --mode node --targetname iqn.2006-01.com.openfiler:rhcs --portal 192.168.1.100:3260 --login
iscsiadm --mode node --targetname iqn.2006-01.com.openfiler:rhcs-1 --portal 192.168.1.100:3260 --login
multipath default config file
/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asmtest -p 192.168.1.100:3260 -o update -n node.startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asmtest -p 192.168.1.100:3260 -o update -n node.conn[0].startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asm -p 192.168.1.100:3260 -o update -n node.startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:asm -p 192.168.1.100:3260 -o update -n node.conn[0].startup -v manual
iscsiadm --mode node -T iqn.2006-01.com.openfiler:rhcs -p 192.168.1.100:3260 -o update -n node.startup -v automatic
iscsiadm --mode node -T iqn.2006-01.com.openfiler:rhcs-1 -p 192.168.1.100:3260 -o update -n node.conn[0].startup -v automatic
yum -y install pcs fence-agents-all corosync resource-agents pacemaker
systemctl start pcsd.service
systemctl is-active pcsd.service
systemctl enable pcsd.service
systemctl is-enabled pcsd.service
passwd hacluster
[root@rhcs-1 ~]# pcs cluster auth rhcs1 rhcs2
Username: hacluster
Password:
rhcs-1: Authorized
rhcs-2: Authorized
/etc/multipath.conf
mpathb (14f504e46494c4552396e586871682d6f726a722d5a654343) dm-3 OPNFILER,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 33:0:0:1 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
`- 34:0:0:1 sde 8:64 active ready running
mpatha (14f504e46494c4552726a756556542d4b6435752d4f556248) dm-2 OPNFILER,VIRTUAL-DISK
size=10G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 33:0:0:0 sdb 8:16 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
`- 34:0:0:0 sdd 8:48 active ready running
multipaths {
multipath {
wwid 14f504e46494c4552726a756556542d4b6435752d4f556248
alias rhcs
}
multipath {
wwid 14f504e46494c4552396e586871682d6f726a722d5a654343
alias rhcs-fence
}
}
systemctl restart multipathd.service
not run /sbin/lvmconf --enable-cl