Re: raid1: All my data completely vanished into the void
From: Ross Vandegrift <hidden>
Date: 2005-12-28 04:50:21
On Tue, Dec 27, 2005 at 11:40:48PM -0500, Mitchell Laks wrote:
I then created 3 raid1 arrays mdadm -Cv -n2 -l1 /dev/md0 /dev/sda1 /dev/sdb1 mdadm -Cv -n2 -l1 /dev/md1 /dev/sdc1 /dev/sdd1 mdadm -Cv -n2 -l1 /dev/md2 /dev/sde1 /dev/sdf1
Are you 100% sure that you didn't do: mdadm -Cv -n2 -l1 /dev/md0 /dev/sda /dev/sdb, etc, etc? (ie, note lack of subdevice for partition!!!) That's the only thing I can image that would cause this:
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
It sounds like you created md devices out of whole disks instead of partitions and overwrote the partition information. I don't *think* this should be a problem, but I don't 100% know... Try this to see if it finds your array: mdadm --assemble /dev/md0 /dev/sda /dev/sdb
however I did not!! (?evil) umount the different devices /dev/md0 /dev/md1 /dev/md2 before doing that.
When you shutdown cleanly, your system's scripts almost certainly did that for you! ::-) -- Ross Vandegrift ross@lug.udel.edu "The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell." --St. Augustine, De Genesi ad Litteram, Book II, xviii, 37