[DRBD-user] Trying to setup drbd with keeping LV data

Christoph Pleger Christoph.Pleger at cs.tu-dortmund.de
Thu Oct 14 10:46:40 CEST 2021


Hello,

I am trying to setup drbd volumes on top of LVM logical volumes and
want to keep the existing data on the logical volumes. I found a HOWTO
for that, but when I try to create the metadata with 'drbdadm create-
md', I get:

md_offset 0
al_offset 4096
bm_offset 36864

Found some data

 ==> This might
destroy existing data! <==

Do you want to proceed?
[need to type 'yes' to
confirm]

And a test on a less important machine showed that it really destroyed
data.

This is my resource file:

resource jovelin {
  volume 1 {
    device    /dev/drbd1;
    disk     
/dev/vg0/home;
    flexible-meta-disk /dev/vg0/home_metadata;
  }

  volume
2 {
    device    /dev/drbd2;
    disk      /dev/vg0/vservers;
   
flexible-meta-disk /dev/vg0/vservers_metadata;
  }

  on tristan {
   
address   129.217.5.65:7789;
  }
  on isolde {
    address  
129.217.5.66:7789;
  }
}

Why does drbdadm create-md destroy data on the logical volume, though I
defined metadata to be an external volume? What can I do now to create
the drbd device without losing data?

Regards
  Christoph  



More information about the drbd-user mailing list