Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Mon, Feb 09, 2009 at 06:52:34PM +0100, hans morbus2000 wrote: > 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] bad. that should have found /dev/drbd0 as a pv, right? but it did not. as long as it does not, don't proceed further. -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed