drbd-user May 2010 archive
Main Archive Page > Month Archives  > drbd-user archives
drbd-user: [DRBD-user] Rescanning LVM after DRBD starts on CentO

[DRBD-user] Rescanning LVM after DRBD starts on CentOS 5

From: Digimer <linux_at_nospam>
Date: Thu May 20 2010 - 00:21:18 GMT
To: "drbd-user@lists.linbit.com" <drbd-user@lists.linbit.com>

Hi all,

   I've got a Primary/Primary setup running on a simple 2-node cluster
running CentOS 5.5 x86_64. The DRBD devices are LVM LVs on either node.
The DRBD itself is, in turn, a PV which hosts a VG and a couple LVs used
in the cluster.

   This all works and everything is fine. The problem is that when the
nodes boot, the DRBD-based PV (and thus it's VG and LVs) are no visible.
This is easy enough to fix by running the following on both nodes:

pvscan
vgscan
lvscan
lvchange -a y /dev/drbd_vg0/iso_store /dev/drbd_vg0/vm01

   I know the second node doesn't need to call 'lvchange'...

   Anyway, my question is; How do I get LVM to automatically recognize
the DRBD-based LVM components at boot time? The reason I want to sort
this out is that I want to be able to add my GFS LV to /etc/fstab so
that the system comes up on it's own on boot (even if the other node is
off).

   Should I be asking this on the LVM mailing list? I figured it's more
appropriate here as not so many LVM users use DRBD as the other way
around. :)

-- Digimer E-Mail: linux@alteeve.com AN!Whitepapers: http://alteeve.com Node Assassin: http://nodeassassin.org _______________________________________________ drbd-user mailing list drbd-user@lists.linbit.com http://lists.linbit.com/mailman/listinfo/drbd-user