On 5.4-RELEASE, I'm trying to use growfs to expand a root filesystem. I've grown the disk from 2GB to 10GB, I've used disklabel(8) to adjust the OpenBSD area and the size of partition 'a'. All those numbers line up. Rebooting into bsd.rd, copying /sbin/growfs to the ramdisk, and then using it (successfully, more or less), I still see this error:

    new filesystem size is: 3411480 frags
    Warning: 376928 sector(s) cannot be allocated.
    growfs: not enough new space

I can see in growfs.c where that messages is being emitted, and I see the comment there that says "The space in the new last cylinder group is too small, so revert back. I lack, however, a sufficiently low-level understanding of FFS internals to understand _why_ the space in the new last cylinder group is too small. dumpfs(8) reports "cylgrp dynamic inodes 4.4BSD fslevel 3", which I vaguely understood to mean that cylinder groups were now dynamically-sized things...?

So, per growfs, what is the space too small _for_ ? Too small for another cylinder group? How would I go about calculating how much more (or less) disk space I would need to make growfs happy, and not wasting ?

Now waiting incoming cluebats :-(

--
-Adam Thompson
 [email protected]

Reply via email to