Possible growfs regression on r280862: Tue Mar 31/PANDABOARD snapshot

Tim Kientzle tim at kientzle.com
Sun May 24 06:20:35 UTC 2015


> On Apr 3, 2015, at 12:04 PM, Michael Dexter <editor at callfortesting.org> wrote:
> 
> 
> Hello all,
> 
> I have been experimenting with the FreeBSD 11.0-CURRENT #0 r280130: Mon
> Mar 16 and FreeBSD 11.0-CURRENT #0 r280862: Tue Mar 31 and I noticed
> that the latter is not running growfs on boot. (It is also not reporting
> the system's available memory at boot time.)

Sorry for the late response.

I believe this is fixed for Crochet-built images now.

> I tried manually growing the filesystem using a memory device and while
> the gpart resize went fine, the growfs would not work but I could easily
> have the syntax wrong:
. . . snip . . .
> 
> [root at pcbsd] /root/snapshots# gpart resize -i 2 md1
> md1s2 resized
> [root at pcbsd] /root/snapshots# gpart show md1
> =>     63  8388545  md1  MBR  (4.0G)
>       63     4095    1  !12  [active]  (2.0M)
>     4158  8384450    2  freebsd  (4.0G)
> 
> [root at pcbsd] /root/snapshots# growfs /dev/md1s2a

You’ve resized md1s2 but now have to ‘gpart resize’ md1s2a before you can growfs it.

No, this is not obvious, which is why it’s nice to have it scripted into the system.  ;-)

> growfs: requested size 952MB is not larger than the current filesystem
> size 952MB
> [root at pcbsd] /root/snapshots# growfs -s 4G /dev/md1s2a
> growfs: requested size 4.0GB is larger than the available 952MB

Cheers,

Tim




More information about the freebsd-arm mailing list