You can prevent the ESX/ESXi host from accessing storage devices or LUNs or from using individual paths to a LUN. Use the vSphere CLI commands to mask the paths. When you mask paths, you create claim rules that assign the MASK_PATH plugin to the specified paths. Via Kevin Kress the master of VMkernel and Console Config and esxcfg-* tools.
Friday, June 26. 2009
How to Mask Paths in vSphere
1 |
esxcli corestorage claimrule list
2 | . Assign the MASK_PATH plugin to a path by creating a new claim rule for the plugin. |
esxcli corestorage claimrule add -r <claimrule_ID> -t <type> <required_option> -P <MASK_PATH>
For information on command-line options, see esxcli corestorage Command-Line Options.
3. |
esxcli corestorage claimrule load
4. |
esxcli corestorage claimrule list
5. | If a claim rule for the masked path exists, remove the rule. |
esxcli corestorage claiming unclaim <type> <required_option>
6. |
esxcli corestorage claimrule run
Example B‑5. Masking a LUN
#esxcli corestorage claimrule list
#esxcli corestorage claimrule load