[DRBD-user] After a upgrade to v8 it says: (115) Meta device is already mounted.

Esben Laursen hyber at hyber.dk
Wed Feb 14 15:18:56 CET 2007

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


Hi List,

I have upgraded my drbd v0.7 to v8 and now when I try and start the 
service it says:

[root at rtsan01 ~]# /etc/init.d/drbd start
Starting DRBD resources:    [ d0 Failure: (115) Meta device is already 
mounted.

cmd /sbin/drbdsetup /dev/drbd0 disk /dev/sdb1 /dev/sdb1 flexible 
--set-defaults --create-device --on-io-error=detach  failed!

If I change to metadata internal, insted of flexible-metadata internal 
it says that I have to create a new metadata with drbdadm create-md res, 
but wount that delete the data I already have on the disk?

Hope that you guys can help me

Cheers

Esben

Ps. Here is my configuration file:

global {
    # minor-count 64;
    # dialog-refresh 5; # 5 seconds
    # disable-ip-verification;
    usage-count ask;
}

common {
  syncer { rate 100M; }
}

resource cluster_metadata {

  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 {
    # wfc-timeout  0;
    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;

  }

  net {
    after-sb-0pri disconnect;
    after-sb-1pri disconnect;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }

  syncer {
#    rate 10M;
#    after "r2";
    al-extents 257;
  }

  on rtsan01.intern.rantek.dk {
    device     /dev/drbd0;
    disk       /dev/sdb1;
    address    10.201.0.21:7788;
    meta-disk internal;
  }
  on rtsan02.intern.rantek.dk {
    device    /dev/drbd0;
    disk      /dev/sdb1;
    address   10.201.0.22:7788;
    meta-disk internal;
  }
}

resource vg0_drbd {

  protocol C;
  startup {
    wfc-timeout         0;  ## Infinite!
    degr-wfc-timeout  120;  ## 2 minutes.
  }

  disk {
    on-io-error detach;
  }

  net {
    # timeout           60;
    # connect-int       10;
    # ping-int          10;
    # max-buffers     2048;
    # max-epoch-size  2048;
  }

  syncer {
  after "cluster_metadata";
  }

  on rtsan01.intern.rantek.dk {
  device     /dev/drbd1;
  disk       /dev/sdb2;
  address    10.201.0.21:7789;
  meta-disk internal;
  }

  on rtsan02.intern.rantek.dk {
  device    /dev/drbd1;
  disk      /dev/sdb2;
  address   10.201.0.22:7789;
  meta-disk internal;
  }
}





More information about the drbd-user mailing list