linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Heinz Mauelshagen <mauelshagen@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Recognizing VG in another machine
Date: Thu, 16 Feb 2006 13:32:22 +0100	[thread overview]
Message-ID: <20060216123222.GA23655@redhat.com> (raw)
In-Reply-To: <1417e79c0602131640l47b21c37o4ababa566bb53bf9@mail.gmail.com>

On Mon, Feb 13, 2006 at 09:40:54PM -0300, Garcia JR wrote:
> Hi PPL, little question.
> 
> Supposing i have 1 HD with 2 pvs (hda1 and hda3) in VG named VG01 and LV
> named lv01 working successfully in MACHINE1.
> 
> root@solid:/etc/lvmconf# lvscan
> lvscan -- ACTIVE            "/dev/vg01/lv01" [704 MB]
> lvscan -- 1 logical volumes with 704 MB total in 1 volume group
> lvscan -- 1 active logical volumes
> 
> root@solid:/etc/lvmconf# pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE   PV "/dev/hda1" of VG "vg01" [1.41 GB / 1.41 GB free]
> pvscan -- ACTIVE   PV "/dev/hda3" of VG "vg01" [1.41 GB / 736 MB free]
> pvscan -- total: 2 [2.91 GB] / in use: 2 [2.91 GB] / in no VG: 0 [0]
> 
> Supposing again: MACHINE1 is down and I need to put VG above in another
> server, named MACHINE2. I Will remove HD from MACHINE1 and put in MACHINE2.
> 
> What the nexts steps i will have to follow to make VG be recognized by
> MACHINE2 exactly how was in MACHINE1 without lose data?

vgscan ; vgchange -ay

presumably the filter in /etc/lvm/lvm.conf includes /dev/hd* (which it
does by default).

> 
> regards,

> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Cluster and Storage Development                   56242 Marienrachdorf
                                                  Germany
Mauelshagen@RedHat.com                            +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2006-02-16 12:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-14  0:40 [linux-lvm] Recognizing VG in another machine Garcia JR
2006-02-16 12:32 ` Heinz Mauelshagen [this message]
2006-02-17 14:04   ` [linux-lvm] Booting into LVM Roger Lucas
2006-02-17 14:11     ` Graham Wood
2006-02-17 14:50       ` Roger Lucas

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=20060216123222.GA23655@redhat.com \
    --to=mauelshagen@redhat.com \
    --cc=linux-lvm@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).