[DRBD-user] How to reconnect old primary

Vadym Chepkov vchepkov at gmail.com
Fri May 10 17:07:29 CEST 2013

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,

We had a problem with with servers and, unfortunately I had to bring up what was "outdated" secondary using

drbdadm -- --overwrite-data-of-peer primary all

The system was running in "standalone" mode for awhile, here is the current status:

[root at m152 ~]# cat /proc/drbd 
version: 8.3.11 (api:88/proto:86-96)
GIT-hash: 0de839cee13a4160eed6037c4bddd066645e23c5 build by root at m151, 2011-07-31 18:03:27
 0: cs:WFConnection ro:Primary/Unknown ds:UpToDate/Outdated C r-----
    ns:0 nr:0 dw:31776 dr:66145 al:30 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:17500
 1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/Outdated C r-----
    ns:0 nr:0 dw:286956 dr:45561 al:91 bm:65 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:102176
 2: cs:WFConnection ro:Primary/Unknown ds:UpToDate/Outdated C r-----
    ns:0 nr:0 dw:4925 dr:10115 al:14 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:5184

Now, we we able to bring back what used to be primary online and I want to reconnect it back and make it secondary.

I invalidated data on the former primary:

drbdadm invalidate all

[root at m151 ~]# cat /proc/drbd 
version: 8.3.11 (api:88/proto:86-96)
GIT-hash: 0de839cee13a4160eed6037c4bddd066645e23c5 build by root at m151, 2011-07-31 18:03:27
 0: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/Outdated   r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:5242684
 1: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/Outdated   r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:5242684
 2: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/Outdated   r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:20970844


When I try to connect I am not successful, probably because remote is marked as "Outdated"

drbdadm connect all

[root at m151 ~]# cat /proc/drbd
version: 8.3.11 (api:88/proto:86-96)
GIT-hash: 0de839cee13a4160eed6037c4bddd066645e23c5 build by root at m151, 2011-07-31 18:03:27
 0: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/Outdated C r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:5242684
 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/Outdated C r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:5242684
 2: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/Outdated C r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:20970844


How do I get out of this predicament?

Thanks,
Vadym





More information about the drbd-user mailing list