# Как устранить зависшие задания, ВМ, диски и шаблоны?

Прежде всего необходимо подключиться к ВМ менеджера виртуализации HOSTVM, например, по *ssh*.

Для устранения зависших ***заданий*** выполните:

```
sh /usr/share/ovirt-engine/setup/dbutils/taskcleaner.sh -R -o -A
```

Для устранения зависших дисков, виртуальных машин, шаблонов:

```
sh /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh -c -t disk -r
```

Для разблокировки всех сущностей:

```
sh /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh -t all
```

Если выполненные шаги не дали результата, перезагрузите сервис управляющей машины:&#x20;

```
systemctl restart ovirt-engine
```

либо перезагрузите управляющую машину целиком.

В случае, если шаблоны, снапшоты или иные сущности были созданы с помощью стороннего ПО, например, внешних СРК (пр. Кибер Бэкап), перезагрузите машину, на которой работает данное ПО.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.pvhostvm.ru/hostvm-server/rukovodstvo-po-administrirovaniyu/chasto-zadavaemye-voprosy/virtualnye-mashiny-i-shablony/kak-ustranit-zavisshie-zadaniya-vm-diski-i-prochee.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
