Thanks yes your right and thanks for taking the time to reply I have been at this about 28 hours straight trying to bring myself up to speed with raid and am finally seeing a little daylight that was a pretty awful command and it not only wrote to half the drive it was the wrong raid mdX.
fdisk -l gives
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00035512
Device Boot Start End Blocks Id System
/dev/sda1 * 63 1044224 522081 fd Linux raid autodetect
/dev/sda2 1044225 1951415549 975185662+ fd Linux raid autodetect
/dev/sda3 1951415550 1953520064 1052257+ 82 Linux swap / Solaris
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00077abd
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 1044224 522081 fd Linux raid autodetect
/dev/sdb2 1044225 1951415549 975185662+ fd Linux raid autodetect
/dev/sdb3 1951415550 1953520064 1052257+ 82 Linux swap / Solaris
Disk /dev/md1: 998.6 GB, 998589988864 bytes
2 heads, 4 sectors/track, 243796384 cylinders, total 1950371072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md0: 534 MB, 534511616 bytes
2 heads, 4 sectors/track, 130496 cylinders, total 1043968 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
and I cant get the swap partitions to form a raid mdx`
mdadm --assemble --run /dev/md2 /dev/sdb3
mdadm: no recogniseable superblock on /dev/sdb3
mdadm: /dev/sdb3 has no superblock - assembly aborted
Maybe I am using the wrong command
So I think I am knee deep in it and I need to nut my way out of the problem without blowing the data.
So here is my plan
1. I fail all of sda patitions
mdadm --manage /dev/md0 --fail /dev/sda1
mdadm --manage /dev/md1 --fail /dev/sda2
then I restart the drive and see if it boots.
if it does I can add back sdb patitions with
mdadm -a /dev/md0 /dev/sdb1
mdadm -a /dev/md1 /dev/sdb2
If that does not work I can try sda
2 questions is this a reasonable strategy and should I remove the sdb drive before rebooting.
|