尝试修复ZFS池中的镜像:
louis@watson:~$ sudo zpool status
pool: watson
state: ONLINE
scan: resilvered 1.55T in 7h22m with 0 errors on Fri Oct 6 03:19:16 2017
config:
NAME STATE READ WRITE CKSUM
watson ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
wwn-0x50014ee0ad3655a3 ONLINE 0 0 0
ata-Hitachi_HUA723020ALA640_MK0271YGJA5BSA ONLINE 0 0 0
wwn-0x50014ee058480994 ONLINE 0 0 0
当我尝试添加磁盘时,我收到消息“ 设备具有不同的扇区对齐 ”:
louis@watson:~$ sudo zpool attach -f watson wwn-0x50014ee058480994 scsi-SATA_ST2000DM001-1CH_Z1F2ZSLP
cannot attach scsi-SATA_ST2000DM001-1CH_Z1F2ZSLP to wwn-0x50014ee058480994:
devices have different sector alignment
以下是新驱动器和目标驱动器的扇区报告:
louis@watson:~$ sudo hdparm -I /dev/disk/by-id/scsi-SATA_ST2000DM001-1CH_Z1F2ZSLP | fgrep Sector
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
louis@watson:~$ sudo hdparm -I /dev/disk/by-id/wwn-0x50014ee058480994 | fgrep Sector
Logical/Physical Sector size: 512 bytes
* SCT Long Sector Access (AC1)
如何在一个池中混合使用这些驱动器?