• 以下命令(标红)均在esxcli中操作。
  • 此操作适用于实验环境将HDD硬盘强制指定为SSD的场景
~ # esxcli storage nmp device list

mpx.vmhba1:C0:T2:L0
   Device Display Name: Local VMware Disk (mpx.vmhba1:C0:T2:L0)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba1:C0:T2:L0;current=vmhba1:C0:T2:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba1:C0:T2:L0
   Is Local SAS Device: false
   Is USB: false
   Is Boot USB Device: false


mpx.vmhba1:C0:T1:L0
   Device Display Name: Local VMware Disk (mpx.vmhba1:C0:T1:L0)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba1:C0:T1:L0;current=vmhba1:C0:T1:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba1:C0:T1:L0
   Is Local SAS Device: false
   Is USB: false
   Is Boot USB Device: false


mpx.vmhba1:C0:T0:L0
   Device Display Name: Local VMware Disk (mpx.vmhba1:C0:T0:L0)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba1:C0:T0:L0;current=vmhba1:C0:T0:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba1:C0:T0:L0
   Is Local SAS Device: false
   Is USB: false
   Is Boot USB Device: false


mpx.vmhba32:C0:T0:L0
   Device Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba32:C0:T0:L0;current=vmhba32:C0:T0:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba32:C0:T0:L0
   Is Local SAS Device: false
   Is USB: false
   Is Boot USB Device: false

使用如下命令将磁盘指定为SSD类型

~ # esxcli storage nmp satp rule add -s VMW_SATP_LOCAL --device mpx.vmhba1:C0:T1:L0 --option="enable_ssd"

~ # esxcli storage core claiming reclaim --device mpx.vmhba1:C0:T1:L0

~ # esxcli storage core device list -d mpx.vmhba1:C0:T1:L0

mpx.vmhba1:C0:T1:L0

   Display Name: Local VMware Disk (mpx.vmhba1:C0:T1:L0)
   Has Settable Display Name: false
   Size: 40960
   Device Type: Direct-Access
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0
   Vendor: VMware 
   Model: Virtual disk   
   Revision: 1.0
   SCSI Level: 2
   Is Pseudo: false
   Status: on
   Is RDM Capable: false
   Is Local: true
   Is Removable: false
   Is SSD: true
   Is Offline: false
   Is Perennially Reserved: false
   Queue Full Sample Size: 0
   Queue Full Threshold: 0
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0000000000766d686261313a313a30
   Is Local SAS Device: false
   Is USB: false
   Is Boot USB Device: false
   No of outstanding IOs with competing worlds: 32

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据