2019-05-14 删除vSAN中故障磁盘设备

命令行删除vSAN中故障磁盘设备

  1. SSH或者ESXi Shell登录到有SSD设备故障的主机;
  2. 执行如下命令确认故障SSD设备ID:esxcli vsan storage list
    此时,会看到naa.xxxxxx开头的设备;
  3. 执行如下命令,从Disk Group删除掉设备:
    esxcli vsan storage remove -s naa.xxxxx
  4. 然后,拿掉主机上的这块坏掉的SSD设备,添加新的设备进去后,重新执行扫描,添加进去;

备注:这个动作只能针对Pass-through设备;

[root@esxi168:~] esxcli vsan storage list
naa.5000c500b809705f
   Device: naa.5000c500b809705f
   Display Name: naa.5000c500b809705f
   Is SSD: false
   VSAN UUID: 520e9aae-a9dc-b35e-13bd-8d24ac6c68be
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 13736057332562856016
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.5000c500b84429eb
   Device: naa.5000c500b84429eb
   Display Name: naa.5000c500b84429eb
   Is SSD: false
   VSAN UUID: 5214cfb4-a9e1-1c8f-1c36-9d677770ac39
   VSAN Disk Group UUID: 526d65a3-34a4-80b9-5168-0686ca6de94a
   VSAN Disk Group Name:
   Used by this host: true
   In CMMDS: false
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 17835052590214055526
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:32 2018

naa.5000c500b8095bdf
   Device: naa.5000c500b8095bdf
   Display Name: naa.5000c500b8095bdf
   Is SSD: false
   VSAN UUID: 5229ffc4-00e9-8545-e6a8-c4394d6cbcd0
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 12360461569146510039
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.500a07511be0dd84
   Device: naa.500a07511be0dd84
   Display Name: naa.500a07511be0dd84
   Is SSD: true
   VSAN UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 6994986707959962499
   Checksum OK: true
   Is Capacity Tier: false
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.5000c50098124733
   Device: naa.5000c50098124733
   Display Name: naa.5000c50098124733
   Is SSD: false
   VSAN UUID: 5256f1fe-a43e-a39e-8edd-34c4c57f51fd
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 4856239252862720943
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue May  7 02:39:24 2019

naa.5000c500b844305b
   Device: naa.5000c500b844305b
   Display Name: naa.5000c500b844305b
   Is SSD: false
   VSAN UUID: 525bf335-3463-cf2d-2e5b-971922f3ac79
   VSAN Disk Group UUID: 526d65a3-34a4-80b9-5168-0686ca6de94a
   VSAN Disk Group Name:
   Used by this host: true
   In CMMDS: false
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 1599653935973913322
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:32 2018

naa.5000c500b8093baf
   Device: naa.5000c500b8093baf
   Display Name: naa.5000c500b8093baf
   Is SSD: false
   VSAN UUID: 526763a8-e972-68f4-a577-3577af1ff06b
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 13911735673214752242
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:09:59 2018

naa.5000c500b8092923
   Device: naa.5000c500b8092923
   Display Name: naa.5000c500b8092923
   Is SSD: false
   VSAN UUID: 52863d88-e34e-4feb-ba82-1f34b721679b
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 14979827010222722567
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:09:59 2018

naa.5000c500b844318f
   Device: naa.5000c500b844318f
   Display Name: naa.5000c500b844318f
   Is SSD: false
   VSAN UUID: 528fac97-329a-9b3b-1070-600db714bbcf
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 622639443268996496
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:09:59 2018

naa.5000c500b8442227
   Device: naa.5000c500b8442227
   Display Name: naa.5000c500b8442227
   Is SSD: false
   VSAN UUID: 5294424a-a32d-5368-58d3-90f17337385e
   VSAN Disk Group UUID: 526d65a3-34a4-80b9-5168-0686ca6de94a
   VSAN Disk Group Name:
   Used by this host: true
   In CMMDS: false
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 13626091087589283952
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:32 2018

naa.5000c500b8441d57
   Device: naa.5000c500b8441d57
   Display Name: naa.5000c500b8441d57
   Is SSD: false
   VSAN UUID: 529bf03a-0322-0f39-91bc-607cacc91e3f
   VSAN Disk Group UUID: 526d65a3-34a4-80b9-5168-0686ca6de94a
   VSAN Disk Group Name:
   Used by this host: true
   In CMMDS: false
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 15140885931762138084
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:32 2018

naa.500a07511be0dc70
   Device: naa.500a07511be0dc70
   Display Name: naa.500a07511be0dc70
   Is SSD: true
   VSAN UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 12793321740773517731
   Checksum OK: true
   Is Capacity Tier: false
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:09:59 2018

naa.5000c500b809373f
   Device: naa.5000c500b809373f
   Display Name: naa.5000c500b809373f
   Is SSD: false
   VSAN UUID: 52a1e909-8d52-0fbe-e127-d12ace600afe
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 14687421811095597583
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.5000c500b8442b87
   Device: naa.5000c500b8442b87
   Display Name: naa.5000c500b8442b87
   Is SSD: false
   VSAN UUID: 52a88aca-ea74-8702-56e5-65277c5bd824
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 15108214459231231674
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.5000c500b844293f
   Device: naa.5000c500b844293f
   Display Name: naa.5000c500b844293f
   Is SSD: false
   VSAN UUID: 52a93739-3579-7229-a025-2e4fb8d5806c
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 4367308253417995353
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.5000c500b80958c7
   Device: naa.5000c500b80958c7
   Display Name: naa.5000c500b80958c7
   Is SSD: false
   VSAN UUID: 52ac41d9-6cd8-3042-77a7-a5849ddcc565
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 15599908734375047539
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:09:59 2018

naa.5000c500b8092ef3
   Device: naa.5000c500b8092ef3
   Display Name: naa.5000c500b8092ef3
   Is SSD: false
   VSAN UUID: 52b0d65d-7e8b-cdcd-f510-43b39f20615b
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 3302907336919914664
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.5000c500b8097067
   Device: naa.5000c500b8097067
   Display Name: naa.5000c500b8097067
   Is SSD: false
   VSAN UUID: 52b1543f-050b-1f39-bf4e-1668c83da627
   VSAN Disk Group UUID: 5245f864-1b44-1dff-07b4-dbf4e7907753
   VSAN Disk Group Name: naa.500a07511be0dd84
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 3685325171695791538
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:15 2018

naa.5000c500b80943cf
   Device: naa.5000c500b80943cf
   Display Name: naa.5000c500b80943cf
   Is SSD: false
   VSAN UUID: 52b266bd-0941-2d23-2bec-8c92b2bf868c
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 8938634346772624631
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:09:59 2018

naa.5000c500b8094b5f
   Device: naa.5000c500b8094b5f
   Display Name: naa.5000c500b8094b5f
   Is SSD: false
   VSAN UUID: 52ba6a7c-ea32-4028-66c9-44fddb6266a9
   VSAN Disk Group UUID: 529c367d-3886-40f4-2aa7-3cbc244fcd15
   VSAN Disk Group Name: naa.500a07511be0dc70
   Used by this host: true
   In CMMDS: true
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 4055968825279276154
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:09:59 2018

naa.5000c500b8442b53
   Device: naa.5000c500b8442b53
   Display Name: naa.5000c500b8442b53
   Is SSD: false
   VSAN UUID: 52c021bb-ed18-4c74-0c19-33f4647deb6c
   VSAN Disk Group UUID: 526d65a3-34a4-80b9-5168-0686ca6de94a
   VSAN Disk Group Name:
   Used by this host: true
   In CMMDS: false
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 3172464568355573609
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:32 2018

naa.5000c500b809568f
   Device: naa.5000c500b809568f
   Display Name: naa.5000c500b809568f
   Is SSD: false
   VSAN UUID: 52d0e00a-66b6-ce24-a5fc-74dd84924178
   VSAN Disk Group UUID: 526d65a3-34a4-80b9-5168-0686ca6de94a
   VSAN Disk Group Name:
   Used by this host: true
   In CMMDS: false
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 17450323340495659076
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:32 2018

naa.5000c500b80957bb
   Device: naa.5000c500b80957bb
   Display Name: naa.5000c500b80957bb
   Is SSD: false
   VSAN UUID: 52d87de7-ed68-47f7-855c-7d495d374a90
   VSAN Disk Group UUID: 526d65a3-34a4-80b9-5168-0686ca6de94a
   VSAN Disk Group Name:
   Used by this host: true
   In CMMDS: false
   On-disk format version: 7
   Deduplication: false
   Compression: false
   Checksum: 7196727146034522797
   Checksum OK: true
   Is Capacity Tier: true
   Encryption Metadata Checksum OK: true
   Encryption: false
   DiskKeyLoaded: false
   Is Mounted: true
   Creation Time: Tue Nov  6 16:10:32 2018
[root@esxi168:~]
[root@esxi168:~] esxcli vsan storage list | grep Display
   Display Name: naa.5000c500b809705f
   Display Name: naa.5000c500b84429eb
   Display Name: naa.5000c500b8095bdf
   Display Name: naa.500a07511be0dd84
   Display Name: naa.5000c50098124733
   Display Name: naa.5000c500b844305b
   Display Name: naa.5000c500b8093baf
   Display Name: naa.5000c500b8092923
   Display Name: naa.5000c500b844318f
   Display Name: naa.5000c500b8442227
   Display Name: naa.5000c500b8441d57
   Display Name: naa.500a07511be0dc70
   Display Name: naa.5000c500b809373f
   Display Name: naa.5000c500b8442b87
   Display Name: naa.5000c500b844293f
   Display Name: naa.5000c500b80958c7
   Display Name: naa.5000c500b8092ef3
   Display Name: naa.5000c500b8097067
   Display Name: naa.5000c500b80943cf
   Display Name: naa.5000c500b8094b5f
   Display Name: naa.5000c500b8442b53
   Display Name: naa.5000c500b809568f
   Display Name: naa.5000c500b80957bb
[root@esxi168:~] esxcli vsan storage list | grep Display | wc -l
23
[root@esxi168:~]

你可能感兴趣的:(2019-05-14 删除vSAN中故障磁盘设备)