summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/108/other/2909
blob: 265ca1d4fd65def687ba6ee886233ec2d38d7177 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
graphic: 0.888
device: 0.830
semantic: 0.592
other: 0.483
performance: 0.469
vnc: 0.417
debug: 0.400
PID: 0.365
KVM: 0.344
boot: 0.336
permissions: 0.314
socket: 0.273
network: 0.167
files: 0.042

Corrupt qcow2 images with broken bitmap unfixable
Description of problem:
During a backup of a VM (via bitmaps), the disk of the VM/Snapshot went out of space.
The VM was stopped, leaving the image in a bad state.

But now when trying to repair it, it was stuck:
```
# qemu-img check -r all /dev/mapper/e1d2ff33--c3fd--4c1a--bcd1--2047e4efc362-efbd8056--720a--47b6--bede--4325d576ffb9
qemu-img: Could not open '/dev/mapper/e1d2ff33--c3fd--4c1a--bcd1--2047e4efc362-efbd8056--720a--47b6--bede--4325d576ffb9': Bitmap '' doesn't satisfy the constraints
```

But if you want to remove the bitmap:
```
# qemu-img bitmap --remove /dev/mapper/e1d2ff33--c3fd--4c1a--bcd1--2047e4efc362-efbd8056--720a--47b6--bede--4325d576ffb9 ''
qemu-img: Could not open '/dev/mapper/e1d2ff33--c3fd--4c1a--bcd1--2047e4efc362-efbd8056--720a--47b6--bede--4325d576ffb9': qcow2: Image is corrupt; cannot be opened read/write
```

It seems like qemu-img check needs some option to clear invalid bitmaps. So the image can be repaired including dropping the invalid bitmap.