Tag Devices as SSD under vSphere 5

By admin, April 29, 2013 11:47 am

Just found this useful information.

Tag Devices as SSD
You can use PSA SATP claim rules to tag SSD devices that are not detected automatically.

Only devices that are consumed by the PSA Native Multipathing (NMP) plugin can be tagged.

If you need more information about the commands listed in this topic, see the Getting Started with vSphere Command-Line Interfaces and vSphere Command-Line Interface Concepts and Examples documentation.

Procedure

1

Identify the device to be tagged and its SATP.

esxcli storage nmp device list

The command results in the following information.

naa.6006016015301d00167ce6e2ddb3de11
Device Display Name: DGC Fibre Channel Disk (naa.6006016015301d00167ce6e2ddb3de11)
Storage Array Type: VMW_SATP_CX
Storage Array Type Device Config: {navireg ipfilter}
Path Selection Policy: VMW_PSP_MRU
Path Selection Policy Device Config: Current Path=vmhba4:C0:T0:L25
Working Paths: vmhba4:C0:T0:L25
2

Note down the SATP associated with the device.

3

Add a PSA claim rule to mark the device as SSD.

You can add a claim rule by specifying the device name.

esxcli storage nmp satp rule add -s SATP  --device device_name --option=enable_ssd

You can add a claim rule by specifying the vendor name and the model name.

esxcli storage nmp satp rule add -s SATP  -V vendor_name -M model_name --option=enable_ssd

You can add a claim rule based on the transport protocol.

esxcli storage nmp satp rule add -s SATP  --transport transport_protocol --option=enable_ssd

You can add a claim rule based on the driver name.

esxcli storage nmp satp rule add -s SATP  --driver driver_name --option=enable_ssd
4

Unclaim the device.

You can unclaim the device by specifying the device name.

esxcli storage core claiming unclaim --type device --device device_name

You can unclaim the device by specifying the vendor name and the model name.

esxcli storage core claiming unclaim --type device -V vendor_name -M model_name

You can unclaim the device based on the transport protocol.

esxcli storage core claiming unclaim --type device --transport transport_protocol

You can unclaim the device based on the driver name.

esxcli storage core claiming unclaim --type device --driver driver_name
5

Reclaim the device by running the following commands.

esxcli storage core claimrule load
esxcli storage core claimrule run
6

Verify if devices are tagged as SSD.

esxcli storage core device list -d device_name

The command output indicates if a listed device is tagged as SSD.

Is SSD: true
What to do next

If the SSD device that you want to tag is shared among multiple hosts, make sure that you tag the device from all the hosts that share the device.

Leave a Reply