[one-users] trying to troubleshoot onevm shutdown/stop/restart
John Nyhuis
jnyhuis at rim.com
Thu Apr 14 14:28:32 PDT 2011
Greetings,
I am trying to troubleshoot our OpenNebula 2.0 installation (w/ kvm) and would appreciate some help.
When we run onevm shutdown <VID> or onevm stop <VID>, the VM fails to stop and enters the 'fail' state. Once in this state, it can not be restarted using onevm restart or repaired in any way. We have been deleting the vm and creating it again, which is time consuming and wasteful. (We are using the $one_location=/srv/vm/ self contained option).
Examination of the vm.log of a failed vm reveals:
Mon Apr 11 18:46:21 2011 [TM][I]: ERROR MESSAGE --8<------
Mon Apr 11 18:46:21 2011 [TM][I]: mv: cannot stat `/srv/cloud/var/600/images': No such file or directory
Mon Apr 11 18:46:21 2011 [TM][I]: ERROR MESSAGE ------>8--
Mon Apr 11 18:46:21 2011 [TM][I]: ExitCode: 1
Mon Apr 11 18:46:21 2011 [TM][I]: tm_mv.sh: Moving /srv/cloud/var/600/images
Mon Apr 11 18:46:21 2011 [TM][I]: tm_mv.sh: ERROR: Command "mv /srv/cloud/var/600/images /srv/vm/600/images" failed.
Mon Apr 11 18:46:21 2011 [TM][I]: tm_mv.sh: ERROR: mv: cannot stat `/srv/cloud/var/600/images': No such file or directory
Mon Apr 11 18:46:21 2011 [TM][E]: Error excuting image transfer script: mv: cannot stat `/srv/cloud/var/600/images': No such file or directory
Mon Apr 11 18:46:21 2011 [DiM][I]: New VM state is FAILED
For some reason, onevm thinks the images are located at /srv/cloud/var/600/images. The images are located in /srv/vm/<VID>/images/. The create and delete options for onevm know how to find them there, but for some reason, the stop and shutdown options keep looking in the wrong place.
I could manually create a link to the images directory to solve this, but with over 600 vm's, that's a bit painful, and we would have to remember to re-create the link with every new vm.
Does anyone know where this location is set for onevm stop and onevm shutdown, as it is not in oned.conf or the env?
The tm_mv.sh script is accepting the source and destination locations via stdin, but I don't know what is calling the tm_mv.sh script.
Thanks,
John Nyhuis,
jnyhuis at rim.com
Infrastructure Engineering Specialist
Desk: (813)-60556
External: (425)-208-0556
Desk #2073
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
More information about the Users
mailing list