[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 09:45:52 UTC 2016


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

--- Comment #2 from Dexuan Cui <decui at microsoft.com> ---
(In reply to Dexuan Cui from comment #0)
In comment 0, if I skip step 3, that is, I don't run the "dd" and only run
"camcontrol reprobe da1", "gpart show  da1" can detect the new "free" space
correctly.


BTW, when I get the bug, there is a workaround:
dd if=/dev/da1 of=/dev/da1 bs=512 count=0

This means, when da1 is opened for writing, somehow geom will be forced to
recalculate the free space.

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


More information about the freebsd-bugs mailing list