[DRBD-user] trying to recover a qnap

Paul Hessels paul at hessels.ca
Sat May 12 04:49:12 CEST 2018


I am trying to recover data off a set of drives pulled from a qnap NAS.  I
can't say for certain what version of drbd was used to create this resource.

I am trying to bring it online and I am getting an error with the metadata

# drbdadm up r0
strange bm_offset -6208 (expected: -5640)
No valid meta data found
Command 'drbdmeta 0 v08 /dev/md125 internal apply-al' terminated with exit
code 255


Some hopefully relevant info:

# blkid -c /dev/null /dev/md125
/dev/md1: UUID="1e48a7448641b04b" TYPE="drbd"

I create a config based on what I got from a freenode#drbd user:

# drbdadm dump
# /etc/drbd.conf
global {
    usage-count no;
    cmd-timeout-medium 600;
    cmd-timeout-long 0;
}

common {
}

# resource r0 on paul-System-Product-Name: not ignored, not stacked
# defined at /etc/drbd.d/one.res:3
resource r0 {
    on paul-System-Product-Name {
        volume 0 {
            device       /dev/drbd0 minor 0;
            disk         /dev/md125;
            meta-disk    internal;
        }
        address          ipv4 192.168.3.95:7788;
    }
    on does-not-exist.com {
        volume 0 {
            device       /dev/drbd0 minor 0;
            disk         /dev/vda5;
            meta-disk    internal;
        }
        address          ipv4 10.10.30.2:7788;
    }
    disk {
        disk-flushes      no;
        md-flushes        no;
    }
}


# drbdadm -V
DRBDADM_BUILDTAG=GIT-hash:\ c6e62702d5e4fb2cf6b3fa27e67cb0d4b399a30b\
build\ by\ debian-ha-maintainers at lists.alioth.debian.org\,\ 2016-01-26\
10:32:36\ UTC
DRBDADM_API_VERSION=1
DRBD_KERNEL_VERSION_CODE=0x080405
DRBDADM_VERSION_CODE=0x080906
DRBDADM_VERSION=8.9.6

# modinfo drbd| grep ^version
version:        8.4.5

# drbdadm dump-md all
strange bm_offset -6208 (expected: -5640)
No valid meta data found
Command 'drbdmeta 0 v08 /dev/md125 internal dump-md' terminated with exit
code 255

I was able to find the following from the qnap system, maybe it has some
clues:

# cat .config/qdrbd.conf
[Global]
drbdIdBitmap = 0x2

[DRBD_1]
drbdId = 1
baseId = 1
baseName = /dev/md1
metadataName = internal
flag = 0xd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180511/0bedbb07/attachment.htm>


More information about the drbd-user mailing list