Question
FreeBSD growfs: operation not permitted (aka: enlarge your partition)
Hi there,
I recently upgrade my Droplet from 20 to 30 GiB space, yet I’m unable to resize my filesystem space in order to fill the new hard disk size. I have a FreeBSD 10.1 droplet.
I followed the instruction described by the official FreeBSD handbook: disk growing.
I executed the commands from single user mode.
The error occurs at the very final step:
growfs /dev/vtbd0p3
Operation not permitted
Anyone is aware of special actions to take care for DigitalOcean droplets?
Someone managed to increase the disk space?
Thank you very much.
Best Regards,
Nicholas
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Hey @lordgordon! Could you open a support ticket so the team can take a closer look at this issue? The filesystem should have been grown automatically as part of the resize process.
Sure! Thank you @asb.
Is there any updates om this, i have the same problem but cant find a solution
Yes, unfortunately UFS doesn’t support the resize process. You need to create a snapshot of your droplet and create a new one with the new size using the snapshot. If you delete your current droplet and create a new one immediately you should have reassigned the very same IP.
I suggest to check with the great DigitalOcean support for further details.
I too made an upgrade from 20GB to 30GB. I too was also attempting
growfs /dev/vtbd0p3
with the same result.Found myself exploring /etc/rc.d/growfs. Discovered it worked when called as a service.
Examined
$rootdev
in /etc/rc.d/growfs and found to have the value ofgpt/rootfs
So for the ‘hip’ crowd, we do
All the while mounted.
I’m not sure if
sysctl kern.geom.debugflags=16
is really needed now as the /etc/rc.d/growfs script makes no attempt to call it, and it is successful.This post was really helpful. I had the same problem with growfs, “operation not permitted”, but running it as a service grew the partition correctly. Thanks for posting this info.