Monday, December 15, 2014

Verifying if management services are running on an ESXi host (2030663)

Verifying if management services are running on an ESXi host (2030663)

Purpose

This article provides steps to check if management services are running on an ESXi host. You may want to perform this check for troubleshooting purposes.

Resolution

To verify if ESXi management services are running:

  1. Log in to the ESXi host using Tech Support Mode. For more information, see:
  2. Run this command to see if hostd is running:

    Type exactly as shown:
    /etc/init.d/hostd status 

    You should see output similar to:

    hostd is running 

    Alternatively, run this command:

    ps -s | grep hostd

    You should see output similar to:

    456566 2878 hostd-worker WAIT UFUTEX 0-7 hostd
    456567 2878 hostd-worker WAIT UFUTEX 0-7 hostd


    Alternatively, for ESX 2.0.x to 4.0.x, see Verifying that the Management Service is running on an ESX host (1003494).

    Note: If hostd is not running, see Troubleshooting vmware-hostd service if it fails or stops responding on an ESX/ESXi host (1002849).
  3. If the ESXi host is attached to vCenter Server, run this command to verify that vCenter Server Agent is running:

    /etc/init.d/vpxa status 

    You should see an output similar to:

    vpxa is running

    Alternatively, for ESX 2.0.x to 4.1.x, see Verifying that the vCenter Server Agent Service is running on an ESX host (1003495).

    Note: If the vCenter Server Agent is not running, see Restarting the Management agents on an ESXi or ESX host(1003490).

Diagnosing the vSphere Client when it fails to connect to an ESX/ESXi host or vCenter Server



Symptoms

  • vCenter Server cannot connect to the ESX/ESXi host.
  • Connecting vCenter Server to the ESX/ESXi host fails.
  • vSphere Client cannot connect to the ESX/ESXi host.
  • You see one or more of these errors:

    • Login failed
    • Login failed due to a bad username or password
    • Cannot complete due login due to an incorrect username or password
    • Timed out waiting for server response
    • Failed To Connect to host


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

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

Restarting the Management agents on ESXi

To restart the management agents on ESXi:

From the Direct Console User Interface (DCUI):

  1. Connect to the console of your ESXi host.
  2. Press F2 to customize the system.
  3. Log in as root.
  4. Use the Up/Down arrows to navigate to Restart Management Agents.

    Note: In ESXi 4.1 and ESXi 5.0, 5.1 and 5.5, this option is available under Troubleshooting Options.
  5. Press Enter.
  6. Press F11 to restart the services.
  7. When the service has been restarted, press Enter.
  8. Press Esc to log out of the system.

Tuesday, December 9, 2014

Create System Image Backups of Windows 8.1 and Restore from it


Step by Step How to Create System Image Backups of Windows 8.1 and Restore from it.

https://www.youtube.com/watch?v=dEvoVcB2cXQ#t=210

Thursday, December 4, 2014

VMware vCenter Server Appliance 5.0 vpxd crashes few seconds after starting

VMware vCenter Server Appliance 5.0 vpxd crashes few seconds after starting(2030601)


Details


  • When trying to start the VMware vCenter Server Appliance 5- Build 472350, the vpxd fails after a few seconds.
  • In the /var/log/vmware/vpx/vpxd.log file, you see entries similar to:

    2012-06-28T12:07:32.583+02:00 [7FFFF3B09700 info 'Default'] [Init:842] Calling: VpxdCertificate_Load(gDB, CERTIFICATE_VMDBPATH )
    2012-06-28T12:07:32.583+02:00 [7FFFF3B09700 info 'Default'] [Init:843] Calling: VpxdVdb::Init(VpxdVdb::GetVcVdbInstId(), false, false, NULL)
    2012-06-28T12:07:32.583+02:00 [7FFFF3B09700 info 'Default'] Registry Item DB 5 value is ''
    2012-06-28T12:07:33.370+02:00 [7FFFF3B09700 error 'Default'] [Vdb::LockRepositoryHelper] SQLExecDirect failed: 57011:-438:ODBC error: (57011) - [IBM][CLI Driver][DB2/LINUXX8664] SQL0438N Application raised error or warning with diagnostic text: "Error deleting from VPX_SESSIONL". SQLSTATE=57011
    -->
    2012-06-28T12:07:33.370+02:00 [7FFFF3B09700 error 'Default'] Unable to get exclusive access to vCenter repository. Please check if another vCenter instance is running against the same database schema.
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 error 'Default'] [Init] Init failed: VpxdVdb::Init(VpxdVdb::GetVcVdbInstId(), false, false, NULL)
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 error 'Default'] Failed to intialize VMware VirtualCenter. Shutting down...
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 info 'Default'] Wrote uptime information
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 error 'Default'] Alert:false@ /build/mts/release/bora-472350/bora/vpx/vpxd/util/vpxdVdb.cpp:408
    --> Backtrace:
    --> [00] rip 00007fffeed9ed14
    --> [01] rip 00007fffeecf59e2
    --> [02] rip 00007fffeec9b38b
    --> [03] rip 00007ffff58c613d
    --> [04] rip 00007ffff4ea5a40
    --> [05] rip 00007ffff4eb4e21
    --> [06] rip 00007ffff4ea2953
    --> [07] rip 00007fffed03abc6
    --> [08] rip 00007ffff4ea1c19
    -->
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 info 'Default'] Registry Item DB 5 value is ''
    2012-06-28T12:07:34.132+02:00 [7FFFF3B09700 error 'Default'] [Vdb::LockRepositoryHelper] SQLExecDirect failed: 57011:-438:ODBC error: (57011) - [IBM][CLI Driver][DB2/LINUXX8664] SQL0438N Application raised error or warning with diagnostic text: "Error deleting from VPX_SESSIONL". SQLSTATE=57011
    -->
    2012-06-28T12:07:34.133+02:00 [7FFFF3B09700 error 'Default'] Unable to get exclusive access to vCenter repository. Please check if another vCenter instance is running against the same database schema.
    2012-06-28T12:07:34.138+02:00 [7FFFF3B09700 error 'Default'] Unhandled exception <Error[VdbError] (-24) Vdb instance is not initialized or terminated>


Solution


Note: This solution is applicable only to vCenter Server Appliance 5.0 and is not applicable to vCenter Server Appliance 5.0 Update 1, which uses the PostgresSQL database.

This issue may be caused due to a lack of adequate space on the /storage partition, a full transaction log, or due to aVPX_SESSIONLOCK table.
To resolve this issue due to core dumps filling the partition:
  1. Connect to vCenter Server Appliance console as the root user. The default password is vmware.
  2. Change directory to /storage/core and run the ls command to check for core files

    Note: If there are core dumps, delete these dumps and try to start the service again. The problem should now be solved.
To increase the transaction log size:
  1. Stop the vCenter Virtual Appliance service:

    service vmware-vpxd stop
  2. Run the following commands to connect to the database:

    su db2inst1

    db2 connect to vcdb
  3. Run this command to retrieve current database configuration:

    db2 get db cfg for vcdb | grep LOG
  4. Run this command to update the database configuration:

    db2 update db CFG FOR VCDB USING logprimary 16 logsecond 112 logfilsiz 8192You see an output similar to:

    DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully. SQL1363W One or more of the parameters submitted for immediate modification were not changed dynamically. For these configuration parameters, all applications must disconnect from this database before the changes become effective.
  5. Run this command to verify whether the update command has executed successfully:

    db2 get db cfg for vcdb | grep LOGYou see an output similar to:

    Catalog cache size (4KB) (CATALOGCACHE_SZ) = 300
    Log buffer size (4KB) (LOGBUFSZ) = 256
    Log file size (4KB) (LOGFILSIZ) = 8192
    Number of primary log files (LOGPRIMARY) = 16
    Number of secondary log files (LOGSECOND) = 112
  6. Type exit to leave the db2 session.
     
  7. Start the VMware VirtualCenter Server service and check the status with these commands:

    service vmware-vpxd start
    service vmware-vpxd status
To delete the VPX_SESSIONLOCK:

Caution: Engage your Database Administrator for assistance if you are unsure of how to complete these actions.
  1. Connect to the DB2 database using the DB Control Center. For more information on the DB Control Center, see The VirtualCenter Server service fails to start after the service was stopped or restarted when using DB2 database (1021581).
  2. Select the VPX_SESSIONLOCK table and delete all the rows in the table.
  3. Restart the VMware VirtualCenter Server service:

    service vmware-vpxd restart


To Monitor:

1. Check that the VMWARE-VPXD service is running
2. Check the storage partition's free space
3. Check the /Storage/core directory does not contain any dump files "vmware-vpxd.xxxx"





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