linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID5 superblock and filesystem recovery after re-creation
@ 2012-07-08 21:47 Alexander Schleifer
  2012-07-08 22:13 ` NeilBrown
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Schleifer @ 2012-07-08 21:47 UTC (permalink / raw)
  To: linux-raid

Hi,

after a new installation of Ubuntu, my RAID5 device was set to
"inactive". All devices were set to spare device and the level was
unknown. So I tried to re-create the array by the following command.

mdadm --create /dev/md0 --assume-clean --level=5 --raid-disk=6
--chunk=512 --metadata=1.2 /dev/sde /dev/sdd /dev/sda /dev/sdc
/dev/sdg /dev/sdh

I have a backup of the mdadm -Evvvvs output, so I could recover the
chunk size, metadata and offset (2048) from this information.

The partially output of mdadm --create... shows this output:

...
mdadm: /dev/sde appears to be part of a raid array:
    level=raid5 devices=6 ctime=Sun Jul  8 23:02:51 2012
mdadm: partition table exists on /dev/sde but will be lost or
       meaningless after creating array
...

The array is recreated, but no valid filesystem is found on /dev/md0
(dumpe2fs: Filesystem revision too high while trying to open /dev/md0.
Couldn't find valid filesystem superblock.). Also fdisk /dev/sde shows
no partition.
My next step would be creating Linux RAID type partitions on the 6
devices with fdisk and call mdadm --create with /dev/sde1 /dev/sdd1
and so on.
Is this step a possible solution for recovering the filesystem?

Thanks for any help,
-Alex

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

end of thread, other threads:[~2012-07-09  7:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-08 21:47 RAID5 superblock and filesystem recovery after re-creation Alexander Schleifer
2012-07-08 22:13 ` NeilBrown
2012-07-08 22:45   ` Alexander Schleifer
2012-07-09  0:02     ` NeilBrown
2012-07-09  6:50       ` Alexander Schleifer
2012-07-09  7:08         ` NeilBrown

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).