[DRBD-user] proto c - corrupt files - directories missing

Stefan Bauer stefan.bauer at cubewerk.de
Tue Jan 7 15:32:19 CET 2014

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


Any ideas on that? It's really a showstopper for us :(

We’re using drbd version 2:8.3.11-3~bpo60+1 with Kernel 3.2.46-1~bpo60+1 on debian 6.0.7 amd64.

drbd always shows clean status:

root at zabbix-linux-N1:/# cat /proc/drbd
version: 8.3.11 (api:88/proto:86-96)
srcversion: F937DCB2E5D83C6CCE4A6C9
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
    ns:25724 nr:33532 dw:67920 dr:710389 al:69 bm:47 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0

root at zabbix-linux-N2:~# cat /proc/drbd
version: 8.3.11 (api:88/proto:86-96)
srcversion: F937DCB2E5D83C6CCE4A6C9
0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r-----
    ns:0 nr:25980 dw:25980 dr:0 al:0 bm:32 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0

I have an ext4 filesystem on top of drbd0. I can mount the FS on the active node without problems.
Only if node N2 becomes the active one (primary), some of the files are garbage and some folders are missing.

File /drbd/index.php tells me data instead of PHP script test.

Furthermore on N1 I have /drbd/testfolder/
On N2 this folder is not synced.

I also enabled data-integrity-alg but no errors were logged.

Any ideas?!

Thank you

Stefan


Configuration attached:

resource clusterdb_res {
protocol C;

on zabbix-linux-N1 {
device  /dev/drbd0;
disk    /dev/sdb1;
address 192.168.60.60:7788;
flexible-meta-disk      internal;
}
on zabbix-linux-N2 {
device  /dev/drbd0;
disk    /dev/sdb1;
address 192.168.60.160:7788;
flexible-meta-disk      internal;
}
}

global {
        usage-count yes;
}

common {
        protocol C;

        handlers {
                pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; /usr/lib/drbd/notify-emergency-reboot.sh; e
cho b > /proc/sysrq-trigger ; reboot -f";
                pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh; /usr/lib/drbd/notify-emergency-reboot.sh; e
cho b > /proc/sysrq-trigger ; reboot -f";
                local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /p
roc/sysrq-trigger ; halt -f";
        }

        startup {
                degr-wfc-timeout 120;
                outdated-wfc-timeout 2;
        }

        disk {
                on-io-error detach;
        }

        net {
                cram-hmac-alg "sha1";
                shared-secret "clusterdb";
                after-sb-0pri disconnect;
                after-sb-1pri disconnect;
                after-sb-2pri disconnect;
                rr-conflict disconnect;
        }

        syncer {
                rate 1000M;
                al-extents 257;
        }
}



More information about the drbd-user mailing list