Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] rebuilding raided root volume
@ 2009-04-05 13:53 Miles Fidelman
  2009-04-06 12:27 ` Bryn M. Reeves
  0 siblings, 1 reply; 2+ messages in thread
From: Miles Fidelman @ 2009-04-05 13:53 UTC (permalink / raw)
  To: linux-lvm

Hi Folks,

I've been busily rebuilding from a crash, and running into a sticky 
problem - my root volume is an LVM2 LV, built on top of a LVM2 PV, which 
in turn is built on top of a raided array (md - RAID1 configuration).  
The machine has 4 SATA drives (2 channels, master/slave in each).

It was a funny crash - it first looked like a hardware failure 
corrupting two drives; turns out it was a single drive that failed in a 
way that it kept responding, but taking a VERY long time to do so (10s 
of seconds) - the system kept running, but everything slowed to a 
crawl.  Not sure why the failure wasn't detected but that's a story for 
another day.

With the drive removed, everything came back up, but all 4 RAID one 
devices had become degraded and did not automatically rebuild themselves 
- they were all effectively running as a single drive.

After inserting a spare drive and formatting it, I started doing hot 
adds (mdadm --add) and 3 of 4 arrays are now working properly

Which brings us to the fourth array... which supports my root volume, 
configuration is something like this:

before crash:
/
Logical Volume
Physical Volume
RAID1 array - 2 active, one spare

after crash and partial recovery:
/
Logical Volume
Physical Volume
RAID1 array - showing inactive, running on spare drive alone

On the other volumes, when I did a hot add (mdadm --add ...) the added 
drives started resyncing and now all is fine.  On this array, the new 
drives shows as "spare rebuilding" but it doesn't really seem to be 
doing anything.

So... my question becomes: if I can't figure out how to get md to 
rebuild the array "underneath" LVM, how do I unwind all of this, and 
rebuild things - without becoming unrunable without a root volume?

Thanks for any suggestions anyone can offer.

Miles Fidelman

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

* Re: [linux-lvm] rebuilding raided root volume
  2009-04-05 13:53 [linux-lvm] rebuilding raided root volume Miles Fidelman
@ 2009-04-06 12:27 ` Bryn M. Reeves
  0 siblings, 0 replies; 2+ messages in thread
From: Bryn M. Reeves @ 2009-04-06 12:27 UTC (permalink / raw)
  To: LVM general discussion and development

On Sun, 2009-04-05 at 09:53 -0400, Miles Fidelman wrote:
> after crash and partial recovery:
> /
> Logical Volume
> Physical Volume
> RAID1 array - showing inactive, running on spare drive alone

Is the root volume group now active and using one member of the array as
a PV, or is it still using the MD device? If LVM has grabbed one of the
members and is using that as its PV this may prevent the rebuild from
taking place.

Regards,
Bryn.

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

end of thread, other threads:[~2009-04-06 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-05 13:53 [linux-lvm] rebuilding raided root volume Miles Fidelman
2009-04-06 12:27 ` Bryn M. Reeves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox