我有一个全新的(相同型号)WD Caviar Green驱动器来replace我的5x2TB Raid 5arrays中的故障驱动器。 但是,新磁盘似乎稍有不同。 根据互联网,西部数据改变了他们的块大小?
这是原始磁盘之一:
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 81 heads, 63 sectors/track, 765633 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: 0xfdeee051 Device Boot Start End Blocks Id System /dev/sda1 63 3907025198 1953512568 83 Linux
而新的:
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes 81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 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 Disk identifier: 0x11e82af4 Device Boot Start End Blocks Id System /dev/sdd1 2048 3907029167 1953513560 83 Linux
请注意不同的I / O大小。 当我尝试将分区表转移到…
[root]# sfdisk -d /dev/sda | sfdisk /dev/sdd Checking that no-one is using this disk right now ... OK Disk /dev/sdd: 243201 cylinders, 255 heads, 63 sectors/track Old situation: Warning: The partition table looks like it was made for C/H/S=*/81/63 (instead of 243201/255/63). For this listing I'll assume that geometry. Units = cylinders of 2612736 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sdd1 0+ 765633- 765634- 1953513560 83 Linux end: (c,h,s) expected (1023,80,63) found (513,80,63) /dev/sdd2 0 - 0 0 0 Empty /dev/sdd3 0 - 0 0 0 Empty /dev/sdd4 0 - 0 0 0 Empty New situation: Units = sectors of 512 bytes, counting from 0 Device Boot Start End #sectors Id System /dev/sdd1 63 3907025198 3907025136 83 Linux /dev/sdd2 0 - 0 0 Empty /dev/sdd3 0 - 0 0 Empty /dev/sdd4 0 - 0 0 Empty Warning: partition 1 does not end at a cylinder boundary sfdisk: I don't like these partitions - nothing changed. (If you really want this, use the --force option.)
呃,我不想强迫它。 当我尝试手动…
[root]# fdisk /dev/sdd The device presents a logical sector size that is smaller than the physical sector size. Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be impacted. Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4, default 1): Using default value 1 First sector (2048-3907029167, default 2048):
它不会让我像在其他磁盘一样在63启动分区。 帮帮我! 我应该强制吗?
三个选项:
咬下子弹,重制你的MD。
强制分区表受到性能影响
使用sg_format将设备的大小调整得稍微大一点,这样就可以有足够的空间放置alignment的分区(如果你是幸运的)
我怀疑你会做(2),直到你有时间做(1)。