Saturday, 16 April 2011

Using autoclaim while connecting ESX host to existing fabric.


I had come across an interesting  scenario, a partner faced while testing ESX in their setup.Partner had a multi node ESX40 setup connected to a Active-Passive array.Customer isolated an ESX server running ESX40 from the SAN. Installed ESX41 and tried to plug the FC cables back into HBA slots on the ESX host. And suddenly all the shared LUNs on other ESX hosts trespassed to another storage processor[ESX41 too shared these shared LUNs].

The reason for this trespass was, two HBAs on each of the host were connected to two separate fabrics and the Storage Processor was connected to the fabric as shown below
HBA1 --------> Fabric1 ------------> SP1
HBA2 --------> Fabric2 ------------> SP2

When storage admin connected the HBA  corresponding to a standby SP to the SAN fabric first, ESX  trespassed the shared LUNs to Standby SP [ Activated Standby SP]  as it was the only available path for the shared LUNs as seen from ESX41 host.

ESX uses VMW_PSP_MRU for Active-Passive array , to avoid path thrashing.This results in all the ESX host sending IOs from common SP for shared LUNs.To avoid unwanted LUN  trespass while connecting a live ESX to an existing fabric  you can run below command before connecting to the SAN (on isolated ESX host).Disabling autoclaim will preventing ESX claiming further any new devices.
  esxcli corestorage claiming autoclaim --enabled false
After you restore SAN connectivity, you have to enable autoclaim by executing
esxcli corestorage claiming autoclaim --enabled true.

Do not forget to enable autoclaim. If not ESX will never claim any new devices, even when you initiate multiple rescans manually.The possible inputs autoclaim command can take are true,false,1,0,yes,no,y and n.

Disclaimer: Storage admins follow a different approach while connecting an ESX host to existing fabric. This experiment was done in a Customer's QA environment.Please try this out at your own risk :).

1 comment:

  1. Casino - Hotel and RV Park - Jackson, NC - JtmHub
    Find 고양 출장마사지 all information and best deals 하남 출장안마 of Casino - Hotel and RV Park 경상남도 출장샵 in Jackson, NC 아산 출장샵 at 시흥 출장마사지 JTMHub. Get deals on hotel and RV Park, Casino, RV Park, RV

    ReplyDelete