[linux-lvm] Running LVM on shared LUNs

Lamont R. Peterson peregrine at openbrainstem.net
Tue Aug 8 06:50:36 UTC 2006


On Monday 07 August 2006 03:59pm, Joshua Aune wrote:
> I have two systems that are connected to a SAN.  The SAN is exporting
> the same 4 luns to each system (/dev/sd[b,c,d,e]).  Under normal
> operation system1 will combine sdb with sdc into a vg and system2 will
> combine sdd with sde into a vg with both vgs consisting of one large lv
> and one small lv.  After the system is configured there will be no
> modifications made to the LVM configuration.  LVM is configured on one
> node and then copied over to the second node.
>
> The million dollar question is, can system1 and system2 simultaneously
> have both of the VGs active without hosing any data?

As I understand it, only if you are using a filesystem that supports clustered 
operations, like GFS.

> I am not trying to have the same filesystem mounted simultaneously, just
> have the LVs available simultaneously for failover needs

In that case, as long as you have some heartbeat or something that lets you 
know when the one system needs to take over the other's PVs.  The trick here 
is that if you lose your network connection, but the box is still accessing 
data on the LUNs, that could become problematic.  Maybe a tiny little shared 
GFS thing would allow your boxes a place to write some status info (a 
custom "heartbeat", if you will) so that a network disconnect or other issue 
won't cause false alarms.

Probably best to just use GFS.

> I know that this sort of config can be done with the GFS pool volume
> manger but I have been told that many other VMs don't support this
> behavior....

/me shrugs

Not sure about that as I don't have any SAN to play with :( .  Never tried it.
-- 
Lamont R. Peterson <peregrine at OpenBrainstem.net>
Founder [ http://blog.OpenBrainstem.net/peregrine/ ]
GPG Key fingerprint: 0E35 93C5 4249 49F0 EC7B  4DDD BE46 4732 6460 CCB5
  ___                   ____            _           _
 / _ \ _ __   ___ _ __ | __ ) _ __ __ _(_)_ __  ___| |_ ___ _ __ ___
| | | | '_ \ / _ \ '_ \|  _ \| '__/ _` | | '_ \/ __| __/ _ \ '_ ` _ \
| |_| | |_) |  __/ | | | |_) | | | (_| | | | | \__ \ ||  __/ | | | | |
 \___/| .__/ \___|_| |_|____/|_|  \__,_|_|_| |_|___/\__\___|_| |_| |_|
      |_|               Intelligent Open Source Software Engineering
                              [ http://www.OpenBrainstem.net/ ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20060808/a3a38c71/attachment.sig>


More information about the linux-lvm mailing list