[DRBD-user] Etch/SLES01sp1: DRBD 8.0.10 + OCFSv2 = possible?

Denny Schierz linuxmail at 4lin.net
Fri Feb 8 13:27:58 CET 2008

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 red a lot of documentation, tried many howtos and different distributions. I 
want to use drbd 8.0.10 (tried 8.2.x too) to sync two LVs. I was able to 
format /dev/drbd0 with ocfsv2, but i wasn't able to mount it:

##### Cluster01#####


cluster01:~/drbd-8.0.10# /etc/init.d/drbd status

drbd driver loaded OK; device status:
version: 8.0.10 (api:86/proto:86)
GIT-hash: 548d50b18dd7c625ad4445cc7e750b480c93794c build by root at cluster01, 
2008-02-08 12:12:42
m:res        cs         st               ds                 p  mounted  fstype
0:clusterfs  Connected  Primary/Primary  UpToDate/UpToDate  C

cluster01:~/drbd-8.0.10# cat /proc/drbd

version: 8.0.10 (api:86/proto:86)
GIT-hash: 548d50b18dd7c625ad4445cc7e750b480c93794c build by root at cluster01, 
2008-02-08 12:12:42
 0: cs:Connected st:Primary/Primary ds:UpToDate/UpToDate C r---
    ns:790820 nr:0 dw:790820 dr:2358 al:174 bm:0 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0


cluster01:~/drbd-8.0.10# mount /dev/drbd0 /srv/clusterfs/

ocfs2_hb_ctl: I/O error on channel while starting heartbeat
mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not 
permitted"

(same to cluster02)

#/etc/drbd.conf

global {
    usage-count yes;
}
common {
  syncer { rate 10M; }
}

resource clusterfs {
  protocol C;
  handlers {
    pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";
    pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";
    local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
    # outdate-peer "/usr/sbin/drbd-peer-outdater";
  }

startup {
  }
  disk {
    on-io-error   detach;
  }

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

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

  on cluster01 {
    device     /dev/drbd0;
    disk       /dev/cluster/clusterfs;
    address    192.168.3.103:7788;
    flexible-meta-disk  internal;
  }

  on cluster02 {
    device    /dev/drbd0;
    disk      /dev/cluster/clusterfs;
    address   192.168.3.136:7788;
    meta-disk internal;
  }

}


cluster01:~/drbd-8.0.10# cat /etc/ocfs2/cluster.conf
node:
        ip_port = 7777
        ip_address = 192.168.3.103
        number = 0
        name = cluster01
        cluster = ocfs2

node:
        ip_port = 7777
        ip_address = 192.168.3.136
        number = 1
        name = cluster02
        cluster = ocfs2

cluster:
        node_count = 2
        name = ocfs2


##### Cluster02#####

cluster02:~# cat /proc/drbd
version: 8.0.10 (api:86/proto:86)
GIT-hash: 548d50b18dd7c625ad4445cc7e750b480c93794c build by root at cluster01, 
2008-02-08 12:12:42
 0: cs:Connected st:Primary/Primary ds:UpToDate/UpToDate C r---
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0

cluster02:~# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.10 (api:86/proto:86)
GIT-hash: 548d50b18dd7c625ad4445cc7e750b480c93794c build by root at cluster01, 
2008-02-08 12:12:42
 0: cs:Connected st:Primary/Primary ds:UpToDate/UpToDate C r---
    ns:0 nr:790820 dw:790820 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0


dmesg after mount:

(20801,0):o2hb_setup_one_bio:290 ERROR: Error adding page to bio i = 2, 
vec_len = 4096, len = 0
, start = 0
(20801,0):o2hb_read_slots:385 ERROR: status = -5
(20801,0):o2hb_populate_slot_data:1299 ERROR: status = -5
(20801,0):o2hb_region_dev_write:1399 ERROR: status = -5


I have tested it with SLES10sp1 and Debian Etch. All the same results.

So, is it possible, or not? If not, what can i do?

cu denny

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080208/2b7ed6d4/attachment.pgp>


More information about the drbd-user mailing list