All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: "François-Xavier Payet" <fx@payet.io>
Cc: linux-lvm@lists.linux.dev
Subject: Re: Unable to resize a logical volume due to wrong reported asked size
Date: Thu, 4 Jan 2024 16:00:08 -0600	[thread overview]
Message-ID: <ZZcqaDWKFyUQ_7qh@redhat.com> (raw)
In-Reply-To: <C69E0F8D-AE0A-47DA-BD37-00289EECB867@payet.io>

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!


  reply	other threads:[~2024-01-04 22:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2024-01-05  8:17   ` François-Xavier Payet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZZcqaDWKFyUQ_7qh@redhat.com \
    --to=teigland@redhat.com \
    --cc=fx@payet.io \
    --cc=linux-lvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.