Unlock disk on oVirt 4.2

Working daily with oVirt, it’s possible that you get some disk in block state, maybe when you create it, migrating or some, like in the image below (“Bloqueado” means “Blocked”).

Note: This method its recommended when the scope of unlock the disk, its to delete it

jumperveiasa - copia.png

To fix it, you need to go to the HostedEngine, load the database enviroment variables and execute the script dbutils alocated in the directory /usr/share/ovirt-engine/setup/dbutils and you need to do this as root user.

The script need the type of the resource that you want unlock “disk” in this case, and the ID of the resource 7ef1845c-b69d-4c9c-8be1-a805023e9592 in this case.

source /etc/ovirt-engine/engine.conf.d/10-setup-database.conf
cd /usr/share/ovirt-engine/setup/dbutils
./unlock_entity.sh -t disk 7ef1845c-b69d-4c9c-8be1-a805023e9592

##########################################
CAUTION, this operation may lead to data corruption and should be used with care. Please contact support prior to running this command
##########################################

Are you sure you want to proceed? [y/n]
y
select fn_db_unlock_disk('7ef1845c-b69d-4c9c-8be1-a805023e9592');


INSERT 0 1
unlock disk 7ef1845c-b69d-4c9c-8be1-a805023e9592 completed successfully.

Making this, you will get your disk unlocked.

jumperveiasa-solved - copia.png

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s