linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* All disks in the array suddenly non-fresh??
@ 2005-10-14  1:07 Boris Shingarov
  2005-10-14 17:40 ` Mike Tran
  0 siblings, 1 reply; 2+ messages in thread
From: Boris Shingarov @ 2005-10-14  1:07 UTC (permalink / raw)
  To: linux-raid

Hi,

I'm very new to raid so my question is probably very basic.

This machine I have, is set up with three partitions on
three different disks (/dev/hda3, /dev/hde1, /dev/hdg1)
forming a raid-5 array, /dev/md0.
At some point, the machine became unresponsive, and on a reboot,
I get the following:

...
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
...
md: Autodetecting RAID arrays.
md: autorun ...
md: considering hdg1 ...
md:  adding hdg1 ...
md:  adding hde1 ...
md:  adding hda3 ...
md: created md0
md: bind<hda3>
md: bind<hde1>
md: bind<hdg1>
md: running: <hdg1><hde1><hda3>
md: kicking non-fresh hdg1 from array!
md: unbind<hdg1>
md: export_rdev(hdg1)
md: kicking non-fresh hde1 from array!
md: unbind<hde1>
md: export_rdev(hde1)
md: personality 4 is not loaded!
md :do_md_run() returned -22
md: md0 stopped.
md: unbind<hda3>
md: export_rdev(hda3)
md: ... autorun DONE.

I am using classic (non-mdadm) raid tools.  Of course everything
like /proc/mdstat, shows I have no md0, nor can I start md0.
What would be the next logical thing to investigate, to get out
of this situation?

Boris


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

* Re: All disks in the array suddenly non-fresh??
  2005-10-14  1:07 All disks in the array suddenly non-fresh?? Boris Shingarov
@ 2005-10-14 17:40 ` Mike Tran
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Tran @ 2005-10-14 17:40 UTC (permalink / raw)
  To: Boris Shingarov; +Cc: linux-raid

Hi Boris,

This kind of problem is a result of unclean shutdown.  There are 2
problems here...

On Thu, 2005-10-13 at 21:07 -0400, Boris Shingarov wrote:
> Hi,
> 
> I'm very new to raid so my question is probably very basic.
> 
> This machine I have, is set up with three partitions on
> three different disks (/dev/hda3, /dev/hde1, /dev/hdg1)
> forming a raid-5 array, /dev/md0.
> At some point, the machine became unresponsive, and on a reboot,
> I get the following:
> 
> ...
> md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
> ...
> md: Autodetecting RAID arrays.
> md: autorun ...
> md: considering hdg1 ...
> md:  adding hdg1 ...
> md:  adding hde1 ...
> md:  adding hda3 ...
> md: created md0
> md: bind<hda3>
> md: bind<hde1>
> md: bind<hdg1>
> md: running: <hdg1><hde1><hda3>
> md: kicking non-fresh hdg1 from array!
> md: unbind<hdg1>
> md: export_rdev(hdg1)
> md: kicking non-fresh hde1 from array!
> md: unbind<hde1>
> md: export_rdev(hde1)

(1) MD superblock on hdg1 and hde1 are out-of-date.

> md: personality 4 is not loaded!
> md :do_md_run() returned -22

(2) raid5 module is not loaded.  Make sure that raid5 module is loaded.

I recommend that you install and use mdadm to fix this problem.

* Examine md superblock:
  mdadm --examine /dev/hda3
  to record Layout, Chunk Size, disks order (disk0, disk1, disk2)
* Recreate the raid5 array with 1 "missing" disk: 
  mdadm -C /dev/md0 -l 5 -c [ChunkSize] -p [Layout] -n 3 [disk0] [disk1]
missing
* mount (readonly) /dev/md0
* verify the filesystem
* if everything looks good:
  mdadm --add /dev/md0 [disk2]
* umount and mount /dev/md0

If you cannot boot to a console to do the above, you can boot from
Ubuntu or gentoo livecd.

--
Regards,
Mike T.



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

end of thread, other threads:[~2005-10-14 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14  1:07 All disks in the array suddenly non-fresh?? Boris Shingarov
2005-10-14 17:40 ` Mike Tran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).