DRBD故障恢复(一):节点无法通信,节点为StandAlone状态

操作环境

操作环境同《Centos7下配置DRBD搭建HA NFS Cluster》中

问题描述

主副节点启动后,在主节点查看drbd状态如下

[root@drbd-node1 ~]# drbd-overview 
NOTE: drbd-overview will be deprecated soon.
Please consider using drbdtop.

 0:scsivol/0  Connec/StaAlo Second/Unknow UpToDa/DUnkno 

再副节点查看drbd状态如下:

[root@drbd-node3 ~]# drbd-overview 
NOTE: drbd-overview will be deprecated soon.
Please consider using drbdtop.

 0:scsivol/0  Connec/StaAlo Second/Unknow UpToDa/DUnkno 

解决方法

1.在副节点drbd-node3中执行以下命令后,查看drbd状态,StandAlone状态已经改变

[root@drbd-node3 ~]# drbdadm disconnect scsivol
[root@drbd-node3 ~]# drbdadm connect --discard-my-data scsivol
[root@drbd-node3 ~]# drbd-overview 
NOTE: drbd-overview will be deprecated soon.
Please consider using drbdtop.

 0:scsivol/0  Connec/C'ting Second/Unknow UpToDa/DUnkno 

2.在主节点drbd-node1上执行以下命令,drbd状态恢复正常

[root@drbd-node1 ~]# drbdadm connect scsivol
[root@drbd-node1 ~]# drbd-overview 
NOTE: drbd-overview will be deprecated soon.
Please consider using drbdtop.

 0:scsivol/0  Connected(2*) Secondary(2*) UpToDa/Incons 
[root@drbd-node1 ~]# drbdadm primary scsivol
[root@drbd-node1 ~]# drbdadm role scsivol
Primary
[root@drbd-node1 ~]# drbd-overview 
NOTE: drbd-overview will be deprecated soon.
Please consider using drbdtop.

 0:scsivol/0  Connected(2*) Primar/Second UpToDa/UpToDa 


你可能感兴趣的:(存储,linux)