zfs zpool 降级驱动器丢失

zfs zpool 降级驱动器丢失

我有一个名为存储的降级 zpool,其中包含 2 个镜像中的 4 个 6TB 驱动器。第二个镜像上的一个驱动器不可用。所有电缆似乎都已物理插入。我的设备 ID 是否已更改?

zpool 状态 -v 存储

NAME                                          STATE     READ WRITE CKSUM
storage                                       DEGRADED     0     0     0
  mirror-0                                    ONLINE       0     0     0
    sdc                                       ONLINE       0     0     0
    sdd                                       ONLINE       0     0     0
  mirror-1                                    DEGRADED     0     0     0
    ata-WDC_WD60EFRX-68MYMN1_WD-WX91D65355TK  ONLINE       0     0     0
    15417011366624190108                      UNAVAIL      0     0     0  was /dev/disk/by-id/ata-WDC_WD60EFRX-68MYMN1_WD-WX91D6535J36-part1

ls -l /dev/disk/by-id

total 0
lrwxrwxrwx 1 root root  9 Feb 22 10:56 ata-Samsung_SSD_840_EVO_250GB_S1DBNEADA00610E -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-Samsung_SSD_840_EVO_250GB_S1DBNEADA00610E-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-Samsung_SSD_840_EVO_250GB_S1DBNEADA00610E-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-Samsung_SSD_840_EVO_250GB_S1DBNEADA00610E-part3 -> ../../sdb3
lrwxrwxrwx 1 root root  9 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX11DA40H4ZK -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX11DA40H4ZK-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX11DA40H4ZK-part9 -> ../../sdc9
lrwxrwxrwx 1 root root  9 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX51D6410414 -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX51D6410414-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX51D6410414-part9 -> ../../sdd9
lrwxrwxrwx 1 root root  9 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX91D65355TK -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX91D65355TK-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 ata-WDC_WD60EFRX-68MYMN1_WD-WX91D65355TK-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Feb 22 10:56 wwn-0x50014ee20b713dd3 -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50014ee20b713dd3-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50014ee20b713dd3-part9 -> ../../sdd9
lrwxrwxrwx 1 root root  9 Feb 22 10:56 wwn-0x50014ee20c912489 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50014ee20c912489-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50014ee20c912489-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Feb 22 10:56 wwn-0x50014ee260a4bd75 -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50014ee260a4bd75-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50014ee260a4bd75-part9 -> ../../sdc9
lrwxrwxrwx 1 root root  9 Feb 22 10:56 wwn-0x50025388500a0d02 -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50025388500a0d02-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50025388500a0d02-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Feb 22 10:56 wwn-0x50025388500a0d02-part3 -> ../../sdb3

编辑

fdisk -l

Disk /dev/sda: 6001.2 GB, 6001175126016 bytes
256 heads, 63 sectors/track, 726751 cylinders, total 11721045168 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: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0xcb1189ee

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1   488397167   244198583+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 6001.2 GB, 6001175126016 bytes
256 heads, 63 sectors/track, 726751 cylinders, total 11721045168 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: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 6001.2 GB, 6001175126016 bytes
256 heads, 63 sectors/track, 726751 cylinders, total 11721045168 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: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

edit2 没想到有一块磁盘根本就没显示出来。看起来镜像 1 中的第二个驱动器已经完全坏了。sudo lshw -class disk 的输出帮助我看到了这一点。

 *-disk                  
       description: ATA Disk
       product: WDC WD60EFRX-68M
       vendor: Western Digital
       physical id: 0.0.0
       bus info: scsi@0:0.0.0
       logical name: /dev/sda
       version: 82.0
       serial: WD-WX91D65355TK
       size: 5589GiB (6001GB)
       capabilities: gpt-1.00 partitioned partitioned:gpt
       configuration: ansiversion=5 guid=e4026c6a-61c5-9a4a-adaf-ebcdf8bba68c sectorsize=4096
  *-disk
       description: ATA Disk
       product: Samsung SSD 840
       physical id: 0.0.0
       bus info: scsi@3:0.0.0
       logical name: /dev/sdb
       version: EXT0
       serial: S1DBNEADA00610E
       size: 232GiB (250GB)
       capabilities: gpt-1.00 partitioned partitioned:gpt
       configuration: ansiversion=5 guid=8d48ca17-2e53-4ee4-a040-e80362e68eca sectorsize=512
  *-disk
       description: ATA Disk
       product: WDC WD60EFRX-68M
       vendor: Western Digital
       physical id: 0.0.0
       bus info: scsi@4:0.0.0
       logical name: /dev/sdc
       version: 82.0
       serial: WD-WX11DA40H4ZK
       size: 5589GiB (6001GB)
       capabilities: gpt-1.00 partitioned partitioned:gpt
       configuration: ansiversion=5 guid=5811c203-99cd-5342-bb8f-c838f896b64e sectorsize=4096
  *-disk
       description: ATA Disk
       product: WDC WD60EFRX-68M
       vendor: Western Digital
       physical id: 0.0.0
       bus info: scsi@5:0.0.0
       logical name: /dev/sdd
       version: 82.0
       serial: WD-WX51D6410414
       size: 5589GiB (6001GB)
       capabilities: gpt-1.00 partitioned partitioned:gpt
       configuration: ansiversion=5 guid=c24e5950-cd95-f94b-826a-21a004221d32 sectorsize=4096

答案1

嗯,输出清楚地表明其中一个驱动器是 250GB。要么是它被替换了,要么是它在启动时以某种方式损坏了,错误地报告了它的空间。智能工具并用 检查它smartctl,它将显示有关它的所有信息。

相关内容