1.3 – Troubleshoot complex storage solutions

  • Perform command line configuration of multipathing options
  • Change a multipath policy
  • Troubleshoot common storage issues

Disable a path with ESXCLI
Changing SATP Default Policy of a device
Changing Path Policy of a device
Tag Devices as SSD
Tag Devices as Local

First , There are several ways to get more info about specific device :

esxcfg-scsidevs Print the mappings between vmhba names and /dev names

~ # esxcfg-scsidevs -l -d naa.60000970000195901112533032323133

List the devices currently controlled by the VMware NMP Multipath Plugin and show the SATP and PSP information associated with that:

# esxcli storage nmp device list -d naa.60000970000195901112533032323133

~ # esxcli storage core device list -d naa.60000970000195901112533032323133

# esxcfg-mpath -m -d naa.60000970000195901112533032323133

Storage Array Type Plug-in (SATP)

and

path selection policy (PSP)

Four different modules compose the PSA:

Native multipathing plug-in (NMP)

Storage array type plug-in (SATP)

Path selection plug-in (PSP)

Multipathing plug-in (MPP)

Disable a path with ESXCLI:

I disabled one path with GUI:

Could be achieved as well with command:

When you try to disable the another path:

~ # esxcli storage core path set –state=off -p vmhba33:C0:T0:L20

OR: /vmfs/volumes # esxcfg-mpath –state=off -P vmhba33:C0:T0:L20

Unable to set path state. Error was: Sysinfo error on operation returned status : Busy. Please see the VMkernel log for detailed error information

Because there’s mounted datastore

After reboot it was OK J

Changing SATP Default Policy of a device:

VMW_SATP_SYMM default policy is VMW_PSP_RR we will change it to VMW_PSP_FIXED

~ # esxcli storage nmp satp list

/vmfs/volumes # esxcli storage nmp satp set –default-psp=VMW_PSP_RR –satp=VMW_PSP_FIXED

Plugin ‘VMW_PSP_FIXED’ is not a registered SATP.

Plugin ‘VMW_PSP_FIXED’ is not a registered SATP. Please select a plugin from the list in ‘esxcli storage core plugin registered list -N SATP’.

/vmfs/volumes # esxcli storage core plugin registration list -N SATP

/vmfs/volumes # esxcli storage nmp satp set –default-psp=VMW_PSP_FIXED –satp=VMW_SATP_SYMM

Default PSP for VMW_SATP_SYMM is now VMW_PSP_FIXED

Changing Path Policy of a device:

esxcli storage core plugin registration list –plugin-class=”PSP”

~ # esxcli storage nmp psp list

~ # esxcli storage nmp device list –device naa.60000970000195901101533032313039

esxcli storage nmp device set –device naa.60000970000195901101533032313039 –psp VMW_PSP_RR

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.

~ # esxcfg-scsidevs -l

~ # esxcli storage core device list -d naa.60000970000195901101533032313046

# esxcli storage nmp satp rule add -s VMW_SATP_SYMM –device naa.60000970000195901112533032323133 –option=enable_ssd

# esxcli storage core claiming unclaim –type device -d naa.60000970000195901112533032323133

~ # esxcli storage core claimrule load

~ # esxcli storage core claimrule run

Tag Devices as Local

Prerequisites

· Make sure that the device is not shared.

· Power off virtual machines that reside on the device and unmount an associated datastore.

esxcli storage nmp device list

esxcli storage nmp satp rule add -sVMW_SATP_ALUA_CX -d naa.600601602970280097f5a6b974cee411 -O “enable_local”

esxcli storage core claiming reclaim -d naa.600601602970280097f5a6b974cee411

Download this article as PDF:

1.3Troubleshoot_complex_storage_solutions.pdf

Advertisements

About Ahmad Sabry ElGendi

https://www.linkedin.com/pub/ahmad-elgendi/94/223/559
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s