Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2022 22:07:08 +0400
From:      milky india <milkyindia@gmail.com>
To:        Alan Somers <asomers@freebsd.org>
Cc:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: Need help with live system expansion (zfs+geli)
Message-ID:  <CACQUA7mzfvwRVhc00kGk3rZHKhFtMChZ983EJ0OBn90DJfaMUQ@mail.gmail.com>
In-Reply-To: <CAOtMX2iDg3H75Jp5-N5MgLAvBHKFs8UXvCVPBi_YQKMqYWsz6g@mail.gmail.com>
References:  <CACQUA7kC1E%2BHTEAFY=o%2BFpRcfmhJ-qPWuXseNvT5eJzK4Bcdpw@mail.gmail.com> <CAOtMX2g%2BGZ6SjQQPu-YWJhttYS3D7YhU-kAqMY4xHxXoe6rdVg@mail.gmail.com> <CACQUA7nD2Hrkvo5P7_9gyWkJwX8-ZhMAc3HdgrzTCK=XVqRMog@mail.gmail.com> <CAOtMX2iDg3H75Jp5-N5MgLAvBHKFs8UXvCVPBi_YQKMqYWsz6g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000005b56fa05e8e35992
Content-Type: text/plain; charset="UTF-8"

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.
>

--0000000000005b56fa05e8e35992
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Apologies about that - output of &quot;geli list&quot; bel=
ow :<div>Seems like the provider is showing the old value (290G) while the =
consumer is showing the resized value (458G) - so now I&#39;m confused abou=
t what is to be done and how to resolve=C2=A0this (not very familiar and st=
ill learning)<br><div><br></div><div>--------------------------------------=
--------------------------------</div><div>geli list<br>Geom name: ada0p3.e=
li<br>State: ACTIVE<br>EncryptionAlgorithm: AES-XTS<br>KeyLength: 256<br>Cr=
ypto: accelerated software<br>Version: 7<br>UsedKey: 0<br>Flags: BOOT, GELI=
BOOT<br>KeysAllocated: 73<br>KeysTotal: 73<br>Providers:<br>1. Name: ada0p3=
.eli<br>=C2=A0 =C2=A0Mediasize: 311481593856 (290G)<br>=C2=A0 =C2=A0Sectors=
ize: 4096<br>=C2=A0 =C2=A0Mode: r1w1e1<br>Consumers:<br>1. Name: ada0p3<br>=
=C2=A0 =C2=A0Mediasize: 491516858368 (458G)<br>=C2=A0 =C2=A0Sectorsize: 512=
<br>=C2=A0 =C2=A0Stripesize: 0<br>=C2=A0 =C2=A0Stripeoffset: 8590983168<br>=
=C2=A0 =C2=A0Mode: r1w1e1<br><br>Geom name: ada0p2.eli<br>State: ACTIVE<br>=
EncryptionAlgorithm: AES-XTS<br>KeyLength: 128<br>Crypto: accelerated softw=
are<br>Version: 7<br>Flags: ONETIME, W-DETACH, W-OPEN, AUTORESIZE<br>KeysAl=
located: 2<br>KeysTotal: 2<br>Providers:<br>1. Name: ada0p2.eli<br>=C2=A0 =
=C2=A0Mediasize: 8589934592 (8.0G)<br>=C2=A0 =C2=A0Sectorsize: 4096<br>=C2=
=A0 =C2=A0Mode: r1w1e0<br>Consumers:<br>1. Name: ada0p2<br>=C2=A0 =C2=A0Med=
iasize: 8589934592 (8.0G)<br>=C2=A0 =C2=A0Sectorsize: 512<br>=C2=A0 =C2=A0S=
tripesize: 0<br>=C2=A0 =C2=A0Stripeoffset: 1048576<br>=C2=A0 =C2=A0Mode: r1=
w1e1<br></div><div>--------------------------------------------------------=
--------------------------------</div></div></div><br><div class=3D"gmail_q=
uote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Sep 17, 2022 at 10:02 P=
M Alan Somers &lt;<a href=3D"mailto:asomers@freebsd.org">asomers@freebsd.or=
g</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
>On Sat, Sep 17, 2022 at 11:56 AM milky india &lt;<a href=3D"mailto:milkyin=
dia@gmail.com" target=3D"_blank">milkyindia@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Thanks for the reply - I was suggested that &quot;geli resize&quot; wa=
sn&#39;t required on the forums : <a href=3D"https://forums.FreeBSD.org/thr=
eads/how-to-extend-zfs-geli-encrypted-disk-space-not-showing.86447/post-581=
676" rel=3D"noreferrer" target=3D"_blank">https://forums.FreeBSD.org/thread=
s/how-to-extend-zfs-geli-encrypted-disk-space-not-showing.86447/post-581676=
</a> .......... was that wrong advice?<br>
&gt;<br>
&gt; If it was - what do I do now? If it wasn&#39;t - why is the zpool list=
 not showing the resized disk but the older values as if nothing happened?<=
br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; On Sat, Sep 17, 2022 at 9:53 PM Alan Somers &lt;<a href=3D"mailto:asom=
ers@freebsd.org" target=3D"_blank">asomers@freebsd.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Sep 17, 2022 at 11:31 AM milky india &lt;<a href=3D"mailto=
:milkyindia@gmail.com" target=3D"_blank">milkyindia@gmail.com</a>&gt; wrote=
:<br>
...<br>
&gt;&gt;<br>
&gt;&gt; After doing &quot;gpart resize&quot; but before doing &quot;zpool =
online -e&quot;, you<br>
&gt;&gt; need to do &quot;geli resize&quot;.<br>
<br>
Just check by doing &quot;geli list&quot;.=C2=A0 Does it show the old size =
or the new<br>
size?=C2=A0 Also, please keep your replies on-list so other readers can see=
<br>
the resolution to your problem.<br>
</blockquote></div>

--0000000000005b56fa05e8e35992--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACQUA7mzfvwRVhc00kGk3rZHKhFtMChZ983EJ0OBn90DJfaMUQ>