Storage redundancy test on the newly deployed ESXi host
search cancel

Storage redundancy test on the newly deployed ESXi host

book

Article ID: 406754

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Trying to do storage redundancy test on the new ESXi host by disabling paths from one of the vmhba from host level

Environment

All ESXi Versions

Cause

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

Resolution

There are a few options to disable the paths for the HBA

  • From the storage array or storage switch side disable the storage paths for the HBA

 

  • Physically disconnect the connection to the HBA

 

  • From the host CLI run the following command:

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