Resize zroot/ROOT/default (zfs)

Hello,

I would like to increase the size of zroot/ROOT/default (its current size if 8.7GB), but I have no idea how to do it.
The size of the 4th partition (freebsd-zfs / da0p4) is 12GB and the size of zroot is 11.5GB.

Could anyone help me figure out how to increase the amount of memory available to zroot/ROOT/default, as currently I can't even install updates?

gpart show:
1732284798680.png


df -hT
1732284847254.png


zpool list and zpool get autoexpand:
1732285162280.png

1732284945084.png
 

Attachments

  • 1732284923097.png
    1732284923097.png
    3.1 KB · Views: 199
Are there any other ZFS datasets other than the root ones and is there a quota set in zfs properties on any of the datasets?

Seems strange that the available space on the dataset is so much smaller than the pool considering it is a single disk. I just tried with a 12G fake disk and got a pool of 11.5G with 11.1G available on the dataset. Setting an 8G quota did however change the available space shown in zfs list & df to 8G.

By default, any dataset should be able to use the entire space of the pool. There isn't really a way to "increase the size of a dataset" (unless it's a zvol), only to reserve space or set a quota. ZFS isn't designed to give individual datasets a specific portion of the pool space like normal disk partitioning would.
 
You could just have increased the disk in VMWare, then increased the partition and be done too. No need for a reinstall.

And it seems you solved it once before: https://forums.freebsd.org/threads/...zroot-root-default-freebsd-zfs-size-7gb.92668

but it is almost a base installation of FreeBSD.
If you've been diligently installing updates/upgrades using freebsd-update(8), then I'm sure you've collected a bunch of old boot environments that were never cleaned up.
 
>You could just have increased the disk in VMWare, then increased the partition and be done too. No need for a reinstall.
>And it seems you solved it once before: https://forums.freebsd.org/threads/...zroot-root-default-freebsd-zfs-size-7gb.92668
That's what I tried to do today (including increasing the disk in VMWare as first action), but it didn't work and I got stuck... :-) Whatever I tried, including the solution I found some time ago, just did not change the size of zroot/ROOT/default, so I decided to switch to something closer to what I needed (=an easy way to increase the size of the main partition if needed).

> If you've been diligently installing updates/upgrades using freebsd-update(8), then I'm sure you've collected a bunch of old boot environments that were never cleaned up.
It was almost a base version of FreeBSD, I just did a first update months ago, and this is the first time I boot this VM again.
Something was probably wrong, but I found that ufs was more than enough for my experiments with FreeBSD.

Thanks!
 
Back
Top