Corosync fence盘替换

前面创建盘的步骤省略

1.在节点A执行:

sbd -d /dev/mapper/fence_lun001 -d /dev/mapper/fence_lun002 -d /dev/mapper/fence_lun003  -1 90  -4 360 create
sbd -d /dev/mapper/fence_lun001 -d /dev/mapper/fence_lun002 -d /dev/mapper/fence_lun003  dump

2.在A/B/C/D上执行:

service sbd stop
cp /etc/sysconfig/sbd  /etc/sysconfig/sbd_`date +%s`
vi /etc/sysconfig/sbd

将:

SBD_DEVICE="/dev/mapper/fence_lun01;/dev/mapper/fence_lun02;/dev/mapper/fence_lun03"

替换为:

SBD_DEVICE="/dev/mapper/fence_lun001;/dev/mapper/fence_lun002;/dev/mapper/fence_lun003"

service sbd start

3.在节点A执行:

crm resource stop SBD_FENCE
crm configure
edit SBD_FENCE

修改为如下内容,更新盘符

primitive SBD_FENCE stonith:fence_sbd \
        params devices="/dev/mapper/fence_lun001,/dev/mapper/fence_lun002,/dev/mapper/fence_lun003" action=reboot power_timeout=396 verbose=true \
        meta target-role=Started is-managed=true

verify   ###只有校验成功才commit
commit
bye

启动sbd服务:
crm resource start SBD_FENCE

4.在A/B/C/D上检查同步状态:

你可能感兴趣的:(Corosync fence盘替换)