How to reset vm from unknown state?

Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state. Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5 Thenks. Arman On Jul 25, 2014 7:47 PM, "Brian Proffitt" <bproffit@redhat.com> wrote:

----- Original Message -----
From: "Arman Khalatyan" <arm2arm@gmail.com> To: "users" <users@ovirt.org> Sent: Friday, July 25, 2014 9:37:55 PM Subject: [ovirt-users] How to reset vm from unknown state?
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state. Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman On Jul 25, 2014 7:47 PM, "Brian Proffitt" < bproffit@redhat.com > wrote:
vm in 'unknown' usually means the host it is running on is in 'non responsive' state. i suggest to understand what is wrong with the host, why is it not responding? (vds stuck? connection issues?) worst case you can try and restart the host, once it will return to UP the vm will be free again. let me know if it does not help Omer.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi Arman, you can do this: 1: migrate all the running VMs out of the host on which the VM with unknown state is 2: reboot the host 3: if you have power management configured than it should be it 4: if not than you need to do a manual fence (e.g. in webadmin in hosts tab right click a host and pick "confirm host has been rebooted") 3/4 should turn the VM into the down state. Tomas ----- Original Message -----
From: "Arman Khalatyan" <arm2arm@gmail.com> To: "users" <users@ovirt.org> Sent: Friday, July 25, 2014 8:37:55 PM Subject: [ovirt-users] How to reset vm from unknown state?
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state. Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman On Jul 25, 2014 7:47 PM, "Brian Proffitt" < bproffit@redhat.com > wrote:
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Jul 25, 2014, at 20:37 , Arman Khalatyan <arm2arm@gmail.com> wrote:
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state.
is the host running that VM ok? It seems like it's not. Can you reboot it? (supposing it may be blocked on storage access, or stale NFS handle if NFS, etc…) Thanks, michal
Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman
On Jul 25, 2014 7:47 PM, "Brian Proffitt" <bproffit@redhat.com> wrote: _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Thank you for Ideas, To clarify the situation: I have a cluster with 2 hosts:C1 and C2.With stroage on ZFS(d1) and XFS(d2) both are with nfs mounted. d1 was away all and VMs where paused or unknown mode. After recovery d1 one VM with CentOS 7 didnot come back it stay in ovirt-engine gut always in "unknown state"(with icon ?). I just tested to be sure the bare metal hosts are ok: Movind around some VMs from c1->c2 and disks d1-d2 . I just rebooted hosts using maintenance mode+reinstall, then reboot by IPMI. seems to me database of ovirt did not recognize that this VMhost needs to be in offline or down state. Over the web-gui I am not able to delete or reboot the VM. Can I somehow change VM state to down in the database? Is it normal practice? Thanks, Arman. On Mon, Jul 28, 2014 at 2:40 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Jul 25, 2014, at 20:37 , Arman Khalatyan <arm2arm@gmail.com> wrote:
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state.
is the host running that VM ok? It seems like it's not. Can you reboot it? (supposing it may be blocked on storage access, or stale NFS handle if NFS, etc…)
Thanks, michal
Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman
On Jul 25, 2014 7:47 PM, "Brian Proffitt" <bproffit@redhat.com> wrote: _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi Arman I met some problem like u because of firewall. Then I shutdown iptables and VMs' state are normal . Hope to help u. -----邮件原件----- 发件人: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] 代表 Arman Khalatyan 发送时间: 2014年7月29日 0:47 收件人: Michal Skrivanek 抄送: users 主题: Re: [ovirt-users] How to reset vm from unknown state? Thank you for Ideas, To clarify the situation: I have a cluster with 2 hosts:C1 and C2.With stroage on ZFS(d1) and XFS(d2) both are with nfs mounted. d1 was away all and VMs where paused or unknown mode. After recovery d1 one VM with CentOS 7 didnot come back it stay in ovirt-engine gut always in "unknown state"(with icon ?). I just tested to be sure the bare metal hosts are ok: Movind around some VMs from c1->c2 and disks d1-d2 . I just rebooted hosts using maintenance mode+reinstall, then reboot by IPMI. seems to me database of ovirt did not recognize that this VMhost needs to be in offline or down state. Over the web-gui I am not able to delete or reboot the VM. Can I somehow change VM state to down in the database? Is it normal practice? Thanks, Arman. On Mon, Jul 28, 2014 at 2:40 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Jul 25, 2014, at 20:37 , Arman Khalatyan <arm2arm@gmail.com> wrote:
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state.
is the host running that VM ok? It seems like it's not. Can you reboot it? (supposing it may be blocked on storage access, or stale NFS handle if NFS, etc…)
Thanks, michal
Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman
On Jul 25, 2014 7:47 PM, "Brian Proffitt" <bproffit@redhat.com> wrote: _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

I try to disable iptables same situation. Yes Ovirt-engine on separate host was restarted. No change of status of this one vm. Other two vms are ok. a. On Tue, Jul 29, 2014 at 6:11 AM, xiec.fnst@cn.fujitsu.com <xiec.fnst@cn.fujitsu.com> wrote:
Hi Arman I met some problem like u because of firewall. Then I shutdown iptables and VMs' state are normal . Hope to help u.
-----邮件原件----- 发件人: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] 代表 Arman Khalatyan 发送时间: 2014年7月29日 0:47 收件人: Michal Skrivanek 抄送: users 主题: Re: [ovirt-users] How to reset vm from unknown state?
Thank you for Ideas, To clarify the situation: I have a cluster with 2 hosts:C1 and C2.With stroage on ZFS(d1) and XFS(d2) both are with nfs mounted. d1 was away all and VMs where paused or unknown mode. After recovery d1 one VM with CentOS 7 didnot come back it stay in ovirt-engine gut always in "unknown state"(with icon ?). I just tested to be sure the bare metal hosts are ok: Movind around some VMs from c1->c2 and disks d1-d2 . I just rebooted hosts using maintenance mode+reinstall, then reboot by IPMI. seems to me database of ovirt did not recognize that this VMhost needs to be in offline or down state. Over the web-gui I am not able to delete or reboot the VM. Can I somehow change VM state to down in the database? Is it normal practice?
Thanks, Arman.
On Mon, Jul 28, 2014 at 2:40 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Jul 25, 2014, at 20:37 , Arman Khalatyan <arm2arm@gmail.com> wrote:
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state.
is the host running that VM ok? It seems like it's not. Can you reboot it? (supposing it may be blocked on storage access, or stale NFS handle if NFS, etc…)
Thanks, michal
Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman
On Jul 25, 2014 7:47 PM, "Brian Proffitt" <bproffit@redhat.com> wrote: _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Ok, The direct change in the database did the trick. engine=# update vm_dynamic set status = 0 where vm_guid =(select vm_guid from vm_static where vm_name = 'myvm'); after this I can start and stop from gui. Thanks, Arman. On Tue, Jul 29, 2014 at 9:34 AM, Arman Khalatyan <arm2arm@gmail.com> wrote:
I try to disable iptables same situation. Yes Ovirt-engine on separate host was restarted. No change of status of this one vm. Other two vms are ok. a.
On Tue, Jul 29, 2014 at 6:11 AM, xiec.fnst@cn.fujitsu.com <xiec.fnst@cn.fujitsu.com> wrote:
Hi Arman I met some problem like u because of firewall. Then I shutdown iptables and VMs' state are normal . Hope to help u.
-----邮件原件----- 发件人: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] 代表 Arman Khalatyan 发送时间: 2014年7月29日 0:47 收件人: Michal Skrivanek 抄送: users 主题: Re: [ovirt-users] How to reset vm from unknown state?
Thank you for Ideas, To clarify the situation: I have a cluster with 2 hosts:C1 and C2.With stroage on ZFS(d1) and XFS(d2) both are with nfs mounted. d1 was away all and VMs where paused or unknown mode. After recovery d1 one VM with CentOS 7 didnot come back it stay in ovirt-engine gut always in "unknown state"(with icon ?). I just tested to be sure the bare metal hosts are ok: Movind around some VMs from c1->c2 and disks d1-d2 . I just rebooted hosts using maintenance mode+reinstall, then reboot by IPMI. seems to me database of ovirt did not recognize that this VMhost needs to be in offline or down state. Over the web-gui I am not able to delete or reboot the VM. Can I somehow change VM state to down in the database? Is it normal practice?
Thanks, Arman.
On Mon, Jul 28, 2014 at 2:40 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Jul 25, 2014, at 20:37 , Arman Khalatyan <arm2arm@gmail.com> wrote:
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state.
is the host running that VM ok? It seems like it's not. Can you reboot it? (supposing it may be blocked on storage access, or stale NFS handle if NFS, etc…)
Thanks, michal
Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman
On Jul 25, 2014 7:47 PM, "Brian Proffitt" <bproffit@redhat.com> wrote: _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------050908040506030004030603 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 25/07/14 15:37, Arman Khalatyan wrote:
Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state. Are there way to reset state of vm??? I am using ovirt 3.4.0-1 with centos6.5
Thenks. Arman
On Jul 25, 2014 7:47 PM, "Brian Proffitt" <bproffit@redhat.com <mailto:bproffit@redhat.com>> wrote:
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Did you tried restarting ovirt-engine service? --------------050908040506030004030603 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">On 25/07/14 15:37, Arman Khalatyan wrote:<br> </div> <blockquote cite="mid:CAAqDm6ZM6U3PiGGz9FDYPwwtjqX_nAorh2fQxi1VEH_s-2bfGw@mail.gmail.com" type="cite"> <p>Hi. My nfs storage got problems and one of the vms went to unknown state. Other vms on the same storage were back to normal state.<br> Are there way to reset state of vm???<br> I am using ovirt 3.4.0-1 with centos6.5</p> <p>Thenks.<br> Arman</p> <div class="gmail_quote">On Jul 25, 2014 7:47 PM, "Brian Proffitt" <<a moz-do-not-send="true" href="mailto:bproffit@redhat.com">bproffit@redhat.com</a>> wrote:<br type="attribution"> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> Did you tried restarting ovirt-engine service?<br> </body> </html> --------------050908040506030004030603--
participants (6)
-
Arman Khalatyan
-
Federico Alberto Sayd
-
Michal Skrivanek
-
Omer Frenkel
-
Tomas Jelinek
-
xiec.fnst@cn.fujitsu.com