vdo icon indicating copy to clipboard operation
vdo copied to clipboard

vdoprepareforlvm Throw out of range error

Open wloot opened this issue 2 years ago • 2 comments

Hello, I have vdoprepareforlvm failed when upgrading to rhel 9. I found out it's the following command caused by checking logs.

# /usr/libexec/vdoprepareforlvm --check /dev/sda1
vdoprepareforlvm: Unexpected error accessing '/dev/sda1' : VDO Status: Out of range

where /dev/sda1 is a BIOS boot partition for booting with legacy bios on GPT disk, with 1mb space.

wloot avatar May 22 '22 02:05 wloot

where /dev/sda1 is a BIOS boot partition for booting with legacy bios on GPT disk, with 1mb space.

For safety any device that is categorized, based on the upgrade scanning, nor more specifically than as a block device is checked for being a VDO.

As part of conversion a VDO has its metadata shifted. In order to check whether the device is a VDO and its state as to pre- or post-conversion vdoprepareforlvm --check attempts to read both possible locations for the metadata. Given that the shift is 1 MB the error seen is almost certainly because it was not considered that such a small device would be encountered.

jshimkus-rh avatar May 23 '22 20:05 jshimkus-rh

Yes, I can expect it. Perhaps skiping devices with a specific guid when checking could be a workaround, in this case 21686148-6449-6E6F-744E-65656445464 for the bios boot partition.

wloot avatar May 23 '22 23:05 wloot