You are not logged in.

#1 2024-01-09 18:49:33

mentalAdventurer
Member
Registered: 2023-12-30
Posts: 3

[SOLVED] can't resize logical volume in lvm

I'm trying to reduce the size of my logical volume.
I closely followed the instruction of the arch wiki.
I have already tried several things but think it comes down to one problem.
Lvm does seem to report the wrong file system size.
(I have already resize the file system with resize2fs)

lvs
 LV   VG           Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  test GaiaVolGroup -wi-a----- <10.92t                                                    
sudo lvresize -L -500M GaiaVolGroup/test
  File system ext4 found on GaiaVolGroup/test.
  File system size (9.00 TiB) is larger than the requested size (937.57 GiB).
  File system reduce is required (see resize2fs or --resizefs.) 

"requested size" in the response is completely of.
It get even more strange when i try to explicitly set the size:

sudo lvresize -L 9T GaiaVolGroup/test

 

  File system ext4 found on GaiaVolGroup/test.
  File system size (9.00 TiB) is larger than the requested size (1.00 TiB).
  File system reduce is required (see resize2fs or --resizefs.) 

I don't know what the problem is?
and i can't find an answer sad

Last edited by mentalAdventurer (2024-01-09 20:25:23)

Offline

#2 2024-01-09 19:56:10

frostschutz
Member
Registered: 2013-11-15
Posts: 1,421

Re: [SOLVED] can't resize logical volume in lvm

There's a bug in LVM, it's fixed upstream https://lore.kernel.org/linux-lvm/32B54 … et.io/T/#t

As a workaround, add --fs ignore option. (You must shrink the filesystem yourself first)

Offline

#3 2024-01-09 20:23:43

mentalAdventurer
Member
Registered: 2023-12-30
Posts: 3

Re: [SOLVED] can't resize logical volume in lvm

frostschutz wrote:

There's a bug in LVM, it's fixed upstream https://lore.kernel.org/linux-lvm/32B54 … et.io/T/#t

As a workaround, add --fs ignore option. (You must shrink the filesystem yourself first)

That did it!
Words cannot express my gratitude.

Offline

Board footer

Powered by FluxBB