Re: FreeBSD not seeing disk device resize

From: Warner Losh <imp_at_bsdimp.com>
Date: Fri, 11 Jul 2025 18:51:00 UTC
On Fri, Jul 11, 2025, 12:33 PM Tom Arnold <xyzzy@sysabend.org> wrote:

> I debated which group to mail ( zfs, xen, of fs ) and decided to start
> here.
>
> The setup : FreeBSD VM running on Xen host.  Xen disk xbd4 set up with zfs
> ( zpool
> create PoolName /dev/xbd4 ).
>
> Works fine.
>
> geom disk list sees it just fine also.
>
> If I grow the disk in Xen, I cannot see the change live in FreeBSD.
> Camcontrol sees
> none of the devices except the DVD drive.  Geom sees everything but the
> kick geom
> trick of "true > /dev/xbd4" fails.
>

Does the Xen scsi SIM catch the resize and send a media_size event? That's
the only thing I can think of that explains what's going on with the
behavior described.

Warner

A reboot and geom now sees the new size and I can expand the pool as normal.
>
> I had remembered seeing a "rescan" option in bsdinstall so for giggles I
> went in
> and tried that and whatever it does didn't work either.
>
> This isn't a showstopper but its an annoyance.
>
>   -Tom
>
> --
>  --------------------------------------------------------------------
>  - Tom Arnold           -  "...is it a virus, a drug, or a religion?"
>  - Sysabend Caretaker   -    Juanita Shrugs. "What's the difference?"
>  ------------------------       -- Neal Stephenson,  Snow Crash
>
>
>