Odd --examine output
These two disks are (or, at least, were) part of my failed level 6 array. What does this output indicate?
# mdadm --examine /dev/sdg /dev/sdg: MBR Magic : aa55 Partition[0] : 3907024002 sectors at 63 (type fd) # mdadm --examine /dev/sdh /dev/sdh: MBR Magic : aa55 Partition[0] : 3907024002 sectors at 63 (type fd)
Why doesn't it instead give the same sort of metadata that the other disks show? It's as if there is no raid superblock on these two disks, but how is this possible if the disks have been part of a working array?
---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
[email protected]
http://www.cecs.wright.edu/~mvanhorn/
Quoted 4 lines
Why doesn't it instead give the same sort of metadata that the other disks show? It's as if there is no raid superblock on these two disks, but how is this possible if the disks have been part of a working array?
Update: by chance, I discovered that if I
mdadm -e /dev/sdg1
then I get the output of the superblock. That is, the superblock is found on the partition (apparently) but not on the disk device. This also works for disk sdh, for which I couldn't find a superblock, either. However, for the rest of the disks from the array (sd[cdefi]), there is no such device as "sdc1", for example.
I have also discovered that for the drives where mdadm -e /dev/sdc (just the disk) works, the version of the metadata is 0.90.00, where as those other two where the superblock is on the partition (i.e. sdg1), the version is 1.2. This makes more sense, since I create the array originally (back in December) with the following command:
mdadm --create --verbose /dev/md0 --metadata=1.2 --level=6
--raid-devices=7 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1 --spare-devices=1 /dev/sdj1
So, if I created the array using version 1.2 of the metadata and the devices specified are sd[cdefghij]1, then why am I not able to see that metadata now?
I am really confused.
---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
[email protected]
http://www.cecs.wright.edu/~mvanhorn/
Quoted 5 lines · Mike
So, if I created the array using version 1.2 of the metadata and the devices specified are sd[cdefghij]1, then why am I not able to see that metadata now?
I am really confused.
Version 0.90 metadata, which lives at the end of the disk or partition, doesn't include a length or other piece of partition geometry that clearly identifies the beginning of the array. So v0.90 metadata that belongs to the last partition of a disk can be mistaken for metadata belonging to that whole disk, and vice versa.
v1.x metadata has more device info, so this can't happen to v1.0 metadata, even though it is at the end of the device as well. v1.1 and v1.2 metadata are at the beginning, therefore won't be found with the wrong starting sector.
I suspect what happened to your system:
1) Old array running w/ v0.90 metadata on /dev/sd[]1 is taken out of service.
2) New array w/ v1.2 metdata is created, but for some reason, the v0.90 metadata doesn't get destroyed.
3) Partition tables on certain disks are wiped, hiding the v1.2 metadata.
I'm not sure if any particular version of mdadm would do #2, but it is plausible.
#3 is quite concerning, as it suggest the presence of a rogue program with admin rights, or a rogue administrator, or a *really* questionable device driver.
Anyways, if you copy the partition table from a properly working drive to one of the oddballs, it might expose the original partition data, including the v1.2 metadata. (Although, you seem to have partitions starting at sector 63--a real performance killer for modern drives.)
There's other data I suggested you collect in my response to your original inquiry. There'd be much less guesswork in my replies if you supplied it.
Phil