Solved Enlarge UFS Filesystem on bhyve FreeBSD guest

Hi,

I am trying to resize a bhyve VM. With UFS Filesystem inside. Basically, I think I have succeeded. But my filesystem is still small...


df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/vtbd0s1a 238G 219G -102M 100% /
devfs 1.0K 0B 1.0K 0% /dev



gpart show vtbd0
=> 63 1258291137 vtbd0 MBR (600G)
63 1 - free - (512B)
64 1258291136 1 freebsd [active] (600G)



growfs /dev/vtbd0s1
It's strongly recommended to make a backup before growing the file system.
OK to grow filesystem on /dev/vtbd0s1 from 246GB to 600GB? [yes/no] yes
growfs: /dev/vtbd0s1: Operation not permitted


Seems to be the same issue as here: https://forums.freebsd.org/threads/...artition-after-enlarging-the-hard-disk.87662/

But I do not have /dev/gpt/... filesystems.

Any hints?


Ben
 

growfs /dev/vtbd0s1a
growfs: requested size 246GB is equal to the current filesystem size 246GB


Ah! There is a /dev/vtbd0s1b. That was probably the swap partition that i thought I had deleted. It does not show up in gpart show vtbd0. How do I remove it?

My mistake. Should have done
gpart show vtbd0

Thanks for the hint!
 
Back
Top