Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2016 14:32:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 211028] [GEOM][Hyper-V] gpart can't detect the new free space after the disk capacity changes
Message-ID:  <bug-211028-8-9ZEUBavozf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211028-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211028-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

--- Comment #13 from Dexuan Cui <decui@microsoft.com> ---
(In reply to Edward Tomasz Napierala from comment #11)
With kern.geom.debugflags=253 (log everything except G_T_BIO)  and
debug.bootverbose=1, after the disk capacity was changed from 180GB to 200GB, I
got the below when running "dd if=/dev/da1 of=tmp bs=512 count=1":

g_dev_open(da1, 1, 8192, 0xfffff80004433500)
g_access(0xfffff80003faba00(da1), 1, 0, 0)
open delta:[r1w0e0] old:[r0w0e0] provider:[r0w0e0] 0xfffff80003d19c00(da1)
g_disk_access(da1, 1, 0, 0)
(da1:storvsc1:0:0:0): storvsc scsi_status = 2
(da1:storvsc1:0:0:0): Capacity data has changed
g_post_event_x(0xffffffff80996f40, 0xfffff800043fd800, 1, 0)
(da1:storvsc1:0:0:0): storvsc skips the validation for short inquiry (6) [0 b2
0 4 1]
(da1:storvsc1:0:0:0): storvsc skips the validation for short inquiry (5) [0 b0
0 3c 0]
(da1:storvsc1:0:0:0): storvsc skips the validation for short inquiry (5) [0 b1
0 3c 0]
g_dev_close(da1, 131073, 8192, 0xfffff80004433500)
g_access(0xfffff80003faba00(da1), -1, 0, 0)
open delta:[r-1w0e0] old:[r1w0e0] provider:[r1w0e0] 0xfffff80003d19c00(da1)
g_disk_access(da1, -1, 0, 0)

Next, gpart can't show the new free space:
[root@decui-b11 ~/bsd.git/sys]# gpart show da1
=>       63  377487297  da1  MBR  (200G)
         63  377487297       - free -  (180G)

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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211028-8-9ZEUBavozf>