Memorise

Removing a LUN containing a datastore/dead path from VMware ESXi/ESX 4.0 and 4.1

First find Dead Path Link

esxcfg-mpath -L | more

List which drive are used by server and naa.xx nubmer.

esxcfg-scsidevs --vmfs

Rescan vmhba in my case vmhba37

esxcfg-rescan vmhba37


To shutdown the VM

vim-cmd vmsvc/getallvms | grep <vm name>
vim-cmd vmsvc/power.getstate <vmid>
vim-cmd vmsvc/power.off <vmid>


List all world id

vm-support -x

To Kill that vm

vm-support -X <world id>
--

Masking a LUN from ESX and ESXi using the MASK_PATH plug-in

check Mask

esxcfg-mpath -G

List claimrules esxcli corestorage claimrule list if you sill have problem with dead path, you can mask (–rule number you can have anything from 101 and up)

esxcli corestorage claimrule add --rule 102 -t location -A vmhba37 -C 3 -T 0 -L 27 -d naa.600xxxxxx -P MASK_PATH --

Categorised as: Hardware/Software, Virtual Infrastructure, VMWare/ESX


Leave a Reply