[DRBD-user] drbd and LVM1

Luc de Louw luc at delouw.ch
Thu Dec 30 15:17:16 CET 2004

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


Hi all,

I want to use DRBD on top of LVM1.

After setting up all the things /dev/drbd0 uses /dev/vgdata/lvdata as the
underlying device (exactly the same setup sizes etc on both nodes)

Then I lvexend the lvdata from 10g to 11g and run drbdadm resize r0 and get a
errormessage:

err=ioctl(drbd_fd,DRBD_IOCTL_SET_DISK_SIZE,0);

What made I wrong?

something about my System:
Kernel 2.4.28
drbd 0.7.7

drbd.conf:
resource r0 {
  protocol C;
  #incon-degr-cmd "halt -f";

  startup {
    degr-wfc-timeout 120;    # 2 minutes.
    wfc-timeout 120;    # 2 minutes.
  }

  syncer {  rate 100M; }

  on node1 {
    meta-disk internal;
    device    /dev/drbd0;
    disk      /dev/vgdata/lvdata;
    address   192.168.0.21:7789;
  }

  on node2 {
    meta-disk internal;
    device    /dev/drbd0;
    disk      /dev/vgdata/lvdata;
    address   192.168.0.22:7789;
  }
}

Thanks a lot for any hints

rgds

Luc



More information about the drbd-user mailing list