Monday, August 17, 2009

Enable/Disable maintenance mode from command line

vimsh -n -e /hostsvc/maintenance_mode_enter to enable maintenance mode

and

vimsh -n -e /hostsvc/maintenance_mode_exit to disable it

Set_rtc_mmss: when the hardware clock is out of synch with system clock

I saw following error message on the console

set_rtc_mmss: can't update from 59 to

When I ran

   [root@xxx]# hwclock -r;date

Thu 30 Oct 2008 05:22:47 AM EDT  -0.437804 seconds

Mon Aug 17 05:22:47 EDT 2009

It has the huge difference between system clock and H/W clock

I then ran 

  [root@xxx]# hwclock –systohc

And now the time difference is pretty low

[root@xxxx]# hwclock -r;date

Mon 17 Aug 2009 05:26:21 AM EDT  -0.026283 seconds

Mon Aug 17 05:26:20 EDT 2009

Saturday, August 15, 2009

Administrator can not see datacenter after No Access role assigned on it

I created new datacenter for testing purpose and gave “Administrator” “No Access” . After this even I being a Administrator at the “Host & Cluster ” level even was not able to see it . To fix such situation we have two resolution method

Resolution #1

If the permission was modified for a user or group (as long as it was not the administrators group):

This is by design that the local administrator/member of local admin group of Virtual Center does have admin level privilege on VC.

1. Create a new user that is a member of the local administrators group for temporary use

2. Log in with this user.

3. Modify the permissions of the user so that they are no longer as restrictive. You can now log in to VirtualCenter appropriately.

SQL method:

Since I have changed the Administrator privilege on datacenter , fist method will not work and then only SQL method will work

  1. Login to the SQL server for virtual center and lunch SQL server Management Studio

  1. Connect to the SQL server based on WINDOWS Authentication

  1. Expand Database ->VMwareVirtualCenter -> Tables.

  1. Search for Tables called VPX_ACCESS tables ,select and right click on it “Open Table”

  1. Check for the column “ROLE_ID” and see the value is -1 for Principle called “Administrator”. If the value is other than -1 then change it to -1 .Close the Database and then restart virtual Center service

India Turn 62 today - Happy Independence Day

India turn 62 today. ON 15th August 1947 India was freed from British Raj.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Happy Independence Day!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Friday, August 14, 2009

Creating a quiesced snapshot failed because the (user-supplied) custom pre-freeze script in the virtual machine exited with a non-zero return code

During one of the P2V I got below mention error message

clip_image001

Do not panic, just reinstall the VM tools and retry to the HOT cloning again. This will work