* Unable to resize a logical volume due to wrong reported asked size
@ 2024-01-04 21:01 François-Xavier Payet
2024-01-04 22:00 ` David Teigland
0 siblings, 1 reply; 3+ messages in thread
From: François-Xavier Payet @ 2024-01-04 21:01 UTC (permalink / raw)
To: linux-lvm
Hello!
I’ve got issues resizing a LVM volume.
I’ve allready resized the filesystem on top of it without issues :
btrfs fi resize 62T /mnt/user
Resize device id 1 (/dev/mapper/vg_raid-datas) from 80.04TiB to 62.00TiB
But when trying to resize the underlying volume, I’ve got the following error :
lvresize -L63T /dev/vg_raid/datas
File system btrfs found on vg_raid/datas.
File system size (62,00 TiB) is larger than the requested size (1,00 TiB).
File system reduce is required and not supported (btrfs).
Which makes (to me) no sense as 1. the FS is less than 63T, 2. The 1.00 TB is not what I’ve requested. And If I try another size, it tells me that I’ve asked for a null size :
lvresize -L64T /dev/vg_raid/datas
File system btrfs found on vg_raid/datas.
File system size (62,00 TiB) is larger than the requested size (0 ).
File system reduce is required and not supported (btrfs).
So I really don’t get what’s going on here. Anyone has pointer on what might be the problem?
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unable to resize a logical volume due to wrong reported asked size
2024-01-04 21:01 Unable to resize a logical volume due to wrong reported asked size François-Xavier Payet
@ 2024-01-04 22:00 ` David Teigland
2024-01-05 8:17 ` François-Xavier Payet
0 siblings, 1 reply; 3+ messages in thread
From: David Teigland @ 2024-01-04 22:00 UTC (permalink / raw)
To: François-Xavier Payet; +Cc: linux-lvm
On Thu, Jan 04, 2024 at 10:01:04PM +0100, François-Xavier Payet wrote:
> Hello!
>
> I’ve got issues resizing a LVM volume.
Hi, I suspect you're missing this fix:
https://gitlab.com/lvmteam/lvm2/-/commit/fa496513010976aac21584b5081529b76462f9a9
To work around the problem, you can disable the fs checking in lvresize
with '--fs ignore', which tells lvresize that you have already properly
resized the fs.
Dave
> I’ve allready resized the filesystem on top of it without issues :
> btrfs fi resize 62T /mnt/user
> Resize device id 1 (/dev/mapper/vg_raid-datas) from 80.04TiB to 62.00TiB
>
> But when trying to resize the underlying volume, I’ve got the following error :
> lvresize -L63T /dev/vg_raid/datas
> File system btrfs found on vg_raid/datas.
> File system size (62,00 TiB) is larger than the requested size (1,00 TiB).
> File system reduce is required and not supported (btrfs).
>
> Which makes (to me) no sense as 1. the FS is less than 63T, 2. The 1.00 TB is not what I’ve requested. And If I try another size, it tells me that I’ve asked for a null size :
> lvresize -L64T /dev/vg_raid/datas
> File system btrfs found on vg_raid/datas.
> File system size (62,00 TiB) is larger than the requested size (0 ).
> File system reduce is required and not supported (btrfs).
>
> So I really don’t get what’s going on here. Anyone has pointer on what might be the problem?
>
> Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unable to resize a logical volume due to wrong reported asked size
2024-01-04 22:00 ` David Teigland
@ 2024-01-05 8:17 ` François-Xavier Payet
0 siblings, 0 replies; 3+ messages in thread
From: François-Xavier Payet @ 2024-01-05 8:17 UTC (permalink / raw)
To: David Teigland; +Cc: linux-lvm
>
> To work around the problem, you can disable the fs checking in lvresize
> with '--fs ignore', which tells lvresize that you have already properly
> resized the fs.
>
> Dave
>
That did it. I was afraid of doing it beforehand because I thought it would effectively resize the logical volume to 1T, but it worked like a charm.
THanks Dave
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-05 8:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04 21:01 Unable to resize a logical volume due to wrong reported asked size François-Xavier Payet
2024-01-04 22:00 ` David Teigland
2024-01-05 8:17 ` François-Xavier Payet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.