fermulator
April 15th, 2011, 04:47 AM
This is really weird.
As per http://ubuntuforums.org/showthread.php?t=1719427, I had a working array. I failed out one of the drives for fun.
fermulator@fermmy-server:/mnt$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2000 : active raid6 sdk[3] sdl[0] sdj[1]
3907026944 blocks level 6, 64k chunk, algorithm 2 [4/3] [UU_U]
Yet ... fdisk claims these disks no longer have /dev/sdX1 partitions ... :-(
fermulator@fermmy-server:/mnt$ sudo fdisk -ulc /dev/sd[klj]
Disk /dev/sdj: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdj doesn't contain a valid partition table
Disk /dev/sdk: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdk doesn't contain a valid partition table
Disk /dev/sdl: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdl doesn't contain a valid partition table
Even the disk that I had failed out previously claims invalid partition:
fermulator@fermmy-server:/mnt$ sudo fdisk -ulc /dev/sdi
Disk /dev/sdi: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdi doesn't contain a valid partition table
Even still ... mdadm recognizes the superblock on these devices:
fermulator@fermmy-server:/mnt$ sudo mdadm -E /dev/sd[ijkl]
/dev/sdi:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 2000
Update Time : Sat Apr 2 15:22:10 2011
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : e43ac053 - correct
Events : 7
Chunk Size : 64K
Number Major Minor RaidDevice State
this 2 8 208 2 active sync
0 0 8 176 0 active sync /dev/sdl
1 1 8 192 1 active sync
2 2 8 208 2 active sync
3 3 8 224 3 active sync
/dev/sdj:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Update Time : Thu Apr 14 20:54:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : e44b8223 - correct
Events : 20912
Chunk Size : 64K
Number Major Minor RaidDevice State
this 1 8 144 1 active sync /dev/sdj
0 0 8 176 0 active sync /dev/sdl
1 1 8 144 1 active sync /dev/sdj
2 2 0 0 2 faulty removed
3 3 8 160 3 active sync /dev/sdk
/dev/sdk:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Update Time : Thu Apr 14 20:54:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : e44b8237 - correct
Events : 20912
Chunk Size : 64K
Number Major Minor RaidDevice State
this 3 8 160 3 active sync /dev/sdk
0 0 8 176 0 active sync /dev/sdl
1 1 8 144 1 active sync /dev/sdj
2 2 0 0 2 faulty removed
3 3 8 160 3 active sync /dev/sdk
/dev/sdl:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Update Time : Thu Apr 14 20:54:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : e44b8241 - correct
Events : 20912
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 176 0 active sync /dev/sdl
0 0 8 176 0 active sync /dev/sdl
1 1 8 144 1 active sync /dev/sdj
2 2 0 0 2 faulty removed
3 3 8 160 3 active sync /dev/sdk
Obviously, /dev/sdi used to be /dev/sdl. In order to re-add /dev/sdi to the array, I'll have to wipe the superblock and manually re-add.
QUESTION: Why do the disks claim invalid partition tables now? Before proceeding, I want to make sure there's nothing wrong ...
And ... this is scary. Is mdadm using the DEVICES rather than the partitions as members of the array since the reboot???
fermulator@fermmy-server:/mnt$ sudo mdadm --query --detail /dev/md2000
/dev/md2000:
Version : 00.90
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Persistence : Superblock is persistent
Update Time : Thu Apr 14 20:54:57 2011
State : clean, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Chunk Size : 64K
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Events : 0.20912
Number Major Minor RaidDevice State
0 8 176 0 active sync /dev/sdl
1 8 144 1 active sync /dev/sdj
2 0 0 2 removed
3 8 160 3 active sync /dev/sdk
As per http://ubuntuforums.org/showthread.php?t=1719427, I had a working array. I failed out one of the drives for fun.
fermulator@fermmy-server:/mnt$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2000 : active raid6 sdk[3] sdl[0] sdj[1]
3907026944 blocks level 6, 64k chunk, algorithm 2 [4/3] [UU_U]
Yet ... fdisk claims these disks no longer have /dev/sdX1 partitions ... :-(
fermulator@fermmy-server:/mnt$ sudo fdisk -ulc /dev/sd[klj]
Disk /dev/sdj: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdj doesn't contain a valid partition table
Disk /dev/sdk: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdk doesn't contain a valid partition table
Disk /dev/sdl: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdl doesn't contain a valid partition table
Even the disk that I had failed out previously claims invalid partition:
fermulator@fermmy-server:/mnt$ sudo fdisk -ulc /dev/sdi
Disk /dev/sdi: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdi doesn't contain a valid partition table
Even still ... mdadm recognizes the superblock on these devices:
fermulator@fermmy-server:/mnt$ sudo mdadm -E /dev/sd[ijkl]
/dev/sdi:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 2000
Update Time : Sat Apr 2 15:22:10 2011
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : e43ac053 - correct
Events : 7
Chunk Size : 64K
Number Major Minor RaidDevice State
this 2 8 208 2 active sync
0 0 8 176 0 active sync /dev/sdl
1 1 8 192 1 active sync
2 2 8 208 2 active sync
3 3 8 224 3 active sync
/dev/sdj:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Update Time : Thu Apr 14 20:54:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : e44b8223 - correct
Events : 20912
Chunk Size : 64K
Number Major Minor RaidDevice State
this 1 8 144 1 active sync /dev/sdj
0 0 8 176 0 active sync /dev/sdl
1 1 8 144 1 active sync /dev/sdj
2 2 0 0 2 faulty removed
3 3 8 160 3 active sync /dev/sdk
/dev/sdk:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Update Time : Thu Apr 14 20:54:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : e44b8237 - correct
Events : 20912
Chunk Size : 64K
Number Major Minor RaidDevice State
this 3 8 160 3 active sync /dev/sdk
0 0 8 176 0 active sync /dev/sdl
1 1 8 144 1 active sync /dev/sdj
2 2 0 0 2 faulty removed
3 3 8 160 3 active sync /dev/sdk
/dev/sdl:
Magic : a92b4efc
Version : 00.90.00
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Update Time : Thu Apr 14 20:54:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : e44b8241 - correct
Events : 20912
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 176 0 active sync /dev/sdl
0 0 8 176 0 active sync /dev/sdl
1 1 8 144 1 active sync /dev/sdj
2 2 0 0 2 faulty removed
3 3 8 160 3 active sync /dev/sdk
Obviously, /dev/sdi used to be /dev/sdl. In order to re-add /dev/sdi to the array, I'll have to wipe the superblock and manually re-add.
QUESTION: Why do the disks claim invalid partition tables now? Before proceeding, I want to make sure there's nothing wrong ...
And ... this is scary. Is mdadm using the DEVICES rather than the partitions as members of the array since the reboot???
fermulator@fermmy-server:/mnt$ sudo mdadm --query --detail /dev/md2000
/dev/md2000:
Version : 00.90
Creation Time : Sat Apr 2 12:04:52 2011
Raid Level : raid6
Array Size : 3907026944 (3726.03 GiB 4000.80 GB)
Used Dev Size : 1953513472 (1863.02 GiB 2000.40 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2000
Persistence : Superblock is persistent
Update Time : Thu Apr 14 20:54:57 2011
State : clean, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Chunk Size : 64K
UUID : 74fae2cf:63dcb956:01f5a1db:50a22640 (local to host fermmy-server)
Events : 0.20912
Number Major Minor RaidDevice State
0 8 176 0 active sync /dev/sdl
1 8 144 1 active sync /dev/sdj
2 0 0 2 removed
3 8 160 3 active sync /dev/sdk