* Did --zero-superblock by mistake ... How can I get back data ?
@ 2006-03-10 18:03 Raphael Delaporte
2006-03-10 19:38 ` Mike Tran
0 siblings, 1 reply; 3+ messages in thread
From: Raphael Delaporte @ 2006-03-10 18:03 UTC (permalink / raw)
To: linux-raid
Hi,
On a RAID 5 array which is composed by 5 hdd, I did mdadm
--zero-superblocks on each hdd because I thought it was required to use
the array on a new system....
But now, I cannot mdadm --assemble the array. It says :
mdadm: no RAID superblock on /dev/sda
mdadm: /dev/sda has no superblock - assembly aborted
Is it possible to assemble this array because I don't want to lose my
data... Someone told me that I can do a :
mdadm -Cv /dev/md0 -l5 -n5 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/hdc
But if do that, all the data on the raid will be lost or not ?
Is there an other way to get back these data ?
Thank you very much for your help.
--
Raph.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Did --zero-superblock by mistake ... How can I get back data ?
2006-03-10 18:03 Did --zero-superblock by mistake ... How can I get back data ? Raphael Delaporte
@ 2006-03-10 19:38 ` Mike Tran
2006-03-10 20:23 ` Raphael Delaporte
0 siblings, 1 reply; 3+ messages in thread
From: Mike Tran @ 2006-03-10 19:38 UTC (permalink / raw)
To: Raphael Delaporte; +Cc: linux-raid
Raphael Delaporte wrote:
> Hi,
>
> On a RAID 5 array which is composed by 5 hdd, I did mdadm
> --zero-superblocks on each hdd because I thought it was required to
> use the array on a new system....
>
> But now, I cannot mdadm --assemble the array. It says :
>
> mdadm: no RAID superblock on /dev/sda
> mdadm: /dev/sda has no superblock - assembly aborted
>
> Is it possible to assemble this array because I don't want to lose my
> data... Someone told me that I can do a :
>
> mdadm -Cv /dev/md0 -l5 -n5 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/hdc
>
> But if do that, all the data on the raid will be lost or not ?
>
> Is there an other way to get back these data ?
>
> Thank you very much for your help.
>
I would try to recreate the raid5 array with *1 missing disk,* then try
to mount the array (read only) and verify the data.
For example,
mdadm -C /dev/md0 -l 5 -c 32 -p ls -n 5 /dev/sda /dev/sdb /dev/sdc
/dev/sdd missing
Notes:
If you used /etc/mdadm.conf, specify the disk order on the ARRAY line
with 1 missing disk to be safe.
I specified the mdadm default chunk size (32K) and default parity
algorithm (left-symmetric). You may have to use other values.
You should change the order of the disks if your data is invalid.
--
Regards,
Mike T.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Did --zero-superblock by mistake ... How can I get back data ?
2006-03-10 19:38 ` Mike Tran
@ 2006-03-10 20:23 ` Raphael Delaporte
0 siblings, 0 replies; 3+ messages in thread
From: Raphael Delaporte @ 2006-03-10 20:23 UTC (permalink / raw)
To: Mike Tran; +Cc: linux-raid
Mike Tran a écrit :
> Raphael Delaporte wrote:
>
>> Hi,
>>
>> On a RAID 5 array which is composed by 5 hdd, I did mdadm
>> --zero-superblocks on each hdd because I thought it was required to
>> use the array on a new system....
>>
>> But now, I cannot mdadm --assemble the array. It says :
>>
>> mdadm: no RAID superblock on /dev/sda
>> mdadm: /dev/sda has no superblock - assembly aborted
>>
>> Is it possible to assemble this array because I don't want to lose my
>> data... Someone told me that I can do a :
>>
>> mdadm -Cv /dev/md0 -l5 -n5 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/hdc
>>
>> But if do that, all the data on the raid will be lost or not ?
>>
>> Is there an other way to get back these data ?
>>
>> Thank you very much for your help.
>>
> I would try to recreate the raid5 array with *1 missing disk,* then
> try to mount the array (read only) and verify the data.
>
> For example,
> mdadm -C /dev/md0 -l 5 -c 32 -p ls -n 5 /dev/sda /dev/sdb /dev/sdc
> /dev/sdd missing
>
> Notes:
> If you used /etc/mdadm.conf, specify the disk order on the ARRAY line
> with 1 missing disk to be safe.
> I specified the mdadm default chunk size (32K) and default parity
> algorithm (left-symmetric). You may have to use other values.
> You should change the order of the disks if your data is invalid.
>
> --
> Regards,
> Mike T.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
Yeah, thank you, it worked perfectly !
Thank you for your help !
--
Raph
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-10 20:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-10 18:03 Did --zero-superblock by mistake ... How can I get back data ? Raphael Delaporte
2006-03-10 19:38 ` Mike Tran
2006-03-10 20:23 ` Raphael Delaporte
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).