Need help with live system expansion (zfs+geli)
- Reply: Alan Somers : "Re: Need help with live system expansion (zfs+geli)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Sep 2022 17:31:31 UTC
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.