Virtual machine Mobile Disk Midway Server power outage, resulting in disk lock processing methods

Source: Internet
Author: User
Tags psql

You can modify the database by following the steps below

1, ovirt into the database
[[email protected] ~]# su postgres into the database
bash-4.2$ Psql
Could not change directory to "/root"
Psql (9.2.23)
Type ' help ' for help.

2, postgres=# \c engine switch All engine library
Connected to database "engine" as user "Postgres".
engine=# select *from Job; Execute Query
job_id |                  Action_type | Description |               Status | owner_id | Visible |
start_time |      End_time |            Last_update_time | correlation_id | is_external | is_auto_cleared | engine_session_seq_id
--------------------------------------+----------------+-----------------------------------------------+------- --+--------------------------------------+---------+-----
-----------------------+----------+----------------------------+--------------------------------------+-------- -----+-----------------+-----------------------
95fa3391-6977-4831-98c3-271f7190d51c | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | STARTED | 59e01206-011b-0136-0358-0000000001b2 | T | 2017
-10-25 22:35:30.489+08 | | 2017-10-25 23:17:46.181+08 | 181a6153-484a-45a4-871c-b2730546ab9e | f |                   T | 275
88332f83-428c-4245-80d6-0a5b3f95f879 | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | STARTED | 59e01206-011b-0136-0358-0000000001b2 | T | 2017
-10-25 22:56:51.72+08 | | 2017-10-25 23:17:46.204+08 | cd32c5c2-0086-4fae-bab1-1bb4b3aca444 | f |                   T | 275
5B23EA48-A9E9-4EC9-A581-1A5735A54DCF | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | STARTED | 59e01206-011b-0136-0358-0000000001b2 | T | 2017
-10-25 22:55:29.521+08 | | 2017-10-25 23:17:49.86+08 | 7d1b72e8-e93d-47e2-912f-c5d26ed78029 | f |                   T | 275
5ef82c6d-b3ce-4bda-9d77-b711d44b1b29 | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | STARTED | 59e01206-011b-0136-0358-0000000001b2 | T | 2017
-10-25 22:55:48.659+08 | | 2017-10-25 23:17:46.24+08 | 6042D610-BA99-4817-968E-BEE9F01BB9FC | f |                   T | 275
(4 rows)

3. engine=# Update job set status= ' finished '; Change to Finished status
UPDATE 4
engine=# Select *from Job;
job_id |                  Action_type |  Description |               Status | owner_id | Visible |
start_time |      End_time |            Last_update_time | correlation_id | is_external | is_auto_cleared | engine_session_seq_id
--------------------------------------+----------------+-----------------------------------------------+------- ---+--------------------------------------+---------+----
------------------------+----------+----------------------------+--------------------------------------+------- ------+-----------------+-----------------------
95fa3391-6977-4831-98c3-271f7190d51c | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | Finished | 59e01206-011b-0136-0358-0000000001b2 | T | 201
7-10-25 22:35:30.489+08 | | 2017-10-25 23:17:46.181+08 | 181a6153-484a-45a4-871c-b2730546ab9e | f |                   T | 275
88332f83-428c-4245-80d6-0a5b3f95f879 | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | Finished | 59e01206-011b-0136-0358-0000000001b2 | T | 201
7-10-25 22:56:51.72+08 | | 2017-10-25 23:17:46.204+08 | cd32c5c2-0086-4fae-bab1-1bb4b3aca444 | f |                   T | 275
5B23EA48-A9E9-4EC9-A581-1A5735A54DCF | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | Finished | 59e01206-011b-0136-0358-0000000001b2 | T | 201
7-10-25 22:55:29.521+08 | | 2017-10-25 23:17:49.86+08 | 7d1b72e8-e93d-47e2-912f-c5d26ed78029 | f |                   T | 275
5ef82c6d-b3ce-4bda-9d77-b711d44b1b29 | Moveorcopydisk | Moving Disk defined_disk0 from Data3 to Data2 | Finished | 59e01206-011b-0136-0358-0000000001b2 | T | 201
7-10-25 22:55:48.659+08 | | 2017-10-25 23:17:46.24+08 | 6042D610-BA99-4817-968E-BEE9F01BB9FC | f |                   T | 275
(4 rows)
Attempt to start the virtual machine after modification, prompting the disk to be moved or copied
Cond.....

Virtual machine Mobile Disk Midway Server power outage, resulting in disk lock processing methods

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.