Skip to contentSkip to conversation

Help, big error, dd first GB of a raid:-/

DISCUSSION Lars Schimmer 2 participants 4 messages Jan 30, 2008 MD RAID

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Due to a very bad idea/error, I zeroed my first GB of /dev/md0. Now fdisk doesn't find any disk on /dev/md0.
Any idea on how to recover?

MfG,
Lars Schimmer
- --
- ------------------------------------------------------------- TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405 E-Mail: [email protected]
Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoFTUmWhuE0qbFyMRAvqEAJ4iSwo/mkAZF0YGviMlIZ6PEZtg1ACfRxom d2MzENir1SWC0YTjIpxZPbU=
=APxR
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 7 lines · Lars Schimmer

Hi!

Due to a very bad idea/error, I zeroed my first GB of /dev/md0. Now fdisk doesn't find any disk on /dev/md0.
Any idea on how to recover?

It largely depends on what is /dev/md0, and what was on /dev/md0. Provide very detailed info:

* Was the MD device partitioned?
* What filesystem(s) were residing on the array, what sizes, what order
* What was each filesystem used for (mounted as what)

Someone might be able to help at this point, however if you do not have a backup - you are in very very deep trouble already.

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Peter Rabbitson
Quoted 7 lines · Lars Schimmer

Hi!

Due to a very bad idea/error, I zeroed my first GB of /dev/md0. Now fdisk doesn't find any disk on /dev/md0.
Any idea on how to recover?

Quoted 6 lines

It largely depends on what is /dev/md0, and what was on /dev/md0. Provide very detailed info:

* Was the MD device partitioned?
* What filesystem(s) were residing on the array, what sizes, what order
* What was each filesystem used for (mounted as what)

One large parttiton on /dev/md0 with ext3.

Quoted 2 lines

Someone might be able to help at this point, however if you do not have a backup - you are in very very deep trouble already.

I activate the backup right now - was OpenAFS with some RW volumes - fairly easy to backup, but...
If it's hard to recover raid data, I recreate the raid and forget the old data on it.

MfG,
Lars Schimmer
- --
- ------------------------------------------------------------- TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405 E-Mail: [email protected]
Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoG9AmWhuE0qbFyMRAnjOAJ4rMZR8eCjYkMinlQ8vxZTIiLuxWwCfe3zj VihVxdjRnE8oc9BRq6hcaVQ=
=uzyt
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 4 lines · Lars Schimmer

I activate the backup right now - was OpenAFS with some RW volumes - fairly easy to backup, but...
If it's hard to recover raid data, I recreate the raid and forget the old data on it.

It is not that hard to recover the raid itself, however the ext3 on top is most likely FUBAR (especially after 1GB was overwritten). Since like it seems the data is not that important to you, just roll back to a backup and move on.