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

hans morbus2000 morbus2000 at web.de
Mon Feb 9 18:52:34 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.


Hi there,

we want use "Nested LVM configuration with DRBD"
but we canŽt create a VG on top of the PV /dev/drbd0?

2.6.16.60-0.27-xen
drbd 8.2.6
finally, we want use in primary / primary mode an ocfs2


OK. step by step

set an filter in the /etc/lvm/lvm.conf
filter = ["a|sd.*|", "a|drbd.*|", "r|.*|"]

we have one partition /dev/sda3, which we use as physical volume on each node.

# pvcreate /dev/sda3			# initialize partitions as PVs
Physical volume "/dev/sda3" successfully created

# pvscan –v				# show physical volume
    Wiping cache of LVM-capable devices
    Wiping internal VG cache
    Walking through all physical volumes
  PV /dev/sda3         lvm2 [1.36 TB]

# vgcreate vglocal /dev/sda3		# erstellt die VG und fügt die Partition hinzu
					Beispiel: vgcreate local /dev/sda1 /dev/sda2
Volume group "vglocal" successfully created

# vgscan				# show VG
  Reading all physical volumes.  This may take a while...
  Found volume group "vglocal" using metadata type lvm2

# lvcreate --name drbd -l 355343 vglocal	# create your LV to be used as DRBD's backing
  Logical volume "drbd" created


Now, we configure DRBD and subsequent promote /dev/drbd0 as Primary on one node.

# pvcreate –d –v /dev/drbd0		# write PV signature
  Physical volume "/dev/drbd0" successfully created

# 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
...
#metadata/metadata.c:44     Adding physical volume '/dev/drbd0' to volume group 'vgdrbd'
#device/dev-io.c:438         Opened /dev/drbd0 RO O_DIRECT
#device/dev-io.c:135         /dev/drbd0: block size is 4096 bytes
#label/label.c:180       /dev/drbd0: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:484         Closed /dev/drbd0
#metadata/metadata.c:1309   No physical volume label read from /dev/drbd0
#metadata/metadata.c:54   /dev/drbd0 not identified as an existing physical volume
#metadata/metadata.c:223   Unable to add physical volume '/dev/drbd0' to volume group 'vgdrbd'.

I find this impossible to understand.
What's the problem?

Regard
Andy


_______________________________________________________________________
Jetzt 1 Monat kostenlos! WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 17,95 EURO/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K13805B7069a




More information about the drbd-user mailing list