Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1156316 > unrolled thread

Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly

Started byHolger Wansing <hwansing@mailbox.org>
First post2023-07-28 11:00 +0200
Last post2023-07-29 19:50 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly Holger Wansing <hwansing@mailbox.org> - 2023-07-28 11:00 +0200
    Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly Pascal Hambourg <pascal@plouf.fr.eu.org> - 2023-07-28 12:00 +0200
      Re: Bug#1042437: partman-auto-lvm: using binary units for size of  volume group does not work correctly Holger Wansing <hwansing@mailbox.org> - 2023-07-29 19:50 +0200

#1156316 — Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly

FromHolger Wansing <hwansing@mailbox.org>
Date2023-07-28 11:00 +0200
SubjectBug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly
Message-ID<GWruh-3kGG-17@gated-at.bofh.it>
Package: partman-auto-lvm
Severity: normal


With a bookworm 12.0 netinst image:
when choosing guided partitioning -> set up LVM, it is now allowed to use
binary units for volume group size (MiB, GiB, ...), but the size is wrongly
calculated.
For example, if I choose a volume group of 12 GiB, I get one with 11,9 GB, but 
it should be roughly 12,9 GB.

Using the manual way of configuring (so not guided partitioning, but manual),
it works correctly.


Holger



-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

[toc] | [next] | [standalone]


#1156327

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2023-07-28 12:00 +0200
Message-ID<GWsql-3lfx-9@gated-at.bofh.it>
In reply to#1156316
Hello Holger,

On 28/07/2023 at 10:48, Holger Wansing wrote:
> 
> With a bookworm 12.0 netinst image:
> when choosing guided partitioning -> set up LVM, it is now allowed to use
> binary units for volume group size (MiB, GiB, ...), but the size is wrongly
> calculated.
> For example, if I choose a volume group of 12 GiB, I get one with 11,9 GB, but
> it should be roughly 12,9 GB.

1) How do you choose the VG size ? AFAICS, the only possible choice is 
to restrict the VG use to a given size or percentage.

2) How do you see the VG size ?

I tested guided LVM with all in one partition and restrict the VG used 
size to 12 GiB and I get a root LV of 11.9 GB and a swap LV of 1 GB, so 
a total use of 12.9 GB as expected. vgs shows 12 GiB used.

[toc] | [prev] | [next] | [standalone]


#1156469 — Re: Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly

FromHolger Wansing <hwansing@mailbox.org>
Date2023-07-29 19:50 +0200
SubjectRe: Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly
Message-ID<GWWeJ-3DMI-5@gated-at.bofh.it>
In reply to#1156327
Hi,

Pascal Hambourg <pascal@plouf.fr.eu.org> wrote (Fri, 28 Jul 2023 11:49:35 +0200):
> > With a bookworm 12.0 netinst image:
> > when choosing guided partitioning -> set up LVM, it is now allowed to use
> > binary units for volume group size (MiB, GiB, ...), but the size is wrongly
> > calculated.
> > For example, if I choose a volume group of 12 GiB, I get one with 11,9 GB, but
> > it should be roughly 12,9 GB.
> 
> 1) How do you choose the VG size ? AFAICS, the only possible choice is 
> to restrict the VG use to a given size or percentage.

Yes, I use that dialog.

> 2) How do you see the VG size ?

It is displayed in the next dialog (partition overview screen).

> I tested guided LVM with all in one partition and restrict the VG used 
> size to 12 GiB and I get a root LV of 11.9 GB and a swap LV of 1 GB, so 
> a total use of 12.9 GB as expected. vgs shows 12 GiB used.

I wasn't aware of that concept, that the value I enter gets divided into
several volume groups (here: root and swap).
But that of course makes sense. 
(I don't use LVM usually, so no experience with it; I just did a test 
regarding to bug#684128 "src:debian-installer: allow use of binary units in
disk partitioner").


Sorry for the noise, my fault.
Closing this bug


Holger


-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web