[DRBD-user] LVM PV on drbd block device

Juan Antonio pushakk at limbo.ari.es
Thu Nov 12 10:34:06 CET 2009

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


Hello everyone, the first sorry about my poor english.

I have configured an drbd8 cluster with two nodes so I have got a
/dev/drbd1 device in both nodes. Later I sync the nodes with "drbdadm --
--overwrite-data-of-peer primary" and the last I did "pvcreate /dev/drbd1"
on primary node.

When I do pvdisplay in the primary node I get

xenstore1:/etc/iet# pvscan
  PV /dev/drbd1   VG store   lvm2 [931,49 GB / 921,49 GB free]
  Total: 1 [931,49 GB] / in use: 1 [931,49 GB] / in no VG: 0 [0   ]

so that's Ok, but in the secondary node I get

xenstore2:~# pvscan -d
  PV /dev/md0   VG store   lvm2 [931,49 GB / 921,49 GB free]
  Total: 1 [931,49 GB] / in use: 1 [931,49 GB] / in no VG: 0 [0   ]

and only this, pvscan does not detect /dev/drbd1 like a PV device. If  I
configure LVM filter with
filter = [ "a|drbd.*|", "r|.*|" ] pvscan show notihng.

The drbd cluster is syncing yet but I did pvcreate after the syncing so I
supossed that the LVM metadata would be writen In both nodes.

Is this a issue? When the sync finish I will see /dev/drbd1 like a pv
device in secondary node?

Thanks very much.




More information about the drbd-user mailing list