Trying to do storage redundancy test on the new ESXi host by disabling paths from one of the vmhba from host level
All ESXi Versions
To test storage redundancy to the hosts paths to a specific hba need to be disabled however HBAs cannot be disconnected directly from the host GUI or CLI
There are a few options to disable the paths for the HBA
for i in `localcli storage core path list | grep "Runtime Name: vmhbaX" | awk '{print $NF}'`; do localcli storage core path set --state off --path $i; done
replacing the vmhbaX with the HBA number you are trying to down.
To turn the paths back on run the following
for i in `localcli storage core path list | grep "Runtime Name: vmhbaX" | awk '{print $NF}'`; do localcli storage core path set --state active --path $i; done