我正在尝试更换我继承的 JBOD 上的旧磁盘。我购买了完全相同的型号,但似乎容量不同(由不同的磁盘扇区数导致),导致我无法重新同步磁盘。
除了生产日期之外,我没发现任何可能导致此问题的区别。什么原因导致此问题?
新磁盘:
$ smartctl -a /dev/sdfk
User Capacity: 7,865,536,647,168 bytes [7.86 TB]
Vendor: HGST
Product: HUH728080AL5204
Revision: NE00
Manufactured in week 13 of year 2016
$ fdisk -l /dev/sdfk
Disk /dev/sdfk: 7865.5 GB, 7865536647168 bytes, 15362376264 sectors
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
JBOD 中的任何其他磁盘:
$ smartctl -a /dev/sdfl
User Capacity: 8,001,563,222,016 bytes [8.00 TB]
Vendor: HGST
Product: HUH728080AL5204
Revision: C7J0
Manufactured in week 39 of year 2015
$ fdisk -l /dev/sdfl
Disk /dev/sdfl: 8001.6 GB, 8001563222016 bytes, 15628053168 sectors
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
编辑
根据要求,hdparm
两个磁盘似乎相同:
$ hdparm -N /dev/sdfk
/dev/sdfk:
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 34 00 0a 00
00 00 00 00 00 00 00 00 00 01 0a 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 34 00 0a 00
00 00 00 00 00 00 00 00 00 01 0a 00 00 00 00 00 00 00 00 00 00
$ hdparm -N /dev/sdfl
/dev/sdfl:
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 34 00 0a 00
00 00 00 00 00 00 00 00 00 01 0a 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 34 00 0a 00
00 00 00 00 00 00 00 00 00 01 0a 00 00 00 00 00 00 00 00 00 00
答案1
我自己最近也遇到过这种情况,我可以肯定地说这是由于扇区大小造成的。
我有一个与您的类似的型号,HUH721008AL5204,这是重新格式化之前的 fdisk 报告。
Disk /dev/sde: 7.15 TiB, 7865536647168 bytes, 15362376264 sectors
Disk model: HUH721008AL5204
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 /dev/sde: 7.28 TiB, 8001563222016 bytes, 1953506646 sectors
Disk model: HUH721008AL5204
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
为了将扇区从 512 字节切换到 4096 字节,我使用了此命令。它通常仅适用于 SAS 驱动器,而不适用于 SATA。一些 SATA 驱动器确实支持使用 hdparm 或供应商提供的工具更改扇区大小,但我一直运气不佳。
sudo sg_format --size=4096 --format --fmtpinfo=0 /dev/sde
答案2
这两个磁盘具有相同的制造商(HGST)和型号...但固件版本不同。
请看此处寻找类似的例子:
Ultrastar C10K1800 有多种型号,存储容量和块大小各不相同。表 1 列举了型号和特性,并包括硬件和固件版本。