linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Installation fails if VG is exported
@ 2011-06-07  2:29 Misc Things
  2011-06-07 12:25 ` Stuart D. Gathman
  0 siblings, 1 reply; 7+ messages in thread
From: Misc Things @ 2011-06-07  2:29 UTC (permalink / raw)
  To: LVM general discussion and development

Hello,
 i guess i'm doing smth very stupid, but... Here is the story:
 i decided to migrate to RH6 ( SL6). I run pretty old box ( 6 yo,
AST160 ASPIRE) with recently added WD1.5 TB ( i doubt it makes any
difference, but .. ).
System has a few VGs ( LVM2) created and enabled.
I'm a bit paranoid to lose my data during installation - i followed
the LVM's FAQ (http://tldp.org/HOWTO/LVM-HOWTO/recipemovevgtonewsys.html).
Here are the steps i took and the results:
1. umount ;
2.  vgchange -ay
3. vgexport
4. i commented out the VG in /etc/fstab ( just in case ).
reboot - FS is not mounted, VG is inactive - so far everything as expected.

reboot and load network installation, default values are picked up on
the GUI installer's screen.
During the HDs checking phase, anaconda terminates with the message "
unalbe to activate exported VG".
I googled around with not much success. The only similar issue was
closed in2007 (https://bugzilla.redhat.com/show_bug.cgi?id=191879)

Please advise.
Andrew

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] Installation fails if VG is exported
  2011-06-07  2:29 [linux-lvm] Installation fails if VG is exported Misc Things
@ 2011-06-07 12:25 ` Stuart D. Gathman
  2011-06-07 14:53   ` Misc Things
  0 siblings, 1 reply; 7+ messages in thread
From: Stuart D. Gathman @ 2011-06-07 12:25 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, 6 Jun 2011, Misc Things wrote:

> During the HDs checking phase, anaconda terminates with the message "
> unalbe to activate exported VG".
> I googled around with not much success. The only similar issue was
> closed in2007 (https://bugzilla.redhat.com/show_bug.cgi?id=191879)

Exporting the VG is *supposed* to prevent activation.  You can reverse this
with vgimport.  Why did you wish to prevent activation?  Normally,
vgexport is used prior to physically removing a VG from the system.
(And then vgimport after attaching the drives to the new system.)

--
 	      Stuart D. Gathman <stuart@bmsi.com>
     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] Installation fails if VG is exported
  2011-06-07 12:25 ` Stuart D. Gathman
@ 2011-06-07 14:53   ` Misc Things
  2011-06-07 15:25     ` Stuart D. Gathman
  0 siblings, 1 reply; 7+ messages in thread
From: Misc Things @ 2011-06-07 14:53 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Jun 7, 2011 at 8:25 AM, Stuart D. Gathman <stuart@bmsi.com> wrote:
> On Mon, 6 Jun 2011, Misc Things wrote:
>
>> During the HDs checking phase, anaconda terminates with the message "
>> unalbe to activate exported VG".
>> I googled around with not much success. The only similar issue was
>> closed in2007 (https://bugzilla.redhat.com/show_bug.cgi?id=191879)
>
> Exporting the VG is *supposed* to prevent activation. �You can reverse this
> with vgimport. �Why did you wish to prevent activation? �Normally,
> vgexport is used prior to physically removing a VG from the system.
> (And then vgimport after attaching the drives to the new system.)

Well, I just want to keep my data intact while i'm playing with the
installation. I understand that @ this point it's just easier to pull
the power on the HDs with the VG in question. But i'm curious why this
is a problem...

Andrew

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] Installation fails if VG is exported
  2011-06-07 14:53   ` Misc Things
@ 2011-06-07 15:25     ` Stuart D. Gathman
  2011-06-07 15:38       ` Stuart D. Gathman
  0 siblings, 1 reply; 7+ messages in thread
From: Stuart D. Gathman @ 2011-06-07 15:25 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, 7 Jun 2011, Misc Things wrote:

>> Exporting the VG is *supposed* to prevent activation.  You can reverse this
>> with vgimport.  Why did you wish to prevent activation?  Normally,
>> vgexport is used prior to physically removing a VG from the system.
>> (And then vgimport after attaching the drives to the new system.)
>
> Well, I just want to keep my data intact while i'm playing with the
> installation. I understand that @ this point it's just easier to pull
> the power on the HDs with the VG in question. But i'm curious why this
> is a problem...

It isn't a problem, unless you expect the VG to be available at boot time,
which apparently you do.  Do you have a root FS on the VG?

vgexport is for physically removing the drives, not for rebooting.

--
 	      Stuart D. Gathman <stuart@bmsi.com>
     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] Installation fails if VG is exported
  2011-06-07 15:25     ` Stuart D. Gathman
@ 2011-06-07 15:38       ` Stuart D. Gathman
  2011-06-07 17:01         ` Misc Things
  2011-06-13 15:05         ` Andrew Z
  0 siblings, 2 replies; 7+ messages in thread
From: Stuart D. Gathman @ 2011-06-07 15:38 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, 7 Jun 2011, Stuart D. Gathman wrote:

>>> Exporting the VG is *supposed* to prevent activation.  You can reverse 
>>> this with vgimport.  Why did you wish to prevent activation?  Normally,
>>> vgexport is used prior to physically removing a VG from the system.  (And
>>> then vgimport after attaching the drives to the new system.)
>> 
>> Well, I just want to keep my data intact while i'm playing with the
>> installation. I understand that @ this point it's just easier to pull
>> the power on the HDs with the VG in question. But i'm curious why this
>> is a problem...
>
> It isn't a problem, unless you expect the VG to be available at boot time,
> which apparently you do.  Do you have a root FS on the VG?

I get it - you wanted to prevent your OS experimentation from activating and
possibly writing over your VG.  I can understand why vgexport seemed like
a solution, but it only prevents activation and removes references from
local LVM configuration (and prevents booting when that depends on the VG as
you discovered).

It doesn't prevent a rogue/buggy OS from scribbling on the disks.  So,
physically disconnecting (or powering off) the disks is the best way
to prevent that.

--
 	      Stuart D. Gathman <stuart@bmsi.com>
     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] Installation fails if VG is exported
  2011-06-07 15:38       ` Stuart D. Gathman
@ 2011-06-07 17:01         ` Misc Things
  2011-06-13 15:05         ` Andrew Z
  1 sibling, 0 replies; 7+ messages in thread
From: Misc Things @ 2011-06-07 17:01 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Jun 7, 2011 at 11:38 AM, Stuart D. Gathman <stuart@bmsi.com> wrote:
> On Tue, 7 Jun 2011, Stuart D. Gathman wrote:
> ...
> I get it - you wanted to prevent your OS experimentation from activating and
> possibly writing over your VG. �I can understand why vgexport seemed like
> a solution, but it only prevents activation and removes references from
> local LVM configuration (and prevents booting when that depends on the VG as
> you discovered).
>
> It doesn't prevent a rogue/buggy OS from scribbling on the disks. �So,
> physically disconnecting (or powering off) the disks is the best way
> to prevent that.

Right you are. i think i should reconsider my point of view - indeed
if i'm that paranoid i should eliminate any chances of losing data -
disconnect the dirve(s) is the best solution for this.

And then, i think, that the question is more relevant to anaconda
mailing group.support then to LVM group. Since it's anaconda that
tries to activate the VG.
Thank you Stuart!
Andrew

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] Installation fails if VG is exported
  2011-06-07 15:38       ` Stuart D. Gathman
  2011-06-07 17:01         ` Misc Things
@ 2011-06-13 15:05         ` Andrew Z
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Z @ 2011-06-13 15:05 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]

"Stuart D. Gathman" <stuart@bmsi.com> wrote:

On Tue, 7 Jun 2011, Stuart D. Gathman wrote: >>> Exporting the VG is *supposed* to prevent activation. You can reverse >>> this with vgimport. Why did you wish to prevent activation? Normally, >>> vgexport is used prior to physically removing a VG from the system. (And >>> then vgimport after attaching the drives to the new system.) >> >> Well, I just want to keep my data intact while i'm playing with the >> installation. I understand that @ this point it's just easier to pull >> the power on the HDs with the VG in question. But i'm curious why this >> is a problem... > > It isn't a problem, unless you expect the VG to be available at boot time, > which apparently you do. Do you have a root FS on the VG? I get it - you wanted to prevent your OS experimentation from activating and possibly writing over your VG. I can understand why vgexport seemed like a solution, but it only prevents activation and removes references from local LVM configuration (and prevents booting when th!
 at
depends on the VG as you discovered). It doesn't prevent a rogue/buggy OS from scribbling on the disks. So, physically disconnecting (or powering off) the disks is the best way to prevent that. -- 	 Stuart D. Gathman <stuart@bmsi.com> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flammis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial._____________________________________________
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/ 


After stressing out about he insraller messing out with my "precious" :) data, the installation went remarkably well. I still think that it should not terminate because of exported volumes thou.
Andrew 
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

[-- Attachment #2: Type: text/html, Size: 2463 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-13 15:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07  2:29 [linux-lvm] Installation fails if VG is exported Misc Things
2011-06-07 12:25 ` Stuart D. Gathman
2011-06-07 14:53   ` Misc Things
2011-06-07 15:25     ` Stuart D. Gathman
2011-06-07 15:38       ` Stuart D. Gathman
2011-06-07 17:01         ` Misc Things
2011-06-13 15:05         ` Andrew Z

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).