[DRBD-user] [drbd] Rsync secondary after failure

Xavier Grangier grangier at gmail.com
Thu May 12 02:40:20 CEST 2005

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


Hello all,

I'm new to the list :) I've benn using drbd on my company lan since 
february, things vent well for a while.
Lately I had an hard disk failure on my secondary, the disk is dead an I 
had to change it for a new one.

I have trouble to resync the primary and the secondary. I'm not sure 
about the right procedure, here is wat I did:

- change the hardrive
- then mkfs.ext3 on  /dev/hda4 on the secondary (I guess the mistake is 
somewhere here)
- then restart drbd on primary and secondary.

Secondary disk is empty while primary is full but status is Consistent, 
the need to sync in /var/log/messages is 0KB

What is the correct recovery procedure ? Do I have to rebuilt the both 
hard drive from scratch, is there some meta data to earase somewhere 
(couldn't find where).

I'll find below my current configuration, any help is appreciate

Regards,

Xav
--------------------------------------------------------------------------------------------
# tail -f /var/log/messages
May 12 02:40:26 bip2 kernel: drbd0: Handshake successful: DRBD Network 
Protocol version 74
May 12 02:40:26 bip2 kernel: drbd0: Connection established.
May 12 02:40:26 bip2 kernel: drbd0: I am(S): 
1:00000002:00000001:0000002c:00000002:01
May 12 02:40:26 bip2 kernel: drbd0: Peer(P): 
1:00000002:00000001:0000002d:00000002:10
May 12 02:40:26 bip2 kernel: drbd0: drbd0_receiver [2792]: cstate 
WFReportParams --> WFBitMapT
May 12 02:40:26 bip2 kernel: drbd0: Secondary/Unknown --> Secondary/Primary
May 12 02:40:27 bip2 kernel: drbd0: drbd0_receiver [2792]: cstate 
WFBitMapT --> SyncTarget
May 12 02:40:27 bip2 kernel: drbd0: Resync started as SyncTarget (need 
to sync 0 KB [0 bits set]).
May 12 02:40:27 bip2 kernel: drbd0: Resync done (total 1 sec; paused 0 
sec; 0 K/sec)
May 12 02:40:27 bip2 kernel: drbd0: drbd0_receiver [2792]: cstate 
SyncTarget --> Connected
--------------------------------------------------------------------------------------------
On my primary node:

# cat /proc/drbd
version: 0.7.10 (api:77/proto:74)
SVN Revision: 1743 build by root at backup.multicv.net, 2005-02-21 12:35:49
 0: cs:Connected st:Primary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0

# cat /etc/drbd.conf
resource drbd0 {
        protocol C;
#        incon-degr-cmd "halt 
-f";                                                                                                                                                         

        net {
                sndbuf-size  512k;
                timeout      60    ;
                connect-int  10    ;
                ping-int     10    ;
                ko-count     10;
        
}                                                                                                                                                            

        on backup.multicv.net {
                device /dev/drbd0;
                disk /dev/hdc1;
                address 10.0.0.102:7789;
                meta-disk "internal";
                #disk-size=28812577;
         
}                                                                                                                                                  
                                                                                                                                                 

        on bip2.multicv.net {
                device /dev/drbd0;
                disk /dev/hda4;
                address 10.0.0.175:7789;
                meta-disk "internal";
                #disk-size=28812577;
        
}                                                                                                                                                    

        syncer {
                rate 512M;
        }
}
--------------------------------------------------------------------------------------------
on my secondary node:

# cat /proc/drbdresource drbd0 {
        protocol C;
#        incon-degr-cmd "halt 
-f";                                                                                                                                                        

        net {
                sndbuf-size  512k;
                timeout      60    ;
                connect-int  10    ;
                ping-int     10    ;
                ko-count     10;
        
}                                                                                                                                                     

        on backup.multicv.net {
                device /dev/drbd0;
                disk /dev/hdc1;
                address 10.0.0.102:7789;
                meta-disk "internal";
                #disk-size=28812577;
         
}                                                                                                                                                                                                                                                                                                            

        on bip2.multicv.net {
                device /dev/drbd0;
                disk /dev/hda4;
                address 10.0.0.175:7789;
                meta-disk "internal";
                #disk-size=28812577;
        
}                                                                                                                                                     

        syncer {
                rate 512M;
        }
}

version: 0.7.10 (api:77/proto:74)
SVN Revision: 1743 build by root at bip2.multicv.net, 2005-02-20 19:11:03
 0: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0





More information about the drbd-user mailing list