[DRBD-user] LVM PV on drbd block device
hans morbus2000
morbus2000 at web.de
Thu Nov 12 16:49:32 CET 2009
> -----Ursprüngliche Nachricht-----
> Von: "Juan Antonio" <pushakk at limbo.ari.es>
> Gesendet: 12.11.09 15:34:51
> An: "Lista drbd" <drbd-user at lists.linbit.com>
> Betreff: [DRBD-user] LVM PV on drbd block device
> Hello everyone, the first sorry about my poor english.
>
> I have configured an drbd8 cluster with two nodes so I have got a
> /dev/drbd1 device in both nodes. Later I sync the nodes with "drbdadm --
> --overwrite-data-of-peer primary" and the last I did "pvcreate /dev/drbd1"
> on primary node.
>
> When I do pvdisplay in the primary node I get
>
> xenstore1:/etc/iet# pvscan
> PV /dev/drbd1 VG store lvm2 [931,49 GB / 921,49 GB free]
> Total: 1 [931,49 GB] / in use: 1 [931,49 GB] / in no VG: 0 [0 ]
>
> so that's Ok, but in the secondary node I get
>
> xenstore2:~# pvscan -d
> PV /dev/md0 VG store lvm2 [931,49 GB / 921,49 GB free]
> Total: 1 [931,49 GB] / in use: 1 [931,49 GB] / in no VG: 0 [0 ]
>
> and only this, pvscan does not detect /dev/drbd1 like a PV device. If I
> configure LVM filter with
> filter = [ "a|drbd.*|", "r|.*|" ] pvscan show notihng.
>
> The drbd cluster is syncing yet but I did pvcreate after the syncing so I
> supossed that the LVM metadata would be writen In both nodes.
>
> Is this a issue? When the sync finish I will see /dev/drbd1 like a pv
> device in secondary node?
>
> Thanks very much.
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
hi,
the VG and LV doesnŽt contain "drbd" example vgdrbd or lvdrbd
we configure lvm.conf
filter = [ "a|sd.*|", "a|drbd.*|", "r|.*|" ]
This filter expression accepts PV signatures found on any SCSI and DRBD devices, while rejecting (ignoring) all others.
on both nodes
# pvcreate /dev/sdx
# pvscan -v
# vgcreate vgtest /dev/sdx
# vgscan
# lvcreate --name lvtest -l xxxxxx vgtest
# lvdisplay
create drbd device and Initial device synchronization primary / secondary
initial drbd device as physical volume
# pvcreate -ddd -vvv /dev/drbdx
# pvscan -v (shows PV /dev/drbdx)
on one node create VG on drbd device
# vgcreate -ddd -vvv vgontop /dev/drbdx
# vgscan -v
# lvcreate --name lvontop --size xxTB vgontop
# lvdisplay
> lv only on one node
on this node
# vgchange -a n vgontop
# drbdadm secondary drbdx
on the other node
# drbdadm primary drbdx
# vgchange -a y vgontop
--> now, lv on top of drbd to be available on both nodes
Regards
Andreas
_____________________________________________________________
DSL-Preisknaller: DSL-Komplettpakete von WEB.DE schon für
16,99 Euro/mtl.!* Hier klicken: http://produkte.web.de/go/02/
More information about the drbd-user
mailing list