Proxmox VM Corruption

caglayan

New Member
Feb 22, 2021
6
0
1
25
Hi. Yesterday i wanted to increase my swap size. Because of that i issued that commands:


Code:
lvreduce --size -64G /dev/vg0/data
lvm lvresize /dev/vg0/swap -L +64G
All the commands run without errors. But now i cant access my vm's. I want to check images. It throw some I/O errors.

Code:
ERROR: I/O error in check_refcounts_l2
qemu-img: Check failed: Input/output error

I need to fix this corruption but i couldn't find any guide how to do it. How can i fix this corruption?
 
the man page of lvreduce clearly states:

Code:
lvreduce allows you to reduce the size of a logical volume. Be careful when reducing a logical volume's size, because data in the reduced part is lost!!!
You should therefore ensure that any filesystem on the volume is resized before running lvreduce so that the extents that are to be removed are not in use.

did you ensure that?
 
Yes. But i am using 300 gb of my 910 gb raid. And ı only reduced 64 gb. Why that happened? Do I need fresh installation?
 
if you reduced your data volume without first ensuring that those parts are unused, then yes, anything residing on that volume is now potentially corrupt. how to get out of this depends on what kind of data is stored there (is it possible to verify that it is still okay? if not, restore from a backup).