Re: Need help with live system expansion (zfs+geli)

From: milky india <milkyindia_at_gmail.com>
Date: Sat, 17 Sep 2022 18:07:08 UTC
Apologies about that - output of "geli list" below :
Seems like the provider is showing the old value (290G) while the consumer
is showing the resized value (458G) - so now I'm confused about what is to
be done and how to resolve this (not very familiar and still learning)

----------------------------------------------------------------------
geli list
Geom name: ada0p3.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: accelerated software
Version: 7
UsedKey: 0
Flags: BOOT, GELIBOOT
KeysAllocated: 73
KeysTotal: 73
Providers:
1. Name: ada0p3.eli
   Mediasize: 311481593856 (290G)
   Sectorsize: 4096
   Mode: r1w1e1
Consumers:
1. Name: ada0p3
   Mediasize: 491516858368 (458G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 8590983168
   Mode: r1w1e1

Geom name: ada0p2.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: accelerated software
Version: 7
Flags: ONETIME, W-DETACH, W-OPEN, AUTORESIZE
KeysAllocated: 2
KeysTotal: 2
Providers:
1. Name: ada0p2.eli
   Mediasize: 8589934592 (8.0G)
   Sectorsize: 4096
   Mode: r1w1e0
Consumers:
1. Name: ada0p2
   Mediasize: 8589934592 (8.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1048576
   Mode: r1w1e1
----------------------------------------------------------------------------------------

On Sat, Sep 17, 2022 at 10:02 PM Alan Somers <asomers@freebsd.org> wrote:

> On Sat, Sep 17, 2022 at 11:56 AM milky india <milkyindia@gmail.com> wrote:
> >
> > Thanks for the reply - I was suggested that "geli resize" wasn't
> required on the forums :
> https://forums.FreeBSD.org/threads/how-to-extend-zfs-geli-encrypted-disk-space-not-showing.86447/post-581676
> .......... was that wrong advice?
> >
> > If it was - what do I do now? If it wasn't - why is the zpool list not
> showing the resized disk but the older values as if nothing happened?
> >
> > Thanks
> >
> > On Sat, Sep 17, 2022 at 9:53 PM Alan Somers <asomers@freebsd.org> wrote:
> >>
> >> On Sat, Sep 17, 2022 at 11:31 AM milky india <milkyindia@gmail.com>
> wrote:
> ...
> >>
> >> After doing "gpart resize" but before doing "zpool online -e", you
> >> need to do "geli resize".
>
> Just check by doing "geli list".  Does it show the old size or the new
> size?  Also, please keep your replies on-list so other readers can see
> the resolution to your problem.
>