All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Recovering from a disaster...
@ 2002-11-28  7:04 Shaw, Marco
  2002-11-28 15:47 ` Steven Lembark
  0 siblings, 1 reply; 10+ messages in thread
From: Shaw, Marco @ 2002-11-28  7:04 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

Going for my RHCE in a few weeks...  Always wondered:

1. Are there any gotchas in a corrupted LVM volume?  For example, /root/vg is an LVM volume, and either the 1st superblock on /root/vg or maybe the underlying /dev/sda1 partition or even /dev/md0 (assuming /root/vg could be sitting on top of a software RAID device) is zero'ed out.  How does one go about fixing it?  Will a simple fsck here work?  But in the above case, is fsck run against md0 or sda1?

2. If one knows that /dev/md0 is in trouble (composed of /dev/sda1 and /dev/sdb1), but /dev/sda1 is fine, can one, upon boot, simply change LILO/GRUB from trying to mount root from /dev/md0 to /dev/sda1?  My guess is no, since the disk label is different.

A typical scnerario could be LVM sitting on top of MD, and have to recover from some kind of disaster.  I wonder if the RedHat 8.0 rescue option has all the modules/tools to repair such a disaster.

A co-worker just screwed up a system I suspect was setup with a combination of LVM and MD.  I may have too quickly tried mounting /dev/sda2 (root on on disk), and maybe should have tried mounting /dev/md0.  After trying to mount /dev/sda2 (with an raid autodetect type), I think mount complained about invalid options, so I proceeded to do an fsck on /dev/sda2, only to have mention something about the superblock (yes, I should write all the errors down), so I tried fsck on something like 32768,
and it started up... And ran... And ran.  Result aftewards: all /dev/sda2 contains now after an attempt to mount it is "lost+found"!  :(

Marco

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [linux-lvm] Recovering from a disaster...
@ 2002-11-29  9:11 Shaw, Marco
  0 siblings, 0 replies; 10+ messages in thread
From: Shaw, Marco @ 2002-11-29  9:11 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

>> A typical scnerario could be LVM sitting on top of MD, and have to 
>> recover from some kind of disaster.  I wonder if the RedHat 8.0 rescue 
>> option has all the modules/tools to repair such a disaster.

> They don't support LVM out of the box, so this is unlikely.

Actually, RH now supports LVM as of 8.0.  An lsmod when in 'rescue mode' also shows lvm_mod.

The whole disaster with software RAID and LVM mixed in, isn't easy, but a friend and I figured it out yesterday.  Not knowing the system has a mix of both before troubleshooting could be (actually is) disastrous!

Marco

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

end of thread, other threads:[~2002-12-08 13:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-28  7:04 [linux-lvm] Recovering from a disaster Shaw, Marco
2002-11-28 15:47 ` Steven Lembark
2002-12-06 16:31   ` Mats Wichmann
2002-12-06 17:57     ` bscott
2002-12-06 19:48       ` Steven Dake
2002-12-07  3:45       ` Anders Widman
2002-12-07 16:07         ` bscott
2002-12-08 10:26       ` Steven Lembark
2002-12-08 13:25         ` Luca Berra
  -- strict thread matches above, loose matches on Subject: below --
2002-11-29  9:11 Shaw, Marco

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.