Wednesday, March 14, 2012

esxi5: tag your raid array as SSD (if it is one)

I have four Intel 520 SSD's connected to a 9260LP-4i LSI controller plugged into a SuperMicro X8TDi

observe:


~ # esxcli storage core device list
naa.600605b00418fd8016ed05ec1a609a91
   Display Name: Local LSI Disk (naa.600605b00418fd8016ed05ec1a609a91)
   Has Settable Display Name: true
   Size: 341856
   Device Type: Direct-Access
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/naa.600605b00418fd8016ed05ec1a609a91
   Vendor: LSI
   Model: MR9260-4i
   Revision: 2.12
   SCSI Level: 5
   Is Pseudo: false
   Status: on
   Is RDM Capable: false
   Is Local: true
   Is Removable: false
   Is SSD: false
   Is Offline: false
   Is Perennially Reserved: false
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0200000000600605b00418fd8016ed05ec1a609a914d5239323630

mpx.vmhba32:C0:T0:L0
   Display Name: Local USB Direct-Access (mpx.vmhba32:C0:T0:L0)
   Has Settable Display Name: false
   Size: 956
   Device Type: Direct-Access
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0
   Vendor: Crucial
   Model: Gizmo!      
   Revision: 1100
   SCSI Level: 2
   Is Pseudo: false
   Status: on
   Is RDM Capable: false
   Is Local: true
   Is Removable: true
   Is SSD: false
   Is Offline: false
   Is Perennially Reserved: false
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0000000000766d68626133323a303a30

mpx.vmhba0:C0:T0:L0
   Display Name: Local Optiarc CD-ROM (mpx.vmhba0:C0:T0:L0)
   Has Settable Display Name: false
   Size: 0
   Device Type: CD-ROM
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/cdrom/mpx.vmhba0:C0:T0:L0
   Vendor: Optiarc
   Model: DVD RW AD-7280S
   Revision: 1.01
   SCSI Level: 5
   Is Pseudo: false
   Status: on
   Is RDM Capable: false
   Is Local: true
   Is Removable: true
   Is SSD: false
   Is Offline: false
   Is Perennially Reserved: false
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0005000000766d686261303a303a30



collect info:

~ # esxcli storage nmp device list
naa.600605b00418fd8016ed05ec1a609a91
   Device Display Name: Local LSI Disk (naa.600605b00418fd8016ed05ec1a609a91)
   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:C2:T0:L0;current=vmhba1:C2:T0:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba1:C2:T0:L0

mpx.vmhba32:C0:T0:L0
   Device Display Name: Local USB Direct-Access (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

mpx.vmhba0:C0:T0:L0
   Device Display Name: Local Optiarc CD-ROM (mpx.vmhba0: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=vmhba0:C0:T0:L0;current=vmhba0:C0:T0:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba0:C0:T0:L0

~ # esxcfg-info | grep -A1 "Default Path Selection Policy"
                  |----Default Path Selection Policy................VMW_PSP_MRU
                  |----Name.........................................VMW_SATP_MSA
--
                  |----Default Path Selection Policy................VMW_PSP_MRU
                  |----Name.........................................VMW_SATP_ALUA
--
                  |----Default Path Selection Policy................VMW_PSP_MRU
                  |----Name.........................................VMW_SATP_DEFAULT_AP
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_SVC
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_EQL
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_INV
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_EVA
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_ALUA_CX
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_SYMM
--
                  |----Default Path Selection Policy................VMW_PSP_MRU
                  |----Name.........................................VMW_SATP_CX
--
                  |----Default Path Selection Policy................VMW_PSP_MRU
                  |----Name.........................................VMW_SATP_LSI
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_DEFAULT_AA
--
                  |----Default Path Selection Policy................VMW_PSP_FIXED
                  |----Name.........................................VMW_SATP_LOCAL
--
            |----World Command Line.................................grep -A1 Default Path Selection Policy
            |----Cartel ID..........................................4991

now, add the rule:

~ # esxcli storage nmp satp rule add -s VMW_SATP_LOCAL --device naa.600605b00418fd8016ed05ec1a609a91 --option=enable_ssd
~ # esxcli storage core claiming unclaim --type device --device naa.600605b00418fd8016ed05ec1a609a91
~ # esxcli storage core claimrule load
~ # esxcli storage core claimrule run

observe:

~ # esxcli storage core device list
naa.600605b00418fd8016ed05ec1a609a91
   Display Name: Local LSI Disk (naa.600605b00418fd8016ed05ec1a609a91)
   Has Settable Display Name: true
   Size: 341856
   Device Type: Direct-Access
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/naa.600605b00418fd8016ed05ec1a609a91
   Vendor: LSI
   Model: MR9260-4i
   Revision: 2.12
   SCSI Level: 5
   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
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0200000000600605b00418fd8016ed05ec1a609a914d5239323630

mpx.vmhba32:C0:T0:L0
   Display Name: Local USB Direct-Access (mpx.vmhba32:C0:T0:L0)
   Has Settable Display Name: false
   Size: 956
   Device Type: Direct-Access
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0
   Vendor: Crucial
   Model: Gizmo!        
   Revision: 1100
   SCSI Level: 2
   Is Pseudo: false
   Status: on
   Is RDM Capable: false
   Is Local: true
   Is Removable: true
   Is SSD: false
   Is Offline: false
   Is Perennially Reserved: false
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0000000000766d68626133323a303a30

mpx.vmhba0:C0:T0:L0
   Display Name: Local Optiarc CD-ROM (mpx.vmhba0:C0:T0:L0)
   Has Settable Display Name: false
   Size: 0
   Device Type: CD-ROM
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/cdrom/mpx.vmhba0:C0:T0:L0
   Vendor: Optiarc
   Model: DVD RW AD-7280S
   Revision: 1.01
   SCSI Level: 5
   Is Pseudo: false
   Status: on
   Is RDM Capable: false
   Is Local: true
   Is Removable: true
   Is SSD: false
   Is Offline: false
   Is Perennially Reserved: false
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0005000000766d686261303a303a30
~ #