Actually last night I decided to just ignore the warnings and entered `y´ to continue because I was curious what would happen.
# mdadm --create /dev/md0 --level=5 --raid-devices=5 /dev/sd[b-f]1
...
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.
It seemed to be working on creating the array:
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdf1[5] sde1[3] sdd1[2] sdc1[1] sdb1[0]
7813525504 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/4] [UUUU_]
[===>.................] recovery = 16.5% (322591160/1953381376) finish=302.1min speed=89936K/sec
bitmap: 0/15 pages [0KB], 65536KB chunk
unused devices: <none>
Again, there’s some unexpected and somewhat strange output–why does it say ‘sdf1[5]
’ and not ‘sdf1[4]
’? That doesn’t make sense, right?
Anyway, I decided to let it continue over night. This morning, the array building process finished:
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdf1[5] sde1[3] sdd1[2] sdc1[1] sdb1[0]
7813525504 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/5] [UUUUU]
bitmap: 0/15 pages [0KB], 65536KB chunk
unused devices: <none>
Finally, I could format the array:
# mkfs.btrfs -L wdarray /dev/md0
btrfs-progs v5.14
See http://btrfs.wiki.kernel.org for more information.
Label: wdarray
UUID: 73f46396-5fb3-41cb-b644-5153ef0310bc
Node size: 16384
Sector size: 4096
Filesystem size: 7.28TiB
Block group profiles:
Data: single 8.00MiB
Metadata: DUP 1.00GiB
System: DUP 8.00MiB
SSD detected: no
Zoned device: no
Incompat features: extref, skinny-metadata
Runtime features:
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 7.28TiB /dev/md0
‘fdisk -l /dev/sdn
’ output:
# fdisk -l /dev/sdb
Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EZRX-00D
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: DD199060-8650-4076-B9D0-4CA99F14CF04
Device Start End Sectors Size Type
/dev/sdb1 2048 3907028991 3907026944 1.8T Linux RAID
# fdisk -l /dev/sdc
Disk /dev/sdc: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EADS-00W
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0ED830E6-1527-47B5-AAAA-801062F013E8
Device Start End Sectors Size Type
/dev/sdc1 2048 3907028991 3907026944 1.8T Linux RAID
# fdisk -l /dev/sdd
Disk /dev/sdd: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EADS-00W
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7A8D6A4A-4D63-4881-96E9-C35295FD51A2
Device Start End Sectors Size Type
/dev/sdd1 2048 3907028991 3907026944 1.8T Linux RAID
# fdisk -l /dev/sde
Disk /dev/sde: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EADS-00R
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 72AE6882-8DFD-46CE-BB76-2A6DE8D98B28
Device Start End Sectors Size Type
/dev/sde1 2048 3907028991 3907026944 1.8T Linux RAID
# fdisk -l /dev/sdf
Disk /dev/sdf: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EADS-00R
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F1630B47-0280-4C04-B5A3-62004AC7F69C
Device Start End Sectors Size Type
/dev/sdf1 2048 3907028991 3907026944 1.8T Linux RAID
So far, so good. However, the ‘fdisk -l /dev/sdn1
’ output now seems somewhat strange to me, not what I would have expected:
# fdisk -l /dev/sdb1
Disk /dev/sdb1: 1.82 TiB, 2000397795328 bytes, 3907026944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x69205244
Device Boot Start End Sectors Size Id Type
/dev/sdb1p1 218129509 1920119918 1701990410 811.6G 72 unknown
/dev/sdb1p2 729050177 1273024900 543974724 259.4G 74 unknown
/dev/sdb1p3 168653938 168653938 0 0B 65 Novell Netware 386
/dev/sdb1p4 2692939776 2692991410 51635 25.2M 0 Empty
Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition table entries are not in disk order.
# fdisk -l /dev/sdc1
Disk /dev/sdc1: 1.82 TiB, 2000397795328 bytes, 3907026944 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
# fdisk -l /dev/sdd1
Disk /dev/sdd1: 1.82 TiB, 2000397795328 bytes, 3907026944 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
# fdisk -l /dev/sde1
Disk /dev/sde1: 1.82 TiB, 2000397795328 bytes, 3907026944 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
Disklabel type: dos
Disk identifier: 0x4e0a0d00
Device Boot Start End Sectors Size Id Type
/dev/sde1p1 1920221984 3736432267 1816210284 866G 74 unknown
/dev/sde1p2 1936028192 3889681299 1953653108 931.6G 6c unknown
/dev/sde1p3 0 0 0 0B 0 Empty
/dev/sde1p4 27459978 27460418 441 220.5K 0 Empty
Partition table entries are not in disk order.
# fdisk -l /dev/sdf1
Disk /dev/sdf1: 1.82 TiB, 2000397795328 bytes, 3907026944 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
Disklabel type: dos
Disk identifier: 0x4e0a0d00
Device Boot Start End Sectors Size Id Type
/dev/sdf1p1 1920221984 3736432267 1816210284 866G 74 unknown
/dev/sdf1p2 1936028192 3889681299 1953653108 931.6G 6c unknown
/dev/sdf1p3 0 0 0 0B 0 Empty
/dev/sdf1p4 27459978 27460418 441 220.5K 0 Empty
Partition table entries are not in disk order.
This is confusing, right?
The newer WD20EZRX has a different physical sector size (4096 bytes) than the older WD20EADS (512 bytes)–could that be causing the issue?