Broken vm filesystem.

STrike2020

New Member
Jan 26, 2020
1
0
1
30
Hello everybody,

i tried to reduce the filesystem. But very faulty.

First i tried it with the "resize" option in the container itself.

But instead of shrinking it, it was at the end more then before.

Then i tried the command:
125 lvreduce --size 300G /dev/pve/vm-101-disk-0

I hope someone can help me to get the system to run, or just the way that I can mount it.

What can I do? I thought reducing would be easy as the examples showed me, but it wasn´t.
And I´m not in matter of filesystem´s that I dont want to broke more then I already have done.

Any ideas how I can repair it?

lvdisplay of broken vm :

--- Logical volume ---
LV Path /dev/pve/vm-101-disk-0
LV Name vm-101-disk-0
VG Name pve
LV UUID S50IQF-r2s6-ufr4-Drej-lGR0-qBwb-F4RZS0
LV Write Access read/write
LV Creation host, time pve, 2019-09-01 17:02:35 +0200
LV Pool name data
WARNING: LV pve/vm-101-disk-0 maps <601.40 GiB while the size is only 303.00 GiB.
LV Status available
# open 0
LV Size 303.00 GiB
Mapped size 100.00%
Current LE 77568
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:8


#########################################

root@pve:~# fdisk -l /dev/mapper/pve-vm--101--disk--0
Disk /dev/mapper/pve-vm--101--disk--0: 303 GiB, 325343772672 bytes, 635437056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes

before that it was more than one TB.
 
Last edited:

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!