VMware Cloud Community
rickyxt
Contributor
Contributor
Jump to solution

Problems with LUN masking on ESXi 4.1

Hello

Im trying to remove a datastore from an ESXi 4.1 cluster but I need to preserve the information contained on there. I've read the correct way to do this is to use LUN masking and then remove the datastore from the storage end.

When I try to create the claim rule using the following command:

esxcli corestorage claimrule add -rule 192 –t location –A vmhba37 -C 0 -T 0 –L 1 –P MASK_PATH

I get the following error:

Errors: Found Extra non-parameter arguments at the end of input: '-rule' '192' '–t' 'location' '–A' 'vmhba37' '-C' '0' '-T' '0' '–L' '1' '–P' 'MASK_PATH'

This happens on both hosts that I need to remove the datastore from.

Does anyone know how I can add the claimrule successfully?

Thanks

0 Kudos
1 Solution

Accepted Solutions
rcporto
Leadership
Leadership
Jump to solution

Try using this: esxcli corestorage claimrule add --rule 192 -t location -A vmhba37 -C 0 -T 0 -L 1 -P MASK_PATH

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto

View solution in original post

0 Kudos
3 Replies
rcporto
Leadership
Leadership
Jump to solution

Try using this: esxcli corestorage claimrule add --rule 192 -t location -A vmhba37 -C 0 -T 0 -L 1 -P MASK_PATH

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
rickyxt
Contributor
Contributor
Jump to solution

Okay this command worked! I'm sure i tried this one orginally as I was following the VMware documentation.

Anyway, LUN successfully masked and datastore removed. Thanks for your help!

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

You're welcome and remember award points marking the answer as helpful or correct.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos