Showing posts with label administration. Show all posts
Showing posts with label administration. Show all posts

Tuesday, November 13, 2012

Hardware Issues for ESX / ESXI Server


If you are using ESX 4.0 (Classic) then try running following command on your esx server  :-   #dmidecode > out.txt or if you have ESXi 4.0 then try this command #smbiosDump > out.txt


In dimidecode and smbiosdump output,  you will know in which slot memory is installed and also size of the memory in each slot. 


I am not sure how to check failed memory but in demidecode and smbiosdump output, Their is property like Error Info.. Check that property in your scenario.

How to Check the pci Information in ESX/ESXI Servers
Use the VMware provided tool “vmkvsitools“. Go to the console and issue the command “vmkvsitools lspci“. This command returns a list of all PCI devices in your system, equal to just running the “lspci” command, but adds the VMware device name at the end of each line


Contents:
  • Overview of Upgrading NIC drivers in vSphere 4
  • Steps to Update NIC drivers in vSphere 4
  • Conclusion
Overview of Upgrading NIC drivers in vSphere
With our ever growing technology infrastructure we get to play the update and upgrade games so everything can talk to everything else. Even virtualization does not free us from the fun exercise of upgrading drivers and firmware levels. If, for whatever reason, you find yourself asking "how do I upgrade the NIC drivers on a vSphere host?" The steps below should provide enough information to get you through the process.

Please note that these steps were performed on a Windows 2008 R2 Enterprise server and were ran against a VMware ESX 4.1.0 build 260247 vSphere host using the VMware vSphere CLI 4.1.0 build 254719 tool on December 8th, 2010. These steps should work for any version of vSphere 4.x and vCLI 4.x but read the documentation on the 'vihostupdate' command from VMware's website first to verify the process has not changed. If you are running the vSphere CLI from a *nix host please read the documentation to verify the steps outlined will work for you before attempting them.
The documentation is located here: http://www.vmware.com/support/developer/vcli/.
A reboot of the VMware vSphere ESX / ESXi host is required before the changes will take effect. The reboot will not occur automatically and should be performed at step 13.

These instructions are not meant to be exhaustive and may not be appropriate for your environment. Always check with your vendors for the appropriate steps to manage your infrastructure.


Steps to Update NIC drivers in vSphere 4
  1. Install the vSphere Command Line Interface (vSphere CLI) on a machine that has SSH access to your vSphere ESX/ESXi host's service console.
    The Installer is located here: http://www.vmware.com/download/download.do?downloadGroup=VCLI41
    VMware recommends installing the vSphere CLI on your vSphere vCenter Server as it typically has access to your vSphere hosts but, it does not have to be on a vCenter Server.
  2. Verify your version of ESX and/or ESXi.
    For an ESX host, SSH to the service console and perform the following:
    [root@MYHOST1 ~]# vmware -v
    VMware ESX 4.1.0 build-260247

    For an ESXi host, connect to the console with a KVM, lights out manager, or other management tool and view the home screen:

    vSphere ESXi 4.1.0 home screen showing version and build numbers.
  3. Verify the NIC type you are running and the driver name.
    From a vCenter client, change your view to Hosts and Clusters.

    Selecting Hosts and Clusters view from the vSphere Client

    Expand the cluster the host is in and select the vSphere Host you want to upgrade. Click on the configuration tab, then networking, and click properties next to a NIC (in Virtual Switch or Distributed Switch view). The name of your network adapter is located in the Network Adapters tab and the Adapter Details pane. The name of the driver is in the driver field. From this example the name of the NIC is Broadcom NetXtreme II 57711E and the driver is bnx2x.

    Network adapter properties showing NIC type and driver name.
  4. Place your host in maintenance mode through the vSphere Client and wait for all virtual machines to be migrated off the host before continuing.

  5. Verify the current running version of your drivers.
    For an ESX host, SSH to the service console and perform the below command. Replace "bnx2x" with your driver name from step 3 (above). The current version is the driver with the text "installed" in the second field. From this example the "bnx2x_400.1.54.1" driver is the current version.
    [root@MYHOST1 ~]# esxupdate query --vib-view | grep bnx2x
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-1.0.7.193498@x86_64     retired
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-2vmw.1.9.208167@x86_64     retired
    rpm_vmware-esx-drivers-net-bnx2x_400.1.54.1.v41.1-1vmw.0.0.260247@x86_64     installed
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-2vmw.2.17.261974@x86_64     retired

  6. Download the appropriate driver for your host's NIC and vSphere ESX / ESXi version fromhttp://downloads.vmware.com/d/info/datacenter_downloads/vmware_vsphere_4/4#drivers_tools. You may have to expand the "Driver CDs" menu to view all downloads.
  7. Copy the data from the CD/offline-bundle/ folder to the machine that you installed the vSphere CLI on.
    Depending on your network adapter and the types of drivers available, you may have 1 to many zip files in the offline-bundle folder. Your drivers may be a different name and version than what is shown below.

    Example of the driver bundles available in the offline-bundle folder..
  8. Run the vSphere CLI and change to the directory that you saved the offline-bundle zip files to using the "cd" command.
  9. Verify the offline-bundle package you downloaded is valid for your system. Make sure to change the file specified after "--bundle" to the zip file that corresponds to the driver you discovered from step 3 (above). (Time saving tip: you should be able to tab complete the driver name.)
    C:\drivers\offline-bundle>vihostupdate.pl --server 172.16.1.2 --scan --bundle BCM-bnx2x-1.60.50.v41.2-offline_bundle-325733.zip
    Enter username:
    Enter password:
    The bulletins which apply to but are not yet installed on this ESX host are listed.

    ---------Bulletin ID-------------------------Summary-----------------
    BCM-bnx2x-1.60.50.v41.2     bnx2x: net driver for VMware ESX

    If you receive a message stating there are no bulletins which apply to your system then you have either grabbed the wrong driver cd or your system is already up to date.
  10. Install the offline-bundles which apply to your system. It is possible to define the username and password on the command line or through a configuration file. Read the vSphere Command-line reference document's section titled vSphere CLI Connection Options for more information.
    C:\drivers\offline-bundle>vihostupdate.pl --server 172.16.1.2 --install --bundle BCM-bnx2x-1.60.50.v41.2-offline_bundle-325733.zip
    Enter username:
    Enter password:
    Please wait patch installation is in progress ...
    The update completed successfully, but the system needs to be rebooted for the changes to be effective.

    The driver install typically takes about a minute but could be faster or slower depending on your system configuration.
  11. Repeat steps 9 and 10 as necessary for any remaining network drivers.
  12. Verify the drivers installed correctly.
    For an ESX host, SSH to the service console and perform the below command. Be sure to replace "bnx2x" with your driver name from step 3 (above). You should see a driver (or drivers) with a status of "pending,installed". In this example the "bnx2x_400.1.60.50" driver was installed over the old "bnx2x_400.1.54.1" driver.
    [root@MYHOST1 ~]# esxupdate query --vib-view | grep bnx2x
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-1.0.7.193498@x86_64     retired
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-2vmw.1.9.208167@x86_64     retired
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-2vmw.2.17.261974@x86_64     retired
    cross_vmware-esx-drivers-net-bnx2x_400.1.60.50.v41.2-1vmw.0.0.00000     pending,installed
    rpm_vmware-esx-drivers-net-bnx2x_400.1.54.1.v41.1-1vmw.0.0.260247@x86_64     retired

    If the new driver version does not appear it is possible the driver install failed from step 10 or the wrong driver was chosen for installation.
  13. Reboot the newly upgraded host through the vSphere Client.
  14. When the host is online, verify the new drivers are installed and running.
    For an ESX host, SSH to the service console and perform the below command. Be sure to replace "bnx2x" with your driver name from step 3 (above). You should see a driver (or drivers) with a status of "installed". In this example the "bnx2x_400.1.60.50" driver was installed successfully and is running after the reboot.
    [root@USSLTCHER0049 ~]# esxupdate query --vib-view | grep bnx2x
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-1.0.7.193498@x86_64     retired
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-2vmw.1.9.208167@x86_64     retired
    rpm_vmware-esx-drivers-net-bnx2x_400.1.45.20-2vmw.2.17.261974@x86_64     retired
    cross_vmware-esx-drivers-net-bnx2x_400.1.60.50.v41.2-1vmw.0.0.00000     installed
    rpm_vmware-esx-drivers-net-bnx2x_400.1.54.1.v41.1-1vmw.0.0.260247@x86_64     retired

Conclusion
Following the above process you should be able to successfully upgrade the NIC drivers for your vSphere 4 ESX / ESXi hosts. Always be sure to read the release details of your drivers before download and installing them. If you have any problems updating your drivers you should search VMware KB articles related to your setup or contact VMware for assistance. These instructions could also be used to upgrade other drivers such as HBA's, graphics accelerators, etc.

Process-2

Update Intel NIC Drivers on ESX 4.1

I Installed an IBM x3650 M3 the other day. During the installation the additional Intel NIC was not recognized by default in the ESX Host.
This I could see in two different ways, from the output on the console
msaidelk@esx9:~$ sudo lspci | grep Ethernet
0b:00.0 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
0b:00.1 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
10:00.0 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
10:00.1 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
15:00.0 Ethernet controller: Intel Corporation Unknown device 1516 (rev 01)
15:00.1 Ethernet controller: Intel Corporation Unknown device 1516 (rev 01)
1f:00.0 Ethernet controller: Intel Corporation Unknown device 1516 (rev 01)
1f:00.1 Ethernet controller: Intel Corporation Unknown device 1516 (rev 01)

And the GUI also only recognized the first 4 Broadcom NICs (instead of 8)
NICS
I posted an article about IBM x3650 M3 Does not Recognize NICs a while back - but as you can see from the output above they are recognized in hardware - just ESX does not know how to deal with them.
I downloaded the driver from VMware's Site and extracted the files from the ISO image and the file I am interested in is in the offline-bundle folder
image
The host has to be in Maintenance mode for the patch update.
Install through vCLI
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vihostupdate.pl --server esx9.maishsk.local --username root  -i -b \\vc\VMware\ESX\INT-intel-lad-ddk-igb-2.4.10-offline_bundle-320657.zip
After installation
msaidelk@esx9:~$ sudo lspci | grep Ethernet0b:00.0 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
0b:00.1 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
10:00.0 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
10:00.1 Ethernet controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T (rev 20)
15:00.0 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
15:00.1 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
1f:00.0 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
1f:00.1 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
Host rebooted and it comes up with all NICs recognized.
image

Monday, May 31, 2010

BASIC COMMAND FOR VMWARE & LINUX

Directory description
/bin Essential command binaries (programs) are stored here (bash, ls, mount,tar, etc.)
/boot Static files of the boot loader.
/dev Device files. In Linux, hardware devices are acceessd just like other files, and they are kept under this directory.
/etc Host-specific system configuration files.
/home Location of users' personal home directories (e.g. /home/susan).
/lib Essential shared libraries and kernel modules.
/Proc Process information pseudo-filesystem. An interface to kernel data structures.
/root The root (superuser) home directory.
/sbin Essential system binaries (fdisk, fsck, init, etc).
/tmp Temporary files. All users have permission to place temporary files here.
/usr The base directory for most shareable, read-only data (programs, libraries,documentation, and much more).
/var Variable data: mail and printer spools, log files, lock files, etc.

Basic Commands For Navigation

ESX Command DOS/Windows Command Description
pwd cd “Print Working Directory”. Shows the current location in the directory tree.
cd cd,chdir “Change Directory”. When typed all by itself, it returns you to your home directory.
cd directory cd directory Change into the specified directory name.
Example: cd /usr/src/linux
cd ~ . “~” is an alias for your home directory. It can be used as a shortcut to your “home”, or other directories relative to your home.
cd.. cd.. Move up one directory. For example, if you are in /home/vic and you type “cd ..”, you will end up in /home.
cd - . Return to previous directory. An easy way to get back to your previous location!
Is Dir /w List all files in the current directory, in column format.
Is directory Dir directory List the files in the specified directory.
Example: ls /var/log

Special Characters














Character Description
\ Escape character. If you want to reference a special character, you must “escape” it with a backslash first.
Example: touch /tmp/filename\*
/ Directory separator, used to separate a string of directory names.
Example: /usr/src/linux
. Current directory. Can also “hide” files when it is the first character in a filename.
..Parent Directory
~User's Home Directory
*Represents 0 or more characters in a filename, or by itself, all files in a directory.
Example: pic*2002 can represent the files pic2002, picJanuary2002, etc.
?Represents a single character in a filename.
Example: hello?.txt can represent hello1.txt, helloz.txt, but not hello22.txt
[]Can be used to represent a range of values, e.g. [0-9], [A-Z], etc.
Example: hello[0-2].txt represents the names hello0.txt,hello1.txt, and hello2.txt
|“Pipe”. Redirect the output of one command into another command.
Example: ls | more
>Redirect output of a command into a new file. If the file already exists, over-write it.
Example: ls > myfiles.txt
>>Redirect the output of a command onto the end of an existing file.
Example: echo .Mary 555-1234. >> phonenumbers.txt
<Redirect a file as input to a program.
Example: more < phonenumbers.txt
;Command separator. Allows you to execute multiple commands on a single line.Example: cd /var/log ; less messages
&&Command separator as above, but only runs the second command if the first one finished without errors.
Example: cd /var/logs && less messages
&Execute a command in the background, and immediately get your shell back.
Example: find / -name core > /tmp/corefiles.txt &

Working with Files and Directories

ESX Command DOS/Windows Command Description
CattypeDisplay the contents of a text file on the screen.
For example: cat mp3files.txt
Head - Display the first few lines of a text file.
Example: head /etc/services
Tail- Display the last few lines of a text file.
Example: tail /etc/services
tail-f - Display the last few lines of a text file, and then output appended data as the file grows (very useful for following log files!).
Example: tail -f /var/log/messages
CpCopyCopies a file from one location to another.
Example: cp mp3files.txt /tmp
mvMove,ren,renameMoves a file to a new location, or renames it.
For example: mv mp3files.txt /tmp
rmDelDelete a file. Example: rm /tmp/mp3files.txt
mkdirmdMake Directory. Example: mkdir /tmp/myfiles/
rmdirrd,RmdirRemove Directory. Example: rmdir /tmp/myfiles/

Find/Search things

Linux CommandDescription
WhichShows the full path of Shell Commands found in your path.For example,if u want to know exactly where the "grep Command is located on the file system,you cantype "Which grep".The Output should be something like /bin/grep.
where isLocates the Program,Source code,and manual page for a command(if all information is available).For example, to find out where "1s" and its main page are, type "Whereis 1s".The output will look something like:
1s:/bin//1s/usr/share/man/man1/1s.1.gz
locateA quick way to search for files anywhere on the file system.For example,you can find all files and directories that contain the name "mozilla"by typing:
locate mozilla
findA very powerful command,but sometimes tricky to use.It can be used to search for files matching certain patterns as well as many other types of searche.A simple example is:
find . -name \*mp3
This example starts searching in the current directory"." and all sub directories looking for files with"mp3"at the end od their names

Informational Commands

Linux CommandDescription
psLinks currently running process(programs).
wShow who is logged on and what they are doing.
idPrint your User-id's and Group id's.
dfReport File system disk space usage("DiskFree" is how I remember it)
duDisk Usage in a Particular Directory."du -s" provides a summary for current directory.
topDisplays CPU Processes in a full screen GUI.A great way to see the activity on your computer in real time.Type "Q" to quit.
freeDisplays amount of free and used memory in the system.
cat/proc/cpuinfoDisplays information about your CPU.
cat/proc/meminfoDisplays lots of information about current memory Usage
uname -aPrints system information to the screen(Kernel version,machine type,etc.,).

Other Utilities

Linux CommandDescription
ClearClear the Screen
echoDisplay text on the screen.Mostly useful when writing shell scripts.For example:
echo"Hello World"
moreDisplay a file, or program output onpage at a time.Examples:
more mp3files.txt
ls -la | more.
lessAn improved replacement for "more" command".Allows you to scroll backwards as well as forwards.
grepSearch for a pattern in a file or program output.For example to find out which TCP network is used by the "NFS" service,You can do this:
grep "nfs" /etc/services

This looks for any line that contains the string "nfs" in the file "/etc/services" and displays only those lines.
lprPrint a file or program output.Examples:
lpr mp3files.txt - Prints the mp3files.txt files.
ls -la | lpr -Prints the output of the "ls -la" command.
sortSort a file or Program Output.Examples: sort mp3files.txt.
su"Switch user".Allows you to switch to another user account temporarily.The default account to switch to is the root/superuser account.Examples:
su   -Switch to root account.
su-   -Switch to root and log in with root's environment.
su  larry-Switch to larry's account.

Wednesday, April 14, 2010

System Update Error in windows 7

What does the System Update Readiness Tool do?
 The System Update Readiness Tool verifies the integrity of the following resources:

Files that are located under the following directories:


%SYSTEMROOT%\Servicing\Packages %SYSTEMROOT%\WinSxS\Manifests

Registry data that is located under the following registry subkeys:

HKEY_LOCAL_MACHINE\Components

HKEY_LOCAL_MACHINE\Schema

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing
 Note This list may be updated at any time.


When the System Update Readiness Tool detects incorrect manifests, files, or registry data, it might replace the incorrect data with a corrected version.



What Windows Update installation errors can the System Update Readiness Tool potentially address?

The following table lists error messages that you might receive when you try to install a software update. These errors might be caused by a system irregularity that the System Update Readiness Tool might be able to resolve. However, the tool might be unable to fix all instances in which these errors occur. Collapse this tableExpand this table
How to Fix this issue ????

acm bottom ad