Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2022 22:31:14 +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:  <CACQUA7nTyT9hpguEbQ1LskHJxq1OUckswbpD__Fov-G9t8Myxg@mail.gmail.com>
In-Reply-To: <CAOtMX2ijrHuhh8E=M%2BD=FKXq9c0tbOq-ZDNRQZ4n32U5=dEaVg@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> <CACQUA7mzfvwRVhc00kGk3rZHKhFtMChZ983EJ0OBn90DJfaMUQ@mail.gmail.com> <CAOtMX2ijrHuhh8E=M%2BD=FKXq9c0tbOq-ZDNRQZ4n32U5=dEaVg@mail.gmail.com>

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

Sorry about that, again - I'm not sure what you mean by bottom-post vs
top-post.

Be that as it may - I read the geli man page. I was specifically warned
against using "geli resize" since it may not work as expected
https://forums.FreeBSD.org/threads/how-to-extend-zfs-geli-encrypted-disk-space-not-showing.86447/post-581642

Is this advise wrong?
> "The geli has autoresize flag which will handle the new provider size
after gpart resize command."
followed by
> You are right, no geli resize needed.

What would be the correct sequence of commands to fix this - Simply "geli
resize" ? (the -s option seems to be additional, will it figure it out
without providing s?)

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

> On Sat, Sep 17, 2022 at 12:07 PM milky india <milkyindia@gmail.com> wrote:
> >
> > 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
> >
> ----------------------------------------------------------------------------------------
>
> So yes, you need to resize the geli device.  Read the geli man page
> for details.  Also, when you reply please bottom-post rather than
> top-post.  It makes the mail archives more readable.
> -Alan
>

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

<div dir=3D"ltr">Sorry about that, again - I&#39;m not sure what you mean b=
y bottom-post vs top-post.<div><br></div><div>Be that as it may - I read th=
e geli man page. I was specifically warned against using &quot;geli resize&=
quot; since it may not work as expected=C2=A0<a href=3D"https://forums.Free=
BSD.org/threads/how-to-extend-zfs-geli-encrypted-disk-space-not-showing.864=
47/post-581642">https://forums.FreeBSD.org/threads/how-to-extend-zfs-geli-e=
ncrypted-disk-space-not-showing.86447/post-581642</a>=C2=A0</div><div>Is th=
is advise wrong?=C2=A0</div><div>&gt; &quot;<span style=3D"background-color=
:rgb(246,246,246);color:rgb(20,20,20);font-family:&quot;Segoe UI&quot;,&quo=
t;Helvetica Neue&quot;,Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Fira =
Sans&quot;,&quot;Droid Sans&quot;,sans-serif;font-size:13px">The geli has a=
utoresize flag which will handle the new provider size after gpart resize c=
ommand.&quot;=C2=A0</span></div><div><span style=3D"background-color:rgb(24=
6,246,246);color:rgb(20,20,20);font-family:&quot;Segoe UI&quot;,&quot;Helve=
tica Neue&quot;,Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Fira Sans&qu=
ot;,&quot;Droid Sans&quot;,sans-serif;font-size:13px">followed by</span></d=
iv><div><span style=3D"background-color:rgb(246,246,246);color:rgb(20,20,20=
);font-family:&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Rob=
oto,Oxygen,Ubuntu,Cantarell,&quot;Fira Sans&quot;,&quot;Droid Sans&quot;,sa=
ns-serif;font-size:13px">&gt;=C2=A0</span><span style=3D"color:rgb(20,20,20=
);font-family:&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Rob=
oto,Oxygen,Ubuntu,Cantarell,&quot;Fira Sans&quot;,&quot;Droid Sans&quot;,sa=
ns-serif;font-size:16px">You are right, no=C2=A0</span><code style=3D"box-s=
izing:border-box;font-family:monospace,monospace;font-size:16px;color:rgb(2=
0,20,20);background-color:rgb(222,227,231);padding:0.2px;margin:0.1em;displ=
ay:inline-block"><kbd style=3D"box-sizing:border-box;font-family:monospace,=
monospace;font-size:1em">geli resize</kbd></code><span style=3D"color:rgb(2=
0,20,20);font-family:&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvet=
ica,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Fira Sans&quot;,&quot;Droid Sans&q=
uot;,sans-serif;font-size:16px">=C2=A0needed.</span></div><div><br></div><d=
iv>What would be the correct sequence of commands to fix this - Simply &quo=
t;geli resize&quot; ? (the -s option seems to be additional, will it figure=
 it out without providing s?)</div></div><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Sat, Sep 17, 2022 at 10:20 PM Alan So=
mers &lt;<a href=3D"mailto:asomers@freebsd.org">asomers@freebsd.org</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 12:07 PM milky india &lt;<a href=3D"mailto:milkyindia@gmail=
.com" target=3D"_blank">milkyindia@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Apologies about that - output of &quot;geli list&quot; below :<br>
&gt; Seems like the provider is showing the old value (290G) while the cons=
umer is showing the resized value (458G) - so now I&#39;m confused about wh=
at is to be done and how to resolve this (not very familiar and still learn=
ing)<br>
&gt;<br>
&gt; ----------------------------------------------------------------------=
<br>
&gt; geli list<br>
&gt; Geom name: ada0p3.eli<br>
&gt; State: ACTIVE<br>
&gt; EncryptionAlgorithm: AES-XTS<br>
&gt; KeyLength: 256<br>
&gt; Crypto: accelerated software<br>
&gt; Version: 7<br>
&gt; UsedKey: 0<br>
&gt; Flags: BOOT, GELIBOOT<br>
&gt; KeysAllocated: 73<br>
&gt; KeysTotal: 73<br>
&gt; Providers:<br>
&gt; 1. Name: ada0p3.eli<br>
&gt;=C2=A0 =C2=A0 Mediasize: 311481593856 (290G)<br>
&gt;=C2=A0 =C2=A0 Sectorsize: 4096<br>
&gt;=C2=A0 =C2=A0 Mode: r1w1e1<br>
&gt; Consumers:<br>
&gt; 1. Name: ada0p3<br>
&gt;=C2=A0 =C2=A0 Mediasize: 491516858368 (458G)<br>
&gt;=C2=A0 =C2=A0 Sectorsize: 512<br>
&gt;=C2=A0 =C2=A0 Stripesize: 0<br>
&gt;=C2=A0 =C2=A0 Stripeoffset: 8590983168<br>
&gt;=C2=A0 =C2=A0 Mode: r1w1e1<br>
&gt;<br>
&gt; Geom name: ada0p2.eli<br>
&gt; State: ACTIVE<br>
&gt; EncryptionAlgorithm: AES-XTS<br>
&gt; KeyLength: 128<br>
&gt; Crypto: accelerated software<br>
&gt; Version: 7<br>
&gt; Flags: ONETIME, W-DETACH, W-OPEN, AUTORESIZE<br>
&gt; KeysAllocated: 2<br>
&gt; KeysTotal: 2<br>
&gt; Providers:<br>
&gt; 1. Name: ada0p2.eli<br>
&gt;=C2=A0 =C2=A0 Mediasize: 8589934592 (8.0G)<br>
&gt;=C2=A0 =C2=A0 Sectorsize: 4096<br>
&gt;=C2=A0 =C2=A0 Mode: r1w1e0<br>
&gt; Consumers:<br>
&gt; 1. Name: ada0p2<br>
&gt;=C2=A0 =C2=A0 Mediasize: 8589934592 (8.0G)<br>
&gt;=C2=A0 =C2=A0 Sectorsize: 512<br>
&gt;=C2=A0 =C2=A0 Stripesize: 0<br>
&gt;=C2=A0 =C2=A0 Stripeoffset: 1048576<br>
&gt;=C2=A0 =C2=A0 Mode: r1w1e1<br>
&gt; ----------------------------------------------------------------------=
------------------<br>
<br>
So yes, you need to resize the geli device.=C2=A0 Read the geli man page<br=
>
for details.=C2=A0 Also, when you reply please bottom-post rather than<br>
top-post.=C2=A0 It makes the mail archives more readable.<br>
-Alan<br>
</blockquote></div>

--00000000000088e49105e8e3afd5--



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