Date: Sat, 17 Sep 2022 11:53:03 -0600 From: Alan Somers <asomers@freebsd.org> To: milky india <milkyindia@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: Need help with live system expansion (zfs+geli) Message-ID: <CAOtMX2g%2BGZ6SjQQPu-YWJhttYS3D7YhU-kAqMY4xHxXoe6rdVg@mail.gmail.com> In-Reply-To: <CACQUA7kC1E%2BHTEAFY=o%2BFpRcfmhJ-qPWuXseNvT5eJzK4Bcdpw@mail.gmail.com> References: <CACQUA7kC1E%2BHTEAFY=o%2BFpRcfmhJ-qPWuXseNvT5eJzK4Bcdpw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 17, 2022 at 11:31 AM milky india <milkyindia@gmail.com> wrote: > > I am writing to you from a live system (zfs+geli) that I am in the middle of resizing to fit the entire disk. > > Background : The freebsd os (geli encryption) was installed using 290G only on a 500G SSD. The disk was almost getting full - hence the need for more space - can't use backup, hence on a live system. > > This is the disk : > ------------------------------------------------------------- > gpart show > => 40 976773088 ada0 GPT (466G) > 40 1024 1 freebsd-boot (512K) > 1064 984 - free - (492K) > 2048 16777216 2 freebsd-swap (8.0G) > 16779264 608362496 3 freebsd-zfs (290G) > 625141760 351631368 - free - (168G) > ----------------------------------------------------------------- > this is the output after resizing : > --------------------------------------------------------------- > sudo gpart resize -i 3 ada0 > Password: > ada0p3 resized > terminal$ gpart show > => 40 976773088 ada0 GPT (466G) > 40 1024 1 freebsd-boot (512K) > 1064 984 - free - (492K) > 2048 16777216 2 freebsd-swap (8.0G) > 16779264 959993864 3 freebsd-zfs (458G) > ------------------------------------------------------------------- > I went ahead and did > ------------------------------------------------ > zpool online -e zroot /dev/ada0p3.eli > -------------------------------------------------- > However it didn't produce any output, strangely and the output of zpool list also doesn't seem to show that the disk is fully occupied 458G vs 290G - it's the same output as before: > ------------------------------------------------------------------------- > zpool list > NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT > zroot 290G 270G 19.9G - - 69% 93% 1.00x ONLINE - > ----------------------------------------------------------------------------- > > What do I do next? I'm really stressed and hoping this live system doesn't fail. > I did try the freebsd forums and was suggested to ask here. > > Note 1 : As the handbook suggested for a live system - I have set > ------ sysctl kern.geom.debugflags=16 ---------- > source : https://docs.freebsd.org/en/books/handbook/disks/ > > Sorry for bothering you - but really could use some help. After doing "gpart resize" but before doing "zpool online -e", you need to do "geli resize".
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2g%2BGZ6SjQQPu-YWJhttYS3D7YhU-kAqMY4xHxXoe6rdVg>