Active/passive block storage array, Test Unit Ready (TUR) and ESXi 6.7

Nella  versione ESXi 6.7,  tra tutti i cambiamenti, è presente un modifica al parametro action_OnRetryErrors.

La modifica del parametro action_OnRetryErrors ha effetto su come viene gestita la Test Unit Ready (TUR), processo di controllo se un PATH verso una LUN di uno storage array è attivo o no. 

Fino alla versione 6.0/6.5 questo parametro era impostato a OFF, quindi nel caso di perdita di un PATH l’host ESXi continuava a eseguire un polling  sul path fino al ripristino. 

Nella nuova versione 6.7 questo paramentro è messo a ON  e quindi al primo errore il path viene messe “DEAD” e non vengono successivamente eseguite verifiche sullo stato del PATH,

In caso di storage SAS con connessione a HOST ESXi con due path (Attivo/passivo) la situazione creata nella versione 6.7 può risultare critica, perchè:

  •  In caso di test di ridondanza dell’infrastruttura Storage, con test di riavvio dei controller. Ci troveremo nella situazione dove i path, utilizzati dal controller che abbiamo riavviato, non tornano attivi. (Necessario un Reboot dell’HOST)
  • In caso di aggiornamento del firmware dello storage array,  procedura dove vengono riavviati uno alla volta i controller, ci troveremo nella situazione dove tutti i path sono marcati come DEAD e quindi i nostri HOST perdono la visibilità delle LUN utilizzate dai datastore.


Per risolvere il problema  si può procedere con le indicazioni di questa KB di VMware:

ESXi 6.7 hosts with active/passive or ALUA based storage devices may see premature APD events during storage controller fail-over scenarios (67006) 

Active/passive block storage array, Test Unit Ready (TUR) and ESXi 6.7

After change vcenter hostname and ip error to access TsmVMwareUI

After change vcenter hostname and ip    when  i try to access a TSM Vmware Gui Web interface:

On the machine where the “Tivoli Data Protection for VMware” package is installed, open the Windows Services applet and stop the service: 
Open the file vmcliConfiguration  with notepad  (find the file in my case  on c:IBMtsmtdpvmwarewebserverusrserversveProfiletsmVmGUI) and change the name of old vcenter with the new vcenter
<vcenter_url>https://xxxx.xxx.xx/sdk</vcenter_url>
Now restart the service  “Data Protection for Vmware web Server service” and retry to connect at web interface
After change vcenter hostname and ip error to access TsmVMwareUI

Change Network adapter type on VM

After upgrade my vsphere infrastructure to 5.5 i have problem of disconnect network after reboot:

https://communities.vmware.com/thread/498472

Now i have change on my vm windows the network adapter type from e1000 to vmxnet3

I have used this step :

– Save IP Address configuration
– Shutdown VM
– Copy Mac Address
– Remove E1000 network adapter
– Add vmxnet3 network adapter and set manual mac address
– Boot VM
– For windows 2008 and older set devmgr_show_nonpresent_devices=1
– Remove, if present, the old network adapter
– Configure ip address…

Change Network adapter type on VM

Clone vm without vcenter

For clone disk and clone vm without vcenter :

cd /vmfs/volumes/Datastore01Raid10
 /vmfs/volumes/537dfea4-903a2d25-a8c3-00237da1046c # ls
SRVAPP01      SRVDC02       win2008R2ent

/vmfs/volumes/537dfea4-903a2d25-a8c3-00237da1046c # mkdir template2008
vmfs/volumes/537dfea4-903a2d25-a8c3-00237da1046c # vmkfstools -i SRVDC02/SRVDC02.vmdk template2008/template2008.vmdk
Destination disk format: VMFS zeroedthick
Cloning disk ‘SRVDC02/SRVDC02.vmdk’…
Clone: 100% done.
/vmfs/volumes/537dfea4-903a2d25-a8c3-00237da1046c #

And select custom configuration for add existing disk 

and after select other option for the disk “Use an existing virtual disk”

and select the vmdk create .

Clone vm without vcenter

Show configuration and status HP raid esxi 5.1

Use iso esxi 5.1  customized HP

~ # /opt/hp/hpacucli/bin/hpacucli
HP Array Configuration Utility CLI 9.40.12.0
Detecting Controllers…Done.
Type “help” for a list of supported commands.
Type “exit” to close the console.

=> ctrl all show config

Smart Array E200i in Slot 0 (Embedded)    (sn: QT7AMV7298     )

   array A (SAS, Unused Space: 0  MB)

      logicaldrive 1 (558.7 GB, RAID 5, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)

Show configuration and status HP raid esxi 5.1

Enable serial logging from ESXi 5.1

During installation

If an ESXi 5.1 host does not successfully install, serial line logging can be configured when booting the installer using advanced kernel boot-time parameters. This takes effect for the current boot, and does not persist across future reboots.
To enable serial-line logging during installation:

  1. At the Loading ESXi installer screen, press Shift+O.
  2. At the prompt, append the advanced option to specify a serial port after runweasel:

    > runweasel debugLogToSerial=1 logPort=com1

  3. Press Enter to boot.
  4. Logging starts after the first loading progress bar finishes.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2032350

Enable serial logging from ESXi 5.1

Determining driver ESXi 5

~ # esxcfg-scsidevs -a

vmhba38 ahci              link-n/a  sata.vmhba38                            (0:0:31.2) Intel Corporation Patsburg 6 Port SATA AHCI Controller
vmhba39 ahci              link-n/a  sata.vmhba39                            (0:0:31.2) Intel Corporation Patsburg 6 Port SATA AHCI Controller
vmhba0  ahci              link-n/a  sata.vmhba0                             (0:0:31.2) Intel Corporation Patsburg 6 Port SATA AHCI Controller
vmhba1  qla2xxx           link-n/a  fc.20000024ff0aa474:21000024ff0aa474    (0:17:0.0) QLogic Corp ISP2532-based 8Gb Fibre Channel to PCI Express HBA
vmhba2  megaraid_sas      link-n/a  unknown.vmhba2                          (0:22:0.0) LSI / Symbios Logic MegaRAID SAS Fusion Controller
vmhba3  qla2xxx           link-n/a  fc.20000024ff0aa479:21000024ff0aa479    (0:32:0.0) QLogic Corp ISP2532-based 8Gb Fibre Channel to PCI Express HBA
vmhba40 ahci              link-n/a  sata.vmhba40                            (0:0:31.2) Intel Corporation Patsburg 6 Port SATA AHCI Controller
vmhba32 bnx2i             unbound   iscsi.vmhba32                           Broadcom iSCSI Adapter
vmhba33 bnx2i             unbound   iscsi.vmhba33                           Broadcom iSCSI Adapter
vmhba34 bnx2i             unbound   iscsi.vmhba34                           Broadcom iSCSI Adapter
vmhba35 bnx2i             unbound   iscsi.vmhba35                           Broadcom iSCSI Adapter
vmhba36 ahci              link-n/a  sata.vmhba36                            (0:0:31.2) Intel Corporation Patsburg 6 Port SATA AHCI Controller
vmhba37 ahci              link-n/a  sata.vmhba37                            (0:0:31.2) Intel Corporation Patsburg 6 Port SATA AHCI Controller

~ # vmkload_mod -s qla2xxx | grep Version

 Version: Version 902.k1.1-9vmw, Build: 799733, Interface: 9.2 Built on: Aug  1 2012
~ #

Determining driver ESXi 5