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'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 "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>> "<span style=3D"background-color= :rgb(246,246,246);color:rgb(20,20,20);font-family:"Segoe UI",&quo= t;Helvetica Neue",Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,"Fira = Sans","Droid Sans",sans-serif;font-size:13px">The geli has a= utoresize flag which will handle the new provider size after gpart resize c= ommand."=C2=A0</span></div><div><span style=3D"background-color:rgb(24= 6,246,246);color:rgb(20,20,20);font-family:"Segoe UI","Helve= tica Neue",Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans&qu= ot;,"Droid Sans",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:"Segoe UI","Helvetica Neue",Helvetica,Rob= oto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans",sa= ns-serif;font-size:13px">>=C2=A0</span><span style=3D"color:rgb(20,20,20= );font-family:"Segoe UI","Helvetica Neue",Helvetica,Rob= oto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans",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:"Segoe UI","Helvetica Neue",Helvet= ica,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","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" ? (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 <<a href=3D"mailto:asomers@freebsd.org">asomers@freebsd.org</a>>= 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 <<a href=3D"mailto:milkyindia@gmail= .com" target=3D"_blank">milkyindia@gmail.com</a>> wrote:<br> ><br> > Apologies about that - output of "geli list" below :<br> > Seems like the provider is showing the old value (290G) while the cons= umer is showing the resized value (458G) - so now I'm confused about wh= at is to be done and how to resolve this (not very familiar and still learn= ing)<br> ><br> > ----------------------------------------------------------------------= <br> > geli list<br> > Geom name: ada0p3.eli<br> > State: ACTIVE<br> > EncryptionAlgorithm: AES-XTS<br> > KeyLength: 256<br> > Crypto: accelerated software<br> > Version: 7<br> > UsedKey: 0<br> > Flags: BOOT, GELIBOOT<br> > KeysAllocated: 73<br> > KeysTotal: 73<br> > Providers:<br> > 1. Name: ada0p3.eli<br> >=C2=A0 =C2=A0 Mediasize: 311481593856 (290G)<br> >=C2=A0 =C2=A0 Sectorsize: 4096<br> >=C2=A0 =C2=A0 Mode: r1w1e1<br> > Consumers:<br> > 1. Name: ada0p3<br> >=C2=A0 =C2=A0 Mediasize: 491516858368 (458G)<br> >=C2=A0 =C2=A0 Sectorsize: 512<br> >=C2=A0 =C2=A0 Stripesize: 0<br> >=C2=A0 =C2=A0 Stripeoffset: 8590983168<br> >=C2=A0 =C2=A0 Mode: r1w1e1<br> ><br> > Geom name: ada0p2.eli<br> > State: ACTIVE<br> > EncryptionAlgorithm: AES-XTS<br> > KeyLength: 128<br> > Crypto: accelerated software<br> > Version: 7<br> > Flags: ONETIME, W-DETACH, W-OPEN, AUTORESIZE<br> > KeysAllocated: 2<br> > KeysTotal: 2<br> > Providers:<br> > 1. Name: ada0p2.eli<br> >=C2=A0 =C2=A0 Mediasize: 8589934592 (8.0G)<br> >=C2=A0 =C2=A0 Sectorsize: 4096<br> >=C2=A0 =C2=A0 Mode: r1w1e0<br> > Consumers:<br> > 1. Name: ada0p2<br> >=C2=A0 =C2=A0 Mediasize: 8589934592 (8.0G)<br> >=C2=A0 =C2=A0 Sectorsize: 512<br> >=C2=A0 =C2=A0 Stripesize: 0<br> >=C2=A0 =C2=A0 Stripeoffset: 1048576<br> >=C2=A0 =C2=A0 Mode: r1w1e1<br> > ----------------------------------------------------------------------= ------------------<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>