Friday, 3 May 2013

ESXi4 mount idrac iso and update nic drivers vmkload_mod

Driver versions Before:
~ # vmkload_mod -s bnx2x | grep Version
 Version: Version 1.72.54.v41.1, Build: 00000, Interface: ddi_9_1 Built on: May  9 2012
~ #
~ # vmkload_mod -s cnic | grep Version
 Version: Version 1.72.50.v41.1, Build: 00000, Interface: ddi_9_1 Built on: May  2 2012
~ # vmkload_mod -s bnx2i | grep Version
 Version: Version 2.72.10.v41.2, Build: 00000, Interface: ddi_9_1 Built on: Apr  2 2012
~ # vmkload_mod -s bnx2 | grep Version
 Version: Version 2.2.1l.v41.1, Build: 00000, Interface: ddi_9_1 Built on: Apr 19 2012
~ #
Driver versions After:
~ # vmkload_mod -s bnx2x | grep Version
 Version: Version 1.74.22.v41.1, Build: 00000, Interface: ddi_9_1 Built on: Dec 20 2012
~ # vmkload_mod -s cnic | grep Version
 Version: Version 1.74.04.v41.3, Build: 00000, Interface: ddi_9_1 Built on: Dec 20 2012
~ # vmkload_mod -s bnx2i | grep Version
 Version: Version 2.74.07.v41.1, Build: 00000, Interface: ddi_9_1 Built on: Sep 6 2012
~ # vmkload_mod -s bnx2 | grep Version
 Version: Version 2.2.3e.v41.1, Build: 00000, Interface: ddi_9_1 Built on: Aug 28 2012
~ #


To update or add drivers on existing ESX installations using esxupdate:
   (for ESX only)
1. Power on the ESX host and log into an account with administrator capability.
2. Place the driver CD in the CD-ROM drive of the ESX host.
3. Mount the driver CD.
4. Navigate to <cd mount point>/offline-bundle/ and locate the
   <offline-bundle>.zip file.
5. Run the esxupdate command to install drivers using the offline bundle.
   esxupdate --bundle=<offline-bundle>.zip update

dev # vmkload_mod iso9660
Module iso9660 loaded successfully
/dev # ls /dev/cdrom
mpx.vmhba40:C0:T0:L0                  vml.0005000000766d68626134303a303a30
mpx.vmhba42:C0:T0:L0                  vml.0005000000766d68626134323a303a30
/dev # /sbin/vsish -e set /vmkModules/iso9660/mount mpx.vmhba40:C0:T0:L0
VSISHCmdSet():Set failed: Not supported
/dev # /sbin/vsish -e set /vmkModules/iso9660/mount mpx.vmhba42:C0:T0:L0
/dev # ls -al /vmfs/volumes/cdrom
ls: /vmfs/volumes/cdrom: No such file or directory
/dev # ls -al /vmfs/volumes/CDROM
lrwxr-xr-x    1 root     root                 20 May  3 17:57 /vmfs/volumes/CDROM -> mpx.vmhba42:C0:T0:L0
/dev # cd /vmfs/volumes/CDROM
/vmfs/volumes/mpx.vmhba42:C0:T0:L0 # ls
DOC          DRIVERS.XML  OFFLINE_     SOURCE       TRANS.TBL    _RPM


/vmfs/volumes/mpx.vmhba42:C0:T0:L0 # ls
DOC          DRIVERS.XML  OFFLINE_     SOURCE       TRANS.TBL    _RPM
/vmfs/volumes/mpx.vmhba42:C0:T0:L0 # cd OFFLINE_/
/vmfs/volumes/mpx.vmhba42:C0:T0:L0/OFFLINE_ # pwd
/vmfs/volumes/CDROM/OFFLINE_
/vmfs/volumes/mpx.vmhba42:C0:T0:L0/OFFLINE_ # esxupdate --bundle=BCM_B000.ZIP update
Unpacking cross_vmware-esx-dr.. ######################################## [100%]
Removing packages :vmware-esx.. ######################################## [100%]
Installing packages :cross_vm.. ######################################## [100%]
Running [vmkmod-install.sh]...
ok.
Running [/sbin/esxcfg-secpolicy -p /etc/vmware/secpolicy]...
ok.
The update completed successfully, but the system needs to be rebooted for the
changes to be effective.
/vmfs/volumes/mpx.vmhba42:C0:T0:L0/OFFLINE_ #

Tuesday, 30 April 2013

How to find HBA WWN via ESXi Shell / CLI

with thanks to http://www.vstrong.info

How to find HBA WWN via ESXi Shell / CLI:
  • Connect to ESXi shell either via putty/SSH or DCUI (Direct Console User Interface) / server console
  • Run ‘ls /proc/scsi/‘ and check the folder names:
    ?
    1
    2
    ~ # ls /proc/scsi/
     mptsas   qla2xxx
  • Look for a folder like ‘qla2xxx‘ – QLogic HBA, ‘lpfc820‘ – Emulex HBA, ‘bnx2i” – Brocade HBA;
  • Run ‘ls /proc/scsi/qla2xxx’. You will get a list of files, named by a number. Each file contains information about one HBA;
    ?
    1
    2
    ~ # ls /proc/scsi/qla2xxx/
    6  7
  • Now run ‘cat /proc/scsi/qla2xxx/6‘ to get full info on the HBA. Alternatively, run the following commands:
    • Run ” cat /proc/scsi/qla2xxx/6 | grep -A3 ‘SCSI Device Information:’  ” to get WWNN and WWPNs:
      ?
      1
      2
      3
      4
      ~ # cat /proc/scsi/qla2xxx/6 | grep -A3 'SCSI Device Information:'
      SCSI Device Information:
      scsi-qla0-adapter-node=20000024ff31f0c8:000000:0;
      scsi-qla0-adapter-port=21000024ff31f0c8:000000:0;
    • Run “ cat /proc/scsi/qla2xxx/6 | grep ‘Host Device Name’ ” to get vmhba number:
      ?
      1
      2
      ~ # cat /proc/scsi/qla2xxx/6 | grep 'Host Device Name'
      Host Device Name vmhba3

Monday, 29 April 2013

vsphere client download url

vsphere viclient client download url

VMware vSphere Client v5.0 Update 2
"http://vsphereclient.vmware.com/vsphereclient/9/1/3/5/7/7/VMware-viclient-all-5.0.0-913577.exe"
from:
http://chall32.blogspot.co.uk/2011/10/vmware-vsphere-client-download-url.html

setting Round Robin storage defaults in ESXi 4 / 5 for falconstor

Add new rules in ESXi4:esxcli nmp satp addrule -s VMW_SATP_ALUA -V FALCON -M "IPSTOR DISK" -c tpgs_on
esxcli nmp satp setdefaultpsp --psp="VMW_PSP_RR" --satp="VMW_SATP_ALUA"


The whole thing in ESXi4 including checks before and after adding each rule:
# esxcli nmp satp list
Name                 Default PSP       Description
VMW_SATP_SYMM        VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_SVC         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_MSA         VMW_PSP_MRU       Placeholder (plugin not loaded)
VMW_SATP_LSI         VMW_PSP_MRU       Placeholder (plugin not loaded)
VMW_SATP_INV         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_EVA         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_EQL         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AP  VMW_PSP_MRU       Placeholder (plugin not loaded)
VMW_SATP_ALUA_CX     VMW_PSP_FIXED_AP  Placeholder (plugin not loaded)
VMW_SATP_CX          VMW_PSP_MRU       Supports EMC CX that do not use the ALUA protocol
VMW_SATP_ALUA        VMW_PSP_MRU       Supports non-specific arrays that use the ALUA protocol
V
MW_SATP_DEFAULT_AA  VMW_PSP_FIXED     Supports non-specific active/active arrays
VMW_SATP_LOCAL       VMW_PSP_FIXED     Supports direct attached devices
#
# esxcli nmp satp addrule -s VMW_SATP_ALUA -V FALCON -M "IPSTOR DISK" -c tpgs_on
# esxcli nmp satp setdefaultpsp --psp="VMW_PSP_RR" --satp="VMW_SATP_ALUA"
Default PSP for VMW_SATP_ALUA is now VMW_PSP_RR
 #
 # esxcli nmp satp list
Name                 Default PSP       Description
VMW_SATP_SYMM        VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_SVC         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_MSA         VMW_PSP_MRU       Placeholder (plugin not loaded)
VMW_SATP_LSI         VMW_PSP_MRU       Placeholder (plugin not loaded)
VMW_SATP_INV         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_EVA         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_EQL         VMW_PSP_FIXED     Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AP  VMW_PSP_MRU       Placeholder (plugin not loaded)
VMW_SATP_ALUA_CX     VMW_PSP_FIXED_AP  Placeholder (plugin not loaded)
VMW_SATP_CX          VMW_PSP_MRU       Supports EMC CX that do not use the ALUA protocol
VMW_SATP_ALUA        VMW_PSP_RR        Supports non-specific arrays that use the ALUA protocol
VMW_SATP_DEFAULT_AA  VMW_PSP_FIXED     Supports non-specific active/active arrays
VMW_SATP_LOCAL       VMW_PSP_FIXED     Supports direct attached devices
/vmfs/volumes/518d09a9-8aab988c-fc03-90b11c0f66d2/TEST RDM #

ESXi5 error using above command:~ # esxcli nmp satp addrule -s VMW_SATP_ALUA -V FALCON -M "IPSTOR DISK" -c tpgs_on
Error: Unknown command or namespace nmp satp addrule

Correct ESXi 5 commands:esxcli storage nmp satp rule add -s VMW_SATP_ALUA -V FALCON -M "IPSTOR DISK" -c tpgs_on
esxcli storage nmp satp set --default-psp="VMW_PSP_RR" --satp="VMW_SATP_ALUA"


The whole thing in ESXi5 including checks before and after adding each rule:
~ # esxcli storage nmp satp rule list | grep -i FALCON
~#
~ # esxcli storage nmp satp rule add -s VMW_SATP_ALUA -V FALCON -M "IPSTOR DISK" -c tpgs_on
~#
~ # esxcli storage nmp satp rule list | grep -i FALCON 
VMW_SATP_ALUA    FALCON    IPSTOR DISK    user    tpg                                                             
~ #
~ # esxcli storage nmp satp list
Name                 Default PSP    Description
-------------------  -------------  -------------------------------------------------------
VMW_SATP_ALUA        VMW_PSP_MRU    Supports non-specific arrays that use the ALUA protocol
VMW_SATP_MSA         VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AP  VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_SVC         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_EQL         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_INV         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_EVA         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_ALUA_CX     VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_SYMM        VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_CX          VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_LSI         VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AA  VMW_PSP_FIXED  Supports non-specific active/active arrays
VMW_SATP_LOCAL       VMW_PSP_FIXED  Supports direct attached devices

~ # esxcli storage nmp satp set --default-psp="VMW_PSP_RR" --satp="VMW_SATP_ALUA"
Default PSP for VMW_SATP_ALUA is now VMW_PSP_RR
~ # esxcli storage nmp satp list
Name                 Default PSP    Description
-------------------  -------------  -------------------------------------------------------
VMW_SATP_ALUA        VMW_PSP_RR     Supports non-specific arrays that use the ALUA protocol
VMW_SATP_MSA         VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AP  VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_SVC         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_EQL         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_INV         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_EVA         VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_ALUA_CX     VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_SYMM        VMW_PSP_FIXED  Placeholder (plugin not loaded)
VMW_SATP_CX          VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_LSI         VMW_PSP_MRU    Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AA  VMW_PSP_FIXED  Supports non-specific active/active arrays
VMW_SATP_LOCAL       VMW_PSP_FIXED  Supports direct attached devices
~ #

Wednesday, 13 February 2013

SNMP Trap Receiver - Free


SNMP Trap Receiver is simple enough. What it does, it does well. Its ease is brilliant. Its efficiency is unparalled. Its operation, flawless. That is why Trap Receiver is used in thousands of organization in over 40 countries.
http://www.trapreceiver.com/
Trap Receiver User Manual
http://www.trapreceiver.com/trapreceivermanual.html

Wednesday, 9 January 2013

vsphere replication operation error: vm is in an invalid state

vsphere replication operation error: vm is in an invalid state
IGNORE THIS "ERROR" MESSAGE - ACCORDING TO VMWARE SUPPORT IT SHOULD BE AN INFORMATIONAL MESSAGE

Installing, Status and Starting VMware Tools in a Solaris VM

Installing, Status and Starting VMware Tools in a Solaris VM
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1023956

from vmware KB 1023956

Check if VMware tools service is running with the command:

# /etc/init.d/vmware-tools statusThe output is similar to:

vmtoolsd is running

to start the tools - as root:
# /etc/init.d/vmware-tools start