Re: AARGH! Please help. IDE controller fsckup

From: Jakob Oestergaard (jakob@unthought.net)
Date: Thu Oct 03 2002 - 04:53:16 EST


On Wed, Oct 02, 2002 at 03:16:46PM +0200, Roy Sigurd Karlsbakk wrote:
> hi all
>
> I have this cute little server with some 16 120gig IDE drives, and I've got
> some serious problems with it.
>
> Controllers:
> One onboard IDE controller (2 channels).
> Two promise ATA100 (2 channels each).
> One CMD649 (2 channels).
>
> something seriously bad about the CMD649 makes Linux beleive it's the first
> controller with hd[abcd]. On these, there are two RAID-1s (/ and /var). Due
> to the fact that the box has some 1,6TB disk space, we haven't got any backup
> solution (we have an identical box in order to mirror them).
>
> so - now - the CMD649 has suddenly begun to fail - losing contact with one or
> two drives, and I _really_ need to get what's on /data (RAID-5 on
> hd[efghijklmnop]) out. Problem is - the replacement controller I've got from
> the vendor works fine (turns up as controller 3 serving hd[mnop]). How can I
> revert this most easily to be able to boot again?

Hindsight: had you used persistent superblocks, this would not have
been a problem. The kernel would know the correct ordering from the
superblocks, not the device names.

Solution 1: Write to the RAID mailing list and have one of the mdadm
gurus give you a one-liner to initialize the array with the proper
ordering.

Solution 2: Edit your /etc/raidtab to reflect the new device naming and
run raidstart.

If you start up the array with a bad ordering, no amount of magic is
going to bring back you data (after parity has been "reconstructed" on
various chunks of your existing data).

>
> I hope this is not too off topic... Please excuse that.
>

linux-raid is a better place.

Cheers,

-- 
................................................................
:   jakob@unthought.net   : And I see the elder races,         :
:.........................: putrid forms of man                :
:   Jakob Østergaard      : See him rise and claim the earth,  :
:        OZ9ABN           : his downfall is at hand.           :
:.........................:............{Konkhra}...............:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:38 EST