Re: [DRBD-user] Unable add volume group to physical volume /dev/drbd0

hans morbus2000 morbus2000 at web.de
Tue Feb 10 12:37:39 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.


> -----Ursprüngliche Nachricht-----
> Von: "Florian Haas" <florian.haas at linbit.com>
> Gesendet: 09.02.09 19:52:39
> An: drbd-user <drbd-user at lists.linbit.com>
> Betreff: Re: [DRBD-user] Unable add volume group to physical volume /dev/drbd0


> On 02/09/2009 06:52 PM, hans morbus2000 wrote:
> > # pvscan -v                                                     # show PVŽs
> >     Wiping cache of LVM-capable devices
> >     Wiping internal VG cache
> >     Walking through all physical volumes
> >   PV /dev/sda3           VG vglocal   lvm2 [1.36 TB / 0    free]
> >   PV /dev/vglocal/drbd                lvm2 [1.36 TB]
> > 
> > 
> > But, we canŽt create VG on top of the PV /dev/drbd0 ???????????????????
> > # vgcreate -dddd -vvvv vgdrbd /dev/drbd0       # create VG on top of PV /dev/drbd0
> > ...
> > 
> > I find this impossible to understand.
> > What's the problem?
> 
> You gave the answer yourself:
> 
> > set an filter in the /etc/lvm/lvm.conf
> > filter = ["a|sd.*|", "a|drbd.*|", "r|.*|"]
> 
> See your filter matches on your logical volume which you chose to name
> "drbd", not just your /dev/drbd* devices.
> 
> I suppose you wanted this:
> filter = ["a|sd.*|", "a|^/dev/drbd.*|", "r|.*|"]
> 
> ... or else, keep your filter definition as is, but don't choose a
> volume name that contains "drbd".
> 
> Florian
> 
> -- 
> : Florian G. Haas
> 
> When replying, there is no need to CC my personal address.
> I monitor the list on a daily basis. Thank you.
> 
> LINBIT® and DRBD® are registered trademarks of LINBIT.
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 

OK,

we keep the filter and change the lvdrbd > lvlocal
# lvcreate --name lvlocal -l 355343 vglocal	# create your LV to be used as DRBD's backing
  Logical volume "lvlocal" created

then we can initial /dev/drbd0 as PV 
# pvscan –v				# show PV /dev/drbd0
Wiping cache of LVM-capable devices
    Wiping internal VG cache
    Walking through all physical volumes
  PV /dev/sda3    VG vglocal   lvm2 [1.36 TB / 0    free]
  PV /dev/drbd0                lvm2 [1.36 TB]

also we can create VG on top of the PV /dev/drbd0
# vgcreate –dddd –vvvv vgmirror /dev/drbd0		# create VG on top of /dev/drbd0
  Volume group "vgmirror" successfully created

finally we create LVŽs, make them available on the peer node and change DRBD
in Dual-primary mode
thatŽs fine.


but after reboot one node, canŽt find the PV /dev/drbd0 automatically?????
# pvs
  PV         VG      Fmt  Attr PSize PFree
  /dev/sda3  vglocal lvm2 a-   1.36T    0

we must scan PV manually and make the LVŽs available on this node
 # pvscan
  PV /dev/sda3    VG vglocal    lvm2 [1.36 TB / 0    free]
  PV /dev/drbd0   VG vgmirror   lvm2 [1.36 TB / 288.00 GB free]
  Total: 2 [2.71 TB] / in use: 2 [2.71 TB] / in no VG: 0 [0   ]

# vgchange -a y vgmirror
  3 logical volume(s) in volume group "vgmirror" now active

how can we configure this automatically??????

Andy

__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html




More information about the drbd-user mailing list