My Oracle Support Banner

OLVM: Fail to start VM if any LV of images in the Block Storage Domain is missing (Doc ID 2900745.1)

Last updated on APRIL 12, 2024

Applies to:

Linux OS - Version Oracle Linux 7.6 with Unbreakable Enterprise Kernel [4.14.35] and later
Linux x86-64

Symptoms

Under a block Storage Domain, there is an image ecc6b56d-87a3-444c-b838-e24014fd1878 with a snapshot 02c6a397-09d4-4d77-9e93-e8aade5be901 on it:
# vdsm-tool dump-volume-chains ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3

Images volume chains (base volume first)

image: ecc6b56d-87a3-444c-b838-e24014fd1878

- 533357e9-71e2-4f61-9675-045ae56a5381
status: OK, voltype: INTERNAL, format: RAW, legality: LEGAL, type: PREALLOCATED, capacity: 10737418240, truesize: 10737418240

- 02c6a397-09d4-4d77-9e93-e8aade5be901
status: OK, voltype: LEAF, format: COW, legality: LEGAL, type: SPARSE, capacity: 10737418240, truesize: 1073741824
(snip)

# lvscan
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/metadata' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/outbox' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/xleases' [1.00 GiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/leases' [2.00 GiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/ids' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/inbox' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/master' [1.00 GiB] inherit
inactive '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/f416ffa9-2af7-4e41-95bf-ffff503b8d48' [128.00 MiB] inherit
inactive '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/b14a49f3-b319-460f-b77f-de86a97e5714' [128.00 MiB] inherit
inactive '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/533357e9-71e2-4f61-9675-045ae56a5381' [10.00 GiB] inherit
inactive '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/02c6a397-09d4-4d77-9e93-e8aade5be901' [1.00 GiB] inherit
(snip)

# ll /rhev/data-center/mnt/blockSD/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/images/ecc6b56d-87a3-444c-b838-e24014fd1878
total 0
lrwxrwxrwx 1 vdsm kvm 78 Oct 5 13:00 02c6a397-09d4-4d77-9e93-e8aade5be901 -> /dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/02c6a397-09d4-4d77-9e93-e8aade5be901
lrwxrwxrwx 1 vdsm kvm 78 Oct 5 12:52 533357e9-71e2-4f61-9675-045ae56a5381 -> /dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/533357e9-71e2-4f61-9675-045ae56a5381

If the LV 533357e9-71e2-4f61-9675-045ae56a5381 of this image was deleted by mistake:
# vdsm-tool dump-volume-chains ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3
Images volume chains (base volume first)

image: ecc6b56d-87a3-444c-b838-e24014fd1878

Error: no volume with a parent volume Id _BLANK_UUID found e.g: (a<-b), (b<-c)

Unordered volumes and children:

- 533357e9-71e2-4f61-9675-045ae56a5381 <- 02c6a397-09d4-4d77-9e93-e8aade5be901
status: OK, voltype: LEAF, format: COW, legality: LEGAL, type: SPARSE, capacity: 10737418240, truesize: 1073741824
(snip)

# lvscan
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/metadata' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/outbox' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/xleases' [1.00 GiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/leases' [2.00 GiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/ids' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/inbox' [128.00 MiB] inherit
ACTIVE '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/master' [1.00 GiB] inherit
inactive '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/f416ffa9-2af7-4e41-95bf-ffff503b8d48' [128.00 MiB] inherit
inactive '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/b14a49f3-b319-460f-b77f-de86a97e5714' [128.00 MiB] inherit
inactive '/dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/02c6a397-09d4-4d77-9e93-e8aade5be901' [1.00 GiB] inherit
(snip)

# ll /rhev/data-center/mnt/blockSD/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/images/ecc6b56d-87a3-444c-b838-e24014fd1878
total 0
lrwxrwxrwx 1 vdsm kvm 78 Oct 5 13:00 02c6a397-09d4-4d77-9e93-e8aade5be901 -> /dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/02c6a397-09d4-4d77-9e93-e8aade5be901
lrwxrwxrwx 1 vdsm kvm 78 Oct 5 12:52 533357e9-71e2-4f61-9675-045ae56a5381 -> /dev/ff9b88ca-89be-4437-b4b0-1cc2a9efa7b3/533357e9-71e2-4f61-9675-045ae56a5381

At this stage no VM with image(s) of same Block Storage Domain can start up due to error:
2022-10-04 17:07:07,399-0300 WARN (vm/a3ab30f4) [storage.LVM] lv: 533357e9-71e2-4f61-9675-045ae56a5381 not found in lvs vg: ecc6b56d-87a3-444c-b838-e24014fd1878 response (lvm:856)
2022-10-04 17:07:07,401-0300 ERROR (vm/a3ab30f4) [storage.Dispatcher] FINISH getVolumeSize error=Logical volume does not exist: ('ecc6b56d-87a3-444c-b838-e24014fd1878/533357e9-71e2-4f61-9675-045ae56a5381',) (dispatcher:83)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.