514 Error Connecting To Hostd-vmdb Service Instance Esx
Contents |
Leave a comment Go to comments The following solution describes how to exit a hung maintenance mode from Virtual Infrastructure Client or from the command line on the service
Ramdisk Hostd Already Exists
console of the ESX Server host. Note: Before you begin please refer to
Vsphere Replication No Element Found Line 1 Column 0
KB1003490 for important information on restarting the mgmt-vmware service. To exit from a hung maintenance mode, try the following: Disconnect watchdog-hostd: unable to terminate watchdog: no running watchdog process for hostd the Virtual Infrastructure Client (by closing it) and reconnect to the ESX Server system, to see if the option exit maintenance mode appears. If this works, there was a problem refreshing the https://kb.vmware.com/kb/9639912 information known to the Virtual Infrastructure Client. Try restarting the management agent. This shouldn't affect any running virtual machines and often clears hung tasks. However prior to ESX Server 3.0.1 (and in ESX Server 3.5.x issuing this command will cause virtual machines to restart if the option "autostart on boot" is set inside VirtualCenter Server. From the service console of the ESX Server host, type: http://blog.vmpros.nl/2009/06/03/vmware-exiting-hung-maintenance-mode-on-esx-server-9639912/ # service mgmt-vmware restart Try exiting maintenance mode using the vimsh command. Log into the ESX Server service console as root, either using your favorite SSH program or directly on the physical console. Run the following command: # vimsh You might see some messages similar to the following, which you can safely ignore: [2007-04-02 13:17:30.031 ‘App' 3076472960 info] Current working directory: /usr/lib/vmware/hostd [2007-04-02 13:17:30.033 ‘BaseLibs' 3076472960 info] Using system libcrypto, version 90709F [2007-04-02 13:17:30.057 ‘BaseLibs' 11213744 warning] [Vmdb_Unset] Unsetting unknown path: /vmomi/ When you get to the vimsh command prompt [/]$ type the following command: [/]$ /hostsvc/maintenance_mode_exit You should see a confirmation that the command was valid and the task was initiated, similar to the following: ‘vim.Task:haTask-ha-host-vim.HostSystem.exitMaintenanceMode-1610715′ At this point, the ESX Server host should exit maintenance mode. Exit the vimsh session when you return to the command prompt: [/]$ quit Alternate commands to run for vimsh: Enter maintenance mode (turn on): vimsh -n -e /hostsvc/maintenance_mode_enter Exit maintenance mode (turn off): vimsh -n -e /hostsvc/maintenance_mode_exit If you are unable to get out of maintenance mode there may be an issue due to authd, as shown by messages in /var/log/vmware/hostd.log similar to the following: [Vpx
following short script in a topic on the VMTN Community. It shuts down every VM on the host and than the host itself, but it will enter maintenance mode first, just to be http://www.yellow-bricks.com/2008/06/16/shutdown-all-vms-and-esx/ sure that no other vm's get migrated to this host. VMLIST='vmware-cmd -l' for config in ${VMLIST} do vmware-cmd $config stop trysoft done vimsh -n -e /hostsvc/maintenance_mode_enter shutdown -h now addition: thanks forbes for the trysoft addition. Share it:TweetPocket Related Filed Under: ServerComments Forbes Guthrie says 16 June, 2008 at 16:55 Hi Duncan, nice little script to have on connect to each host. I would add the "trysoft" to this line: vmware-cmd ${VMLIST} stop trysoft otherwise I think it will just send a soft power-off to the VMs. I believe the trysoft will do the same, but then hard power-off if the soft doesn't work. Forbes. Andrew Gallop says 15 July, 2008 at 09:37 Hi Duncan, Apologies if this is connect to localhost a somewhat uneducated question. Could this script be initiated by UPS software to power down the VMs and host in the event of a power failure? Regards, Andrew Duncan Epping says 15 July, 2008 at 10:39 Yeah why not. But I wouldn't place it into maintenance mode because VM's will not startup when the server is in maintenance mode, or you would have to script a " leave maintenance mode" . Christos Myrsakis says 10 September, 2008 at 13:54 hi guys how do i execute this script? do i save it as a vbs and run it? How can i launch this from a batch file? Finally i didn't quite understand what are the changes required ti implment Forbes' suggestion. Many Thanks Christos Duncan says 10 September, 2008 at 14:38 These changes already have been made, and its a bash script so run it from the service console Doug says 15 January, 2009 at 20:43 Scripting help. When using Remote CLI I receive "Can't modify constant item in scalar assignment at line 2". Any