All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Caulfield <caulfield@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] using LVM from two machines
Date: Wed, 1 Aug 2001 17:08:28 +0100	[thread overview]
Message-ID: <20010801170828.G2603@tykepenguin.com> (raw)
In-Reply-To: <20010801152451.41897.qmail@web14403.mail.yahoo.com>; from shahi_aman@yahoo.com on Wed, Aug 01, 2001 at 08:24:51AM -0700

On Wed, Aug 01, 2001 at 08:24:51AM -0700, Aman Shahi wrote:
> Hi,
> I have LVM installed on two machines, both of which
> are connected to the same storage(RAID BOX). Now I
> need to do LVM operations from different machines at
> different times. I will try to put a scenario and my
> problem.
> 
> Lets say I have 2 disks( disk1, disk2). I have two
> machines M1 and M2. Both machine see all the disks. If
> I create a VG called VG1 on disk1 from M1, and do a
> vgscan on M2, the VG VG1 can be seen from both the
> machines. I then create VG called VG2 from M2 on
> disk2.
> 
> So basically I created 2 VG's from two different
> machines, but both is visible on both machines. 
> 
> Now if I delete a VG from a machine from one machine,
> any LVM operations from the other machine fails with
> the message "VGDA in kernel and LVMTAB are not
> consistent". I manually removed /dev/VG1 and /etc/lvm*
> from the other machine and did a vgscan , but still I
> get the message "VGDA in kernel and lvmtab are
> inconsistent, please run vgscan". Running vgscan does
> not help.
> 
> How can I modify this VGDA in kernel in the other
> machine so that any LVM operation on one machine can
> be reflected in the other machine. Or can I do
> something like  "deactivating" the data that is kept
> in the kernel, so that the LVM just relies on the
> information in the disks, or something like that. I
> mean I need to be able to use LVM from two different
> machine as if they were one.

The short answer is "don't do that!". We are currently working
of a cluster-enabled version of LVM (I don't have any release dates I'm afraid)
that will enable you to do what you want and more.

The only way to achieve what you want to do at the moment is to unload the VGs
on one machine (vgchange -ay after closing all the volumes), make the changes
on the other machine and then re-run vgscan on the first machine and remount the
volumes. This applies to *any* changes you make to the LVM configuration.

Be careful !

patrick

  reply	other threads:[~2001-08-01 16:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-01 15:24 [linux-lvm] using LVM from two machines Aman Shahi
2001-08-01 16:08 ` Patrick Caulfield [this message]
2001-08-01 17:38   ` AJ Lewis
2001-08-01 18:38     ` Patrick Caulfield
2001-08-02  9:02   ` Harald Milz
2001-08-07  1:49 ` Tracy R Reed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010801170828.G2603@tykepenguin.com \
    --to=caulfield@sistina.com \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.