strange behavior after gpart {recover, resize}
Alexander Best
arundel at freebsd.org
Mon Feb 21 19:27:19 UTC 2011
On Mon Feb 21 11, Andrey V. Elsukov wrote:
> On 21.02.2011 03:26, Alexander Best wrote:
> > i noticed ada0's status was CORRUPTED. that's why i ran gpart recover ada0.
> > that worked. however now gpart was showing some freespace after the last
> > partition, which never showed up beforehand. that's why i did sysctl
> > kern.geom.debugflags=16 and ran gpart resize -i3 ada0 which also worked as
> > expected.
>
> I want to remind that `gpart resize` does only partition table changes.
> And if filesystem does not support automatic growing size you may need
> to use special tools to tell it about new size.
otaku% sudo growfs -N /dev/ada0p3
new file systemsize is: 117904939 frags
Warning: 170988 sector(s) cannot be allocated.
growfs: not enough new space
...so i don't think resizing the fs by hand is necessary
>
> > however now i can access ada0p3 only by it's /dev node. it won't show up in
> > either /dev/ufs, /dev/label or /dev/gptid. i checked with tunefs -p and the
> > ufs descriptor is defenately there. nothing in gpart status however. :(
> > any clues?
>
> GEOM LABEL class does not create labels when provider is already open.
i performed the changes in single user mode and rebooted my machine afterwards.
>
> --
> WBR, Andrey V. Elsukov
>
--
a13x
More information about the freebsd-geom
mailing list