
Hi all, how can I mark a VM as shut down when the status of the VM is "?"? There is no qemu-kvm process for this VM on the node. But I can't set the node to maintenance mode, because there is a very important VM running. Best Regards, Michael

if the vm is really down, you whould find this helpful [root@portal dbscripts]# ./unlock_entity.sh -h Usage: ./unlock_entity.sh [options] [ENTITIES] -h - This help text. -v - Turn on verbosity (WARNING: lots of output) -l LOGFILE - The logfile for capturing output (def. ) -s HOST - The database servername for the database (def. localhost) -p PORT - The database port for the database (def. 5432) -u USER - The username for the database (def. engine) -d DATABASE - The database name (def. engine) -t TYPE - The object type {vm | template | disk | snapshot} -r - Recursive, unlocks all disks under the selected vm/template. -q - Query db and display a list of the locked entites. ENTITIES - The list of object names in case of vm/template, UUIDs in case of a disk NOTE: This utility access the database and should have the corresponding credentals. In case that a password is used to access the database PGPASSWORD or PGPASSFILE should be set. Example: $ PGPASSWORD=xxxxxx ./unlock_entity.sh -t disk -q [root@portal dbscripts]# pwd /usr/share/ovirt-engine/dbscripts [root@portal dbscripts]# Am 25.08.2015 um 07:33 schrieb Michael Wagenknecht:
Hi all, how can I mark a VM as shut down when the status of the VM is "?"? There is no qemu-kvm process for this VM on the node. But I can't set the node to maintenance mode, because there is a very important VM running.
Best Regards, Michael _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "InterNetX - Juergen Gotteswinter" <jg@internetx.com> To: "Michael Wagenknecht" <wagenknecht@fuh-e.de>, users@ovirt.org Sent: Tuesday, August 25, 2015 8:48:55 PM Subject: Re: [ovirt-users] vm status
if the vm is really down, you whould find this helpful
This will work only if the VM status is LOCKED for any other status, it will do nothing ....
[root@portal dbscripts]# ./unlock_entity.sh -h Usage: ./unlock_entity.sh [options] [ENTITIES]
-h - This help text. -v - Turn on verbosity (WARNING: lots of output) -l LOGFILE - The logfile for capturing output (def. ) -s HOST - The database servername for the database (def. localhost) -p PORT - The database port for the database (def. 5432) -u USER - The username for the database (def. engine) -d DATABASE - The database name (def. engine) -t TYPE - The object type {vm | template | disk | snapshot} -r - Recursive, unlocks all disks under the selected vm/template. -q - Query db and display a list of the locked entites. ENTITIES - The list of object names in case of vm/template, UUIDs in case of a disk
NOTE: This utility access the database and should have the corresponding credentals.
In case that a password is used to access the database PGPASSWORD or PGPASSFILE should be set.
Example: $ PGPASSWORD=xxxxxx ./unlock_entity.sh -t disk -q
[root@portal dbscripts]# pwd /usr/share/ovirt-engine/dbscripts [root@portal dbscripts]#
Am 25.08.2015 um 07:33 schrieb Michael Wagenknecht:
Hi all, how can I mark a VM as shut down when the status of the VM is "?"? There is no qemu-kvm process for this VM on the node. But I can't set the node to maintenance mode, because there is a very important VM running.
Best Regards, Michael _______________________________________________ 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

Hi, I had similar problem. I solved it by changing the VM status in engine database. Best Regards, Peter W dniu 27.08.2015 o 10:03, Eli Mesika pisze:
----- Original Message -----
From: "InterNetX - Juergen Gotteswinter" <jg@internetx.com> To: "Michael Wagenknecht" <wagenknecht@fuh-e.de>, users@ovirt.org Sent: Tuesday, August 25, 2015 8:48:55 PM Subject: Re: [ovirt-users] vm status
if the vm is really down, you whould find this helpful This will work only if the VM status is LOCKED for any other status, it will do nothing ....
[root@portal dbscripts]# ./unlock_entity.sh -h Usage: ./unlock_entity.sh [options] [ENTITIES]
-h - This help text. -v - Turn on verbosity (WARNING: lots of output) -l LOGFILE - The logfile for capturing output (def. ) -s HOST - The database servername for the database (def. localhost) -p PORT - The database port for the database (def. 5432) -u USER - The username for the database (def. engine) -d DATABASE - The database name (def. engine) -t TYPE - The object type {vm | template | disk | snapshot} -r - Recursive, unlocks all disks under the selected vm/template. -q - Query db and display a list of the locked entites. ENTITIES - The list of object names in case of vm/template, UUIDs in case of a disk
NOTE: This utility access the database and should have the corresponding credentals.
In case that a password is used to access the database PGPASSWORD or PGPASSFILE should be set.
Example: $ PGPASSWORD=xxxxxx ./unlock_entity.sh -t disk -q
[root@portal dbscripts]# pwd /usr/share/ovirt-engine/dbscripts [root@portal dbscripts]#
Am 25.08.2015 um 07:33 schrieb Michael Wagenknecht:
Hi all, how can I mark a VM as shut down when the status of the VM is "?"? There is no qemu-kvm process for this VM on the node. But I can't set the node to maintenance mode, because there is a very important VM running.
Best Regards, Michael _______________________________________________ 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
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi, thank you very much for your infos. We had trouble with the Storage and the Datacenter, so we export the vms, delete the old one and made a new one. Now everything is working fine. Best Regards, Michael Am 27.08.2015 11:45, schrieb Piotr Szubiakowski:
Hi, I had similar problem. I solved it by changing the VM status in engine database.
Best Regards, Peter
W dniu 27.08.2015 o 10:03, Eli Mesika pisze:
----- Original Message -----
From: "InterNetX - Juergen Gotteswinter" <jg@internetx.com> To: "Michael Wagenknecht" <wagenknecht@fuh-e.de>, users@ovirt.org Sent: Tuesday, August 25, 2015 8:48:55 PM Subject: Re: [ovirt-users] vm status
if the vm is really down, you whould find this helpful This will work only if the VM status is LOCKED for any other status, it will do nothing ....
[root@portal dbscripts]# ./unlock_entity.sh -h Usage: ./unlock_entity.sh [options] [ENTITIES]
-h - This help text. -v - Turn on verbosity (WARNING: lots of output) -l LOGFILE - The logfile for capturing output (def. ) -s HOST - The database servername for the database (def. localhost) -p PORT - The database port for the database (def. 5432) -u USER - The username for the database (def. engine) -d DATABASE - The database name (def. engine) -t TYPE - The object type {vm | template | disk | snapshot} -r - Recursive, unlocks all disks under the selected vm/template. -q - Query db and display a list of the locked entites. ENTITIES - The list of object names in case of vm/template, UUIDs in case of a disk
NOTE: This utility access the database and should have the corresponding credentals.
In case that a password is used to access the database PGPASSWORD or PGPASSFILE should be set.
Example: $ PGPASSWORD=xxxxxx ./unlock_entity.sh -t disk -q
[root@portal dbscripts]# pwd /usr/share/ovirt-engine/dbscripts [root@portal dbscripts]#
Am 25.08.2015 um 07:33 schrieb Michael Wagenknecht:
Hi all, how can I mark a VM as shut down when the status of the VM is "?"? There is no qemu-kvm process for this VM on the node. But I can't set the node to maintenance mode, because there is a very important VM running.
Best Regards, Michael _______________________________________________ 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
_______________________________________________ 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

On Tue, Aug 25, 2015 at 8:33 AM, Michael Wagenknecht <wagenknecht@fuh-e.de> wrote:
Hi all, how can I mark a VM as shut down when the status of the VM is "?"? There is no qemu-kvm process for this VM on the node. But I can't set the node to maintenance mode, because there is a very important VM running.
Best Regards, Michael _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
usually vms are in 'unknown' state when the host is 'non-responsive' and the engine cannot determine the real status of the vm. what is the current status of the host?
participants (5)
-
Eli Mesika
-
InterNetX - Juergen Gotteswinter
-
Michael Wagenknecht
-
Omer Frenkel
-
Piotr Szubiakowski