18.08.2013 Views

vSphere Storage - ESXi 5.1 - Documentation - VMware

vSphere Storage - ESXi 5.1 - Documentation - VMware

vSphere Storage - ESXi 5.1 - Documentation - VMware

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Procedure<br />

1 To define a new claim rule, run the following command:<br />

esxcli --server=server_name storage core claimrule add<br />

The command takes the following options:<br />

Option Description<br />

-A|--adapter= Indicate the adapter of the paths to use in this operation.<br />

-u|--autoassign The system will auto assign a rule ID.<br />

-C|--channel= Indicate the channel of the paths to use in this operation.<br />

-c|--claimrule-class= Indicate the claim rule class to use in this operation.<br />

Valid values are: MP, Filter, VAAI.<br />

-d|--device= Indicate the device Uid to use for this operation.<br />

-D|--driver= Indicate the driver of the paths to use in this operation.<br />

-f|--force Force claim rules to ignore validity checks and install the rule anyway.<br />

--if-unset= Execute this command if this advanced user variable is not set to 1.<br />

-i|--iqn= Indicate the iSCSI Qualified Name for the target to use in this operation.<br />

-L|--lun= Indicate the LUN of the paths to use in this operation.<br />

-M|--model= Indicate the model of the paths to use in this operation.<br />

-P|--plugin= Indicate which PSA plugin to use for this operation. (required)<br />

-r|--rule= Indicate the rule ID to use for this operation.<br />

-T|--target= Indicate the target of the paths to use in this operation.<br />

-R|--transport= Indicate the transport of the paths to use in this operation.<br />

Valid values are: block, fc, iscsi, iscsivendor, ide, sas, sata, usb, parallel,<br />

unknown.<br />

-t|--type= Indicate which type of matching is used for claim/unclaim or claimrule.<br />

Valid values are: vendor, location, driver, transport, device, target. (required)<br />

-V|--vendor= Indicate the vendor of the paths to user in this operation.<br />

--wwnn= Indicate the World-Wide Node Number for the target to use in this operation.<br />

--wwpn= Indicate the World-Wide Port Number for the target to use in this operation.<br />

2 To load the new claim rule into your system, run the following command:<br />

esxcli --server=server_name storage core claimrule load<br />

This command loads all newly created multipathing claim rules from your system's configuration file.<br />

Example: Defining Multipathing Claim Rules<br />

In the following example, you add and load rule # 500 to claim all paths with the NewMod model string and<br />

the NewVend vendor string for the NMP plug-in.<br />

# esxcli --server=server_name storage core claimrule add -r 500 -t vendor -V NewVend -M NewMod -P<br />

NMP<br />

# esxcli --server=server_name storage core claimrule load<br />

Chapter 20 Understanding Multipathing and Failover<br />

<strong>VMware</strong>, Inc. 209

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!