Proxmox VM Corruption

caglayan

New Member
Feb 22, 2021
6
0
1
24
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).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!