[Bug 211000] [Hyper-V] Online VHDX Resize doesn't work properly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 11 11:03:51 UTC 2016


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

Dexuan Cui <decui at microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kyliel at microsoft.com

--- Comment #1 from Dexuan Cui <decui at microsoft.com> ---
This shows the issue:

Dexuan:  before the disk capacity change, we have

[root at decui-b11 ~/bsd.git/sys]# gpart show da1
=>       40  125829040  da1  GPT  (60G)
         40  125829040       - free -  (60G)

Dexuan:  after the disk capacity change, we have
(Note: the first failure is caused by the wrong handling of the
SCSI_STATUS_CHECK_COND error)

[root at decui-b11 ~/bsd.git/sys]# diskinfo da1
diskinfo: da1: ioctl(DIOCGMEDIASIZE) failed, probably not a disk.
[root at decui-b11 ~/bsd.git/sys]# diskinfo da1
da1     512     75161927680     146800640       4096    0       9137    255    
63

Dexuan: now the new capacity is detected, but the 'free' space remains the same
old value:

[root at decui-b11 ~/bsd.git/sys]# gpart show da1
=>       40  125829040  da1  GPT  (70G)
         40  125829040       - free -  (60G)

Dexuan: this is caused by another bug: Bug 210425: rescannning da1 makes the
disk disappear:

[root at decui-b11 ~/bsd.git/sys]# camcontrol rescan 2:0:0
Re-scan of 2:0:0 was successful
[root at decui-b11 ~/bsd.git/sys]# gpart show da1
gpart: No such geom: da1.
[root at decui-b11 ~/bsd.git/sys]# camcontrol devlist
<Msft Virtual CD/ROM 1.0>          at scbus0 target 0 lun 0 (cd0,pass0)
<Msft Virtual Disk 1.0>            at scbus1 target 0 lun 0 (da0,pass1)

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


More information about the freebsd-bugs mailing list