[Bug 211028] [GEOM][Hyper-V] gpart can't detect the new free space after the disk capacity changes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 12 12:03:00 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211028

Andrey V. Elsukov <ae at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ae at FreeBSD.org

--- Comment #3 from Andrey V. Elsukov <ae at FreeBSD.org> ---
So, disk provider has changed its size, I assume `camcontrol reprobe` has
initiated g_disk_resize event.
How it should work in my understanding:
1. `camcontrol reprobe` triggers calling of disk_resize()
2. disk_resize() calls g_disk_resize() event
3. GPART class receives resize event, g_part_resize() should be called
4. GPART_MBR's method g_part_mbr_resize() should be called
5. "GEOM_PART: da1 was automatically resized. Use `gpart commit da1` to save
changes or `gpart undo da1` to revert them." message should be printed in the
console.

If you don't see the message from p.5 - something doesn't work as expected.
You can use the following dtrace command to debug:

# kldload dtraceall
# dtrace -n 'dtrace -n 'fbt::*disk_resize:entry fbt::g_part_*resize:entry
{stack(5);}'

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list