Thanks for the help. I've created the overlays for all the disks sd[a-f] and here are the hex dumps. I'm going to try re-creating the array in all of the six combinations and see what happens. After this I plan to back everything up to new drives and recreate the array properly. Here are the hex dumps from each drive: a: 00001000 fc 4e 2b a9 01 00 00 00 00 00 00 00 00 00 00 00 |.N+.............| 00001010 b3 77 d9 75 86 be b8 6c 9d a9 f2 1d f7 3b 24 51 |.w.u...l.....;$Q| 00001020 4e 41 53 3a 30 00 00 00 00 00 00 00 00 00 00 00 |NAS:0...........| 00001030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00001040 11 bf a3 56 00 00 00 00 06 00 00 00 02 00 00 00 |...V............| 00001050 00 a0 4c 5d 01 00 00 00 00 04 00 00 06 00 00 00 |..L]............| 00001060 00 00 00 00 06 00 00 00 00 80 32 75 05 00 00 00 |..........2u....| 00001070 00 00 00 00 02 00 00 00 00 04 00 00 00 00 00 00 |................| 00001080 00 00 04 00 00 00 00 00 b0 a3 4c 5d 01 00 00 00 |..........L]....| 00001090 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000010a0 02 00 00 00 00 00 00 00 01 37 40 d6 5c c4 45 e7 |.........7@.\.E.| 000010b0 62 5f 32 57 86 08 da ec 00 00 00 00 00 00 00 00 |b_2W............| 000010c0 69 d4 96 57 00 00 00 00 8c ff 2c 00 00 00 00 00 |i..W......,.....| 000010d0 ff ff ff ff ff ff ff ff bd 6e ba 14 80 00 00 00 |.........n......| 000010e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001100 00 00 fe ff 02 00 fe ff 03 00 04 00 01 00 05 00 |................| 00001110 fe ff fe ff fe ff fe ff fe ff fe ff fe ff fe ff |................| * 00001200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 b: 00001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 c: 00001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 d: 00001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 e: 00001000 fc 4e 2b a9 01 00 00 00 00 00 00 00 00 00 00 00 |.N+.............| 00001010 b3 77 d9 75 86 be b8 6c 9d a9 f2 1d f7 3b 24 51 |.w.u...l.....;$Q| 00001020 4e 41 53 3a 30 00 00 00 00 00 00 00 00 00 00 00 |NAS:0...........| 00001030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00001040 11 bf a3 56 00 00 00 00 06 00 00 00 02 00 00 00 |...V............| 00001050 00 a0 4c 5d 01 00 00 00 00 04 00 00 06 00 00 00 |..L]............| 00001060 00 00 00 00 06 00 00 00 00 80 32 75 05 00 00 00 |..........2u....| 00001070 00 00 00 00 02 00 00 00 00 04 00 00 00 00 00 00 |................| 00001080 00 00 04 00 00 00 00 00 b0 a3 4c 5d 01 00 00 00 |..........L]....| 00001090 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000010a0 00 00 00 00 00 00 00 00 19 09 6a b0 3e 3a ac 62 |..........j.>:.b| 000010b0 7a fd fc 97 86 ee b5 f6 00 00 00 00 00 00 00 00 |z...............| 000010c0 69 d4 96 57 00 00 00 00 8c ff 2c 00 00 00 00 00 |i..W......,.....| 000010d0 ff ff ff ff ff ff ff ff cc 3a f1 b4 80 00 00 00 |.........:......| 000010e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001100 00 00 fe ff 02 00 fe ff 03 00 04 00 01 00 05 00 |................| 00001110 fe ff fe ff fe ff fe ff fe ff fe ff fe ff fe ff |................| * 00001200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 f: 00001000 fc 4e 2b a9 01 00 00 00 00 00 00 00 00 00 00 00 |.N+.............| 00001010 b3 77 d9 75 86 be b8 6c 9d a9 f2 1d f7 3b 24 51 |.w.u...l.....;$Q| 00001020 4e 41 53 3a 30 00 00 00 00 00 00 00 00 00 00 00 |NAS:0...........| 00001030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00001040 11 bf a3 56 00 00 00 00 06 00 00 00 02 00 00 00 |...V............| 00001050 00 a0 4c 5d 01 00 00 00 00 04 00 00 06 00 00 00 |..L]............| 00001060 00 00 00 00 06 00 00 00 00 80 32 75 05 00 00 00 |..........2u....| 00001070 00 00 00 00 02 00 00 00 00 04 00 00 00 00 00 00 |................| 00001080 00 00 04 00 00 00 00 00 b0 a3 4c 5d 01 00 00 00 |..........L]....| 00001090 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000010a0 06 00 00 00 00 00 00 00 dc 42 4c 5a b4 84 5f 55 |.........BLZ.._U| 000010b0 37 3a 04 e0 78 d9 67 23 00 00 00 00 00 00 00 00 |7:..x.g#........| 000010c0 69 d4 96 57 00 00 00 00 8c ff 2c 00 00 00 00 00 |i..W......,.....| 000010d0 ff ff ff ff ff ff ff ff b9 e6 3f c6 80 00 00 00 |..........?.....| 000010e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001100 00 00 fe ff 02 00 fe ff 03 00 04 00 01 00 05 00 |................| 00001110 fe ff fe ff fe ff fe ff fe ff fe ff fe ff fe ff |................| * 00001200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 Thanks, Alex On 27 July 2016 at 12:57, Andreas Klauer <Andreas.Klauer@xxxxxxxxxxxxxx> wrote: > On Wed, Jul 27, 2016 at 11:35:34AM +0100, Alex Owen wrote: >> The array should be RAID6 on /dev/sd{a-f}. > > Full disk raid sucks. Zero advantages, lots of additional risk. > There are too many programs out there that expect every disk to have > a partition table, and will use it unasked if it looks unpartitioned. > > You seem to have lost your md metadata to some partitioner/installer, > you're also the third person with this problem in a row. Congrats. ;) > >> fdisk -l : > > Your fdisk doesn't support GPT, don't use it. > >> parted >> Disk /dev/sd[bcd]: 3001GB >> Sector size (logical/physical): 512B/4096B >> Partition Table: gpt >> >> Number Start End Size File system Name Flags >> 1 17.4kB 134MB 134MB Microsoft reserved >> partition msftres >> 2 135MB 3001GB 3000GB Basic data partition >> msftdata > > Well, something put GPT partition table on those. GPT overwrites start > and end of the disk. You're using 1.2 metadata which is located 4K from > the start, can you show some hexdump for those disks? > > hexdump -C -s 4096 -n 4096 /dev/sdb > >> And the output of mdadm --examine /dev/sd[a-f] >> >> ---------- >> >> /dev/sda: >> Magic : a92b4efc >> Version : 1.2 >> Feature Map : 0x0 >> Array UUID : b377d975:86beb86c:9da9f21d:f73b2451 >> Name : NAS:0 (local to host NAS) >> Creation Time : Sat Jan 23 17:57:37 2016 >> Raid Level : raid6 >> Raid Devices : 6 >> >> Avail Dev Size : 5860271024 (2794.40 GiB 3000.46 GB) >> Array Size : 11720540160 (11177.58 GiB 12001.83 GB) >> Used Dev Size : 5860270080 (2794.39 GiB 3000.46 GB) >> Data Offset : 262144 sectors >> Super Offset : 8 sectors >> State : clean >> Device UUID : 013740d6:5cc445e7:625f3257:8608daec >> >> Update Time : Tue Jul 26 04:09:29 2016 >> Checksum : 14ba6ebd - correct >> Events : 2949004 >> >> Layout : left-symmetric >> Chunk Size : 512K >> >> Device Role : Active device 2 >> Array State : AAAAAA ('A' == active, '.' == missing) > >> /dev/sdb: >> MBR Magic : aa55 >> Partition[0] : 4294967295 sectors at 1 (type ee) >> /dev/sdc: >> MBR Magic : aa55 >> Partition[0] : 4294967295 sectors at 1 (type ee) >> /dev/sdd: >> MBR Magic : aa55 >> Partition[0] : 4294967295 sectors at 1 (type ee) > > Basically what we know is... your disk order for three disks > > (/dev/sde = role 0, /dev/sdf = role 1, /dev/sda= role 2) > > and what we don't know is the disk order of /dev/sd[bcd]. > > If the metadata is lost completely, only thing you can do is re-create > the RAID with all possible orders efa{bcd,bdc,cbd,cdb,dbc,dcb}. > > Re-creating is dangerous so you should use an overlay: https://raid.wiki.kernel.org/index.php/Recovering_a_failed_software_RAID#Making_the_harddisks_read-only_using_an_overlay_file > > When re-creating you have to specify all variables (level, layout, chunksize, > data offset, order, ...) since the defaults picked by mdadm might differ > depending on your mdadm version. > > Example command: (untested) > > mdadm --create /dev/md42 --assume-clean \ > --level=6 --chunk=512 --data-offset=128M --layout=ls \ > /dev/overlay/sd{e,f,a,b,c,d} > > Then you check if it can be mounted, and once mounted if big files > (larger than chunksize * number of disks) are intact or no. If you > switch the wrong two disks it may mount but data is garbage anyway. > > Regards > Andreas Klauer -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html