FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-18-2012, 10:28 AM
Ramon Hofer
 
Default Recovering nested raid (was LSI MegaRAID SAS 9240-4i hangs system at boot)

On Mon, 18 Jun 2012 00:46:55 +0200
Ramon Hofer <ramonhofer@bluewin.ch> wrote:

> I'm again having problems with the disks getting kicked out of the
> array :-o

I've already asked this before on the debian list and got an answer.
But I'm not sure if I should do this.

Here's a link to my old problem:
http://lists.debian.org/debian-user/2012/04/msg01290.html

The answer from Daniel Koch (thx again) was:

> - Zero all the superblocks on all the disks.
> ~$ mdadm --zero-superblock /dev/sd{b..d}
>
> - Recreate the array with the "--assume-clean" option.
> ~$ mdadm --create --verbose /dev/md0 --auto=yes --assume-clean
> --level=5 --raid-devices=3 /dev/sdb /dev/sdc /dev/sdd
>
> - Mark it possibly dirty with:
> ~$ mdadm --assemble /dev/md0 --update=resync"
>
> - Let it resync
>
> - Mount it and see if it is restored

I'm not sure if this is the correct way here too because I have a
nested raid.

If yes then this should work for me now:

~$ mdadm --zero-superblock /dev/sd[abcd]
~$ mdadm --zero-superblock /dev/sd[efgh]

~$ mdadm --create --verbose /dev/md1 --auto=yes --assume-clean
--level=5 --raid-devices=4 /dev/sd[abcd]
~$ mdadm --create --verbose /dev/md2 --auto=yes --assume-clean
--level=5 --raid-devices=4 /dev/sd[efgh]

~$ mdadm --assemble /dev/md1 --update=resync
~$ mdadm --assemble /dev/md2 --update=resync

Now md0 should have it's members back and I can start it again
~$ mdadm -A /dev/md0 /dev/md[12]

And if I'm very lucky this time I still have my data on the array :-)


I wanted to ask you before I try this if this could help.
Maybe I should ask in the linux raid mailing list too?


Cheers
Ramon


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120618122803.3df6f666@hoferr-x61s.hofer.rummelring
 

Thread Tools




All times are GMT. The time now is 12:06 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org