Listing MP Claim Rules

# esxcli storage core claimrule list

Listing PSA plug-in registration

# esxcli storage core plugin registration list

SATP Claim Rules

Each SATP is associated with a default PSP. The defaults can be overridden using SATP claim rules.

List default PSP assignment to each SATP:

# esxcli storage nmp satp list

List the SATP rule:

# esxcli storage nmp satp rule list

Adding a PSA Claim Rule for the MP class

It's based on LUN, so from UI get the LUN's NAA ID and all runtime names

You also can get info from CLI, please refer: http://hj192837.blog.51cto.com/655995/1032280

1. list the current set of claim rules

 

2. Create the claim rule

for below LUN:

 

or

3. Verify that the rules were added successfully

 

4. unclaim the paths to the LUN specified in that rule set

# esxcli storage core claiming unclaim -t device -d naa.6006016055711d00 cff95e65664ee011

5. Load the new claim rules so that the paths to the LUN get claimed by NMP

# esxcli storage core claimrule load

6. list the claim rules to verify that they were successfully loaded

# esxcli storage core claimrule list

 

 Delete a Claim Rule

1. List the current claim rules set and identify the claim rule or rules you want to delete.

# esxcli storage core claimrule list

2. Remove claim rules

# esxcli storage core claimrule remove --rule <rule-number>

 

3. Unclaim rules, load and list rules

 

 Mask Paths to a Certain LUN

1. List LUN you want to mask

 

2. Add the MASK_LUN claim rule

 

3. Load and then list the claim rules

 

4. Use the reclaim option to unclaim and then claim the LUN using its NAA ID. Check if it is still visible

 

Unmask a LUN

1. Remove the MASK_PATH claim rules

 

2. Unclaim the paths to the LUN in the same fashion you used while adding the MASK_PATH claim rules, Rescan using both HBA names, Verify that the LUN is now visible

 

 Changing PSP Assignment for a Given LUN (Device)

1. Identify the device ID for each LUN you want to reconfigure, please refer: http://hj192837.blog.51cto.com/655995/1032280

2. Using the device ID you identified, run this command:

esxcli storage nmp device set -d <device-id> --psp=<psp-name>

example: esxcli storage nmp device set -d naa.60060e8005275100000027510000011a --psp=VMW_PSP_FIXED

change the default PSP for a family of arrays

example:

esxcli storage nmp satp set --default-psp VMW_PSP_RR --satp VMW_SATP_CX

esxcli storage nmp satp list

Changing the default PSP does not apply to LUNs already discovered and claimed by other PSPs. You need to reboot the host for this to take effect.

To verify that the change took effect for a certain device, run this command:

esxcli storage nmp device list -d <device-ID>

To reset LUN to use the current default PSP

esxcli storage nmp device set --device=<device-ID> --default