All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [linux-lvm] made a big misstake
@ 2000-07-19  4:05 Michael Marxmeier
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Marxmeier @ 2000-07-19  4:05 UTC (permalink / raw)
  To: linux-lvm

Forwarded message from Andreas Dilger ...

-------- Original Message --------
From: Andreas Dilger <adilger@turbolinux.com>
Message-Id: <200007182302.e6IN2m930146@webber.adilger.net>
Subject: Re: [linux-lvm] made a big misstake
In-Reply-To: <20000718231557.B13413@zyrgelkwyt.pdc.kth.se>
=?ISO-8859-1?Q?from_Erik_B=E5gfors_at_Jul_18=2C_2000_11=3A15=3A57_pm?=
To: =?ISO-8859-1?Q?Erik_B=E5gfors?= <bagfors@pdc.kth.se>
Date: Tue, 18 Jul 2000 17:02:47 -0600 (MDT)
CC: linux-lvm@msede.com
X-Mailer: ELM [version 2.4ME+ PL73 (25)]
MIME-Version: 1.0

Erik writes:
> I just installed a new computer the other day and since I'm a long time
> aix-user and love there lvm-system I installed the linux-lvm.
> 
> So far I am VERY impressed.  I've tried resizeing and moving end extending
> and all kinds of stuff and everything worked!! Good work!!!

Online resize and move, or offline?  I'm not sure if online moving of
PEs
is really safe if the filesystem is being used.  Of course, it is safe
if
the PE doesn't change while it is being moved...

> Now the misstake, I did not run a vgreduce before I fdisk'ed the whole 
> disk (hdb).  Now when I start up, vgscan cannot find any vg's.

Was hdb1 the first PV created in the VG?  The problem, I think, is
that
Linux LVM only keeps the VGDA on the first PV.  AIX will keep a VGDA
copy on all of the PVs, and even will keep 2 VGDAs on the first PV for
backup, in case the first one is corrupt.

> So.. anyone knows how to solve this?  Sorry I don't have better output from
> my commands but it's hard since the network is not working on it right now :)

Sorry, I don't know enough about how the VGDA backups are stored.  You
may
be able to examine the VGDA backup to find the old size of /dev/hdb1
and
then restore it, but otherwise I'm not sure what you can do.

I think Linux LVM needs to be updated to keep VGDA backups on all
disks
instead of in the filesystem, exactly for reasons like this.  Right
now,
if the first disk fails, then you are unable to access any LVs that
are
wholly on another disk.  This is bad.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of
antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               --
Dogbert

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <200007182303.TAA20264@e35.marxmeier.com>]
* [linux-lvm] made a big misstake
@ 2000-07-18 21:15 Erik Bågfors
       [not found] ` <200007182302.e6IN2m930146@webber.adilger.net>
  0 siblings, 1 reply; 5+ messages in thread
From: Erik Bågfors @ 2000-07-18 21:15 UTC (permalink / raw)
  To: linux-lvm

Hi!

I just installed a new computer the other day and since I'm a long time
aix-user and love there lvm-system I installed the linux-lvm.

So far I am VERY impressed.  I've tried resizeing and moving end extending
and all kinds of stuff and everything worked!! Good work!!!


However I screwed up today.  
I had one vg (disk_vg) that was on two pv's (hda5 and hdb1).  I wanted to
remove one of them and did a pvmove and could see that the pv I wanted to
remove was empty.  Great!

Now the misstake, I did not run a vgreduce before I fdisk'ed the whole 
disk (hdb).  Now when I start up, vgscan cannot find any vg's.

all the vg*-utilities say they cannot find any vg's.

pvdisplay shows my vg on the pv but it's also on another pv :(

pvscan says 'inactive PV "/dev/hda5" is associated to an unknown VG (run
vgscan)'

I was thinking that creating a new pv (on /dev/hdb1) and running 
vgcfgrestore -n disk_vg /dev/hdb1 would help me get it back but it just
say that "size of physical volume /dev/hdb1 differs from backup" and I
cannot remember what size I had last time.

Is ther any way of finding that out?

There is nothing important on this box but it would be fun not having to
reinstall it!

So.. anyone knows how to solve this?  Sorry I don't have better output from
my commands but it's hard since the network is not working on it right now :)

/Erik

-- 
Erik B�gfors               | Center for Parallel Computers
http://erik.bagfors.nu/    | http://www.pdc.kth.se/
erik@bagfors.nu            | bagfors@pdc.kth.se  
Supporter of free software | GSM +46 70 398 54 43 

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

end of thread, other threads:[~2000-07-19  7:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-19  4:05 [linux-lvm] made a big misstake Michael Marxmeier
     [not found] <200007182303.TAA20264@e35.marxmeier.com>
2000-07-19  4:19 ` Michael Marxmeier
2000-07-19  5:20   ` Andreas Dilger
  -- strict thread matches above, loose matches on Subject: below --
2000-07-18 21:15 Erik Bågfors
     [not found] ` <200007182302.e6IN2m930146@webber.adilger.net>
2000-07-19  7:51   ` Erik Bågfors

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.