Comment 18 for bug 489398

Revision history for this message
In , Wolfgang (wolfgang-redhat-bugs) wrote :

Indeed - this gets it working:

# diff /etc/lvm/lvm.conf.ORIG /etc/lvm/lvm.conf
53c53,55
< filter = [ "a/.*/" ]
---
> #filter = [ "a/.*/" ]
> # For DEBD setup, accept only DRBD and "SCSI" disks
> filter = [ "a|^/dev/drbd|", "a/sda/", "a/sdb/", "r/.*/" ]
# vgscan
  Reading all physical volumes. This may take a while...
  Found volume group "vg1" using metadata type lvm2
  Found volume group "vg0" using metadata type lvm2
# pvs
  PV VG Fmt Attr PSize PFree
  /dev/sda3 vg0 lvm2 a- 228.75G 20.75G
  /dev/sdb1 vg1 lvm2 a- 372.61G 0
# pvcreate /dev/drbd0
  Physical volume "/dev/drbd0" successfully created
# vgcreate replicated /dev/drbd0
  Volume group "replicated" successfully created
# pvs
  PV VG Fmt Attr PSize PFree
  /dev/drbd0 replicated lvm2 a- 96.00G 96.00G
  /dev/sda3 vg0 lvm2 a- 228.75G 20.75G
  /dev/sdb1 vg1 lvm2 a- 372.61G 0
# lvcreate --name Mail --size 32G replicated
  Logical volume "Mail" created

Thanks a lot!