1.修改SATP对应的默认PSP:
~ # esxcli storage nmp satp list
Name Default PSP Description
------------------- ------------- ------------------------------------------
VMW_SATP_MSA VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_ALUA VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AP VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_SVC VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_EQL VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_INV VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_EVA VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_ALUA_CX VMW_PSP_RR Placeholder (plugin not loaded)
VMW_SATP_SYMM VMW_PSP_RR Placeholder (plugin not loaded)
VMW_SATP_CX VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_LSI VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AA VMW_PSP_FIXED Supports non-specific active/active arrays
VMW_SATP_LOCAL VMW_PSP_FIXED Supports direct attached devices
修改VMW_SATP_ALUA_CX的默认PSP为VMW_PSP_FIXED
~ # esxcli storage nmp satp set -s VMW_SATP_ALUA_CX -P VMW_PSP_FIXED
Default PSP for VMW_SATP_LOCAL is now VMW_PSP_FIXED
2.使用MASK_PATH掩掉一个vendor的一个类型的设备,这里假设为AAAAAAA:
~ # esxcli storage core claimrule add -r 102 -t vendor -V AAAAAAA -M Virtual -P MASK_PATH
~ # esxcli storage core claimrule load
~ # esxcli storage core claiming unclaim -t vendor -v AAAAAAA -m Virtual
~ # esxcli storage core claimrule run
~ # esxcli storage core claimrule list
Rule Class Rule Class Type Plugin Matches
---------- ----- ------- --------- --------- ---------------------------------
MP 0 runtime transport NMP transport=usb
MP 1 runtime transport NMP transport=sata
MP 2 runtime transport NMP transport=ide
MP 3 runtime transport NMP transport=block
MP 4 runtime transport NMP transport=unknown
MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport
MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport
MP 102 runtime vendor MASK_PATH vendor=AAAAAAA model=Virtual
MP 102 file vendor MASK_PATH vendor=AAAAAAA model=Virtual
MP 65535 runtime vendor NMP vendor=* model=*