[DRBD-user] Can not attach drbd device

Thomas Aichinger t.aichinger at datamagic.at
Mon May 25 21:44:17 CEST 2015

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


Hi,

I run openSuse 13.2, Linux version 3.16.7-21-pae with DRBDADM_VERSION=8.4.3
I created a partition /dev/sda3

drbdadm create-md mydata -> sucess
drbdadm attach mydata -> error

drbdadm attach mydata
0: Failure: (127) Device minor not allocated
additional info from kernel:
unknown minor
Command 'drbdsetup attach 0 /dev/sda3 /dev/sda3 internal' terminated 
with exit code 10

Does anyone know how to fix this?


Here are the config files:

resource mydata {
   on bb1 {
     device   /dev/drbd0;
     disk     /dev/sda3;
     address  192.168.101.11:7789;
     meta-disk internal;
   }
   on bb2 {
     device   /dev/drbd0;
     disk     /dev/sda3;
     address  192.168.101.12:7789;
     meta-disk internal;
   }
}


global {
    usage-count no;
    # minor-count dialog-refresh disable-ip-verification
}

common {
    handlers {
       # These are EXAMPLE handlers only.
       # They may have severe implications,
       # like hard resetting the node under certain circumstances.
       # Be careful when chosing your poison.

       pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; 
/usr/lib/drbd/notify-emergency-reboot.sh; echo 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; echo 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 > /proc/sysrq-trigger 
; halt -f";
       fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
       split-brain "/usr/lib/drbd/notify-split-brain.sh root";
       out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";
       before-resync-target "/usr/lib/drbd/snapshot-resync-target-lvm.sh 
-p 15 -- -c 16k";
       after-resync-target 
"/usr/lib/drbd/unsnapshot-resync-target-lvm.sh; 
/usr/lib/drbd/crm-unfence-peer.sh";
    }

    startup {
       # wfc-timeout degr-wfc-timeout outdated-wfc-timeout wait-after-sb
       #
       #wfc-timeout 0;
       #degr-wfc-timeout 0;
    }

    options {
       # cpu-mask on-no-data-accessible
    }

    disk {
       # size max-bio-bvecs on-io-error fencing disk-barrier disk-flushes
       # disk-drain md-flushes resync-rate resync-after al-extents
       # c-plan-ahead c-delay-target c-fill-target c-max-rate
       # c-min-rate disk-timeout
       #
       #no-disk-flushes;
       #no-md-flushes;
       #no-disk-barrier;
       #no-disk-drain;
       #fencing resource-only;
       #on-io-error detach;
       #c-plan-ahead 20;
       #c-min-rate 10M;
       #c-max-rate 30M;
       #c-fill-target 5M;
}

    net {
       # protocol timeout max-epoch-size max-buffers unplug-watermark
       # connect-int ping-int sndbuf-size rcvbuf-size ko-count
       # allow-two-primaries cram-hmac-alg shared-secret after-sb-0pri
       # after-sb-1pri after-sb-2pri always-asbp rr-conflict
       # ping-timeout data-integrity-alg tcp-cork on-congestion
       # congestion-fill congestion-extents csums-alg verify-alg
       # use-rle
       #ko-count 5;
       #
       #sndbuf-size 10M;
       #rcvbuf-size 10M;
       #ping-int 2;
       #ping-timeout 2;
       #connect-int 2;
       #timeout 10;
       #max-buffers 128k;
       #max-epoch-size 8192;
       #verify-alg md5;
       protocol C;
    }
}






-- 
Viele Grüße
Thomas Aichinger

----------------------------
http://www.datamagic.at
----------------------------
Data Magic Datenservice GmbH
Schönbrunner Straße 140
1120 Wien




More information about the drbd-user mailing list