vdsm icon indicating copy to clipboard operation
vdsm copied to clipboard

Bogus LVM warning in reduce volume after live merge

Open nirs opened this issue 2 years ago • 0 comments

When reducing a volume after live merge, lvm log warnings abut possible data corruption. This warning is not interesting since we measure the image offset before reducing, and the volume is internal.

2022-05-23 12:29:04,160+0300 WARN  (tasks/9) [storage.lvm] Command ['/usr/sbin/lvm', 'lvreduce', '--devices', '/dev/mapper/0QEMU_QEMU_HARDDISK_data-fc-01,/dev/mapper/0QEMU_QEMU_HARDDISK_data-fc-02,/dev/mapper/0QEMU_QEMU_HARDDISK_data-fc-03', '--config', 'devices {  preferred_names=["^/dev/mapper/"]  ignore_suspended_devices=1  write_cache_state=0  disable_after_error_count=3    hints="none"  obtain_device_list_from_udev=0 } global {  prioritise_write_locks=1  wait_for_locks=1  use_lvmpolld=1 } backup {  retain_min=50  retain_days=0 }', '--autobackup', 'n', '--force', '--size', '128m', 'bafd0f16-9aba-4f9f-ba90-46d3b8a29157/cd981010-ac48-49e1-b28b-cbde06c085bf'] succeeded with warnings: ['  WARNING: Reducing active and open logical volume to 128.00 MiB.', '  THIS MAY DESTROY YOUR DATA (filesystem etc.)'] (lvm:358)

Fix:

  • Suppress the warning using our LVMRunner suppression list

  • Note: this seems to be 2 warnings:

    '  WARNING: Reducing active and open logical volume to 128.00 MiB.'
    '  THIS MAY DESTROY YOUR DATA (filesystem etc.)'
    

nirs avatar May 23 '22 09:05 nirs