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

Florian Haas florian.haas at linbit.com
Mon Feb 9 19:52:13 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.


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.



More information about the drbd-user mailing list