Friday, January 6, 2012

ESXi5.0 iscsi patch and iscsi commands

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2008018

Patch is in
https://hostupdate.vmware.com/software/VUM/OFFLINE/release-318-20111025-965713/ESXi500-201111001.zip

/vmfs/volumes/4ec6bf3f-09bef104-280a-00259048b4e3 # ls ESXi500-201111001.zip
ESXi500-201111001.zip

cd /var/log/vmware
ln -s /vmfs/volumes/4ec6bf3f-09bef104-280a-00259048b4e3/ESXi500-201111001.zip

esxcli software vib install -d ESXi500-201111001.zip
reboot
# esxcli software vib list

~ # esxcli software vib list| grep 2011-12
esx-base 5.0.0-0.4.504890 VMware VMwareCertified 2011-12-07
vmware-fdm 5.0.0-455964 VMware VMwareCertified 2011-12-06
tools-light 5.0.0-0.3.474610 VMware VMwareCertified 2011-12-07
~ # vmware -v
VMware ESXi 5.0.0 build-504890

Attachments (0)
Attach a file:

Comments
_displayNameOrEmail_ - _time_ - Remove_text_

Jerome Joseph - Dec 21, 2011 10:47 AM - Remove
To restart the software iSCSI stack:
1.Disable the software iSCSI configuration with the command:

esxcfg-swiscsi -d

2.Terminate the software iSCSI processes with the command:

esxcfg-swiscsi -k

In some cases, the iSCSI stack is in an unresponsive state and does not terminate on this command. If this happens, you must find the process ID and issue a terminate command directly to the operating system for this process.


a.Obtain the process ID for the vmkiscsi processes with the command:

ps ax | grep vmkiscsid

b.Terminate the process with the command:

kill

3.Enable the software iSCSI configuration with the command:

esxcfg-swiscsi -e

4.Perform a rescan of the software initiator with the command:

esxcfg-rescan vmhba37
Note: This procedure only applies if you are using the software iSCSI initiator.

Jerome Joseph - Dec 21, 2011 10:48 AM - Remove
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004033

Jerome Joseph - Dec 21, 2011 10:57 AM - Remove
Also firewall rules:

~ # esxcli network firewall ruleset list |grep -i nfs
nfsClient true

Jerome Joseph - Jan 5, 2012 1:59 PM - Remove
esxcli iscsi adapter get -A vmhba37 | grep iqn
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004033

1 comment:

Jerome Joseph said...

Set the adapter name:
# esxcli iscsi adapter set -A vmhba37 --name=


Update the relevant file:
# echo "InitiatorName=" > /etc/vmware/vmkiscsid/initiatorname.iscsi


Disable the software iscsi initiator
# esxcfg-swiscsi -d


Kill the software iscsi processes
# ps | grep vmkiscsid
# kill


Enable the software iscsi initiator
# esxcfg-swiscsi -e


(Reference: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004033)