Solved need to resize freebsd-zfs partition

Hi all, as I installed Freebsd 13 on one of the two USB 3.1 pendrives available, I had to choose the smaller sized 128 Gb because the 256 one was engaged in another task. After made some personalization-configuration works on the Freebsd 13 installation, my bigger pendrive returned available, and I simply cloned the smaller one to the bigger by dd.
Now of course the partitioning situation of such USB (below the gpart show result) is that the freebsd-zfs space gets less than half of the total volume capacity, and I would like to set it for using it all.
Code:
=>       40  501253059  da0  GPT  (239G)
         40       1024    1  freebsd-boot  (512K)
       1064        984       - free -  (492K)
       2048    4194304    2  freebsd-swap  (2.0G)
    4196352  236056576    3  freebsd-zfs  (113G)
  240252928  261000171       - free -  (124G)
would someone kindly suggest how to proceed ?

Many thanks
 
Last edited by a moderator:
Boot system, execute as root:
Code:
gpart resize -i 3 da0
gpart show -p da0            # it will show da0p3 expanded over the free space

In case 'gpart show' shows da0 corrupted execute:

gpart recover da0

zpool online -e <pool_name> da0p3
zpool list <pool_name>       # SIZE will show expanded size
 
Back
Top