Enable TRIM support in Ubuntu for Hyper-V
Bug #1223499 reported by
Ben Howard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Andy Whitcroft | ||
Saucy |
Fix Released
|
High
|
Andy Whitcroft |
Bug Description
Microsoft has asked for us to enable unmap support Hyper-V targets. The current kernels for 12.04 and later do not correctly identify the devices as being capable of supporting unmap
To post a comment you must log in.
The test kernel from http:// people. canonical. com/~apw/ lp1177609- saucy/ is confirmed. I tested it against the latest Ubuntu 13.10 daily build on Windows Azure.
Fix is confirmed.
[ 6.923197] hv_vmbus: registering driver hv_storvsc device_ configure sdevice= ffff880147ae080 0 marked use_vpd_spc2 = 1 e0800 returning 1 5dc000 called 5dc000 called 5dc000 after sd_read_ protection_ type 5dc000 checking LBPME 5dc000 checking LBPME found block_character istics: sdkp=ffff880147 5dc000 got page extended_ inquiry sdp=ffff880147a e0800 sdp->scsi_level=5 sdp->use_vpd_spc2=1 extended_ inquiry sdp=00000000000 00046 returning 1 block_provision ing: sdkp=ffff880147 5dc000 called block_provision ing: sdkp=ffff880147 5dc000 getting page block_provision ing: sdkp=ffff880147 5dc000 got page sdkp->lbpu=1 sdkp->lbpws=0 sdkp->lbpws10=0 block_limits: sdkp=ffff880147 5dc000 called block_limits: sdkp=ffff880147 5dc000 got page block_character istics: sdkp=ffff880147 5dc000 called block_character istics: sdkp=ffff880147 5dc000 got page device_ configure sdevice= ffff880147ae580 0 marked use_vpd_spc2 = 1 e5800 returning 1 5de000 called 5de000 called e0800 returning 1 5dc000 called 5dc000 called 5de000 after sd_read_ protection_ type
[ 6.936018] hv_utils: Registering HyperV Utility Driver
[ 6.938944] hv_vmbus: registering driver hv_util
[ 6.955275] hv_vmbus: registering driver hv_netvsc
[ 6.959151] hv_netvsc: hv_netvsc channel opened successfully
[ 7.067640] hv_netvsc vmbus_0_14: Device MAC 00:15:5d:36:4c:c2 link state up
[ 7.072234] scsi2 : storvsc_host_t
[ 7.074757] scsi 2:0:0:0: Direct-Access Msft Virtual Disk 1.0 PQ: 0 ANSI: 4
[ 7.077609] APW: storvsc_
[ 7.081427] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 7.084174] APW: sd_try_rc16_first sdp=ffff880147a
[ 7.086447] APW: read_capacity_16: sdkp=ffff880147
[ 7.088689] APW: read_capacity_16: sdkp=ffff880147
[ 7.091254] APW: read_capacity_16: sdkp=ffff880147
[ 7.094051] APW: read_capacity_16: sdkp=ffff880147
[ 7.096925] APW: read_capacity_16: sdkp=ffff880147
[ 7.099850] APW: sd_read_
[ 7.102641] sd 2:0:0:0: [sda] 61440000 512-byte logical blocks: (31.4 GB/29.2 GiB)
[ 7.105287] sd 2:0:0:0: [sda] 1024-byte physical blocks
[ 7.107478] APW: sd_try_
[ 7.110345] APW: sd_try_
[ 7.112746] APW: sd_revalidate_disk calling those VPD bits
[ 7.115208] APW: sd_read_
[ 7.118092] APW: sd_read_
[ 7.121964] APW: sd_read_
[ 7.125665] APW: sd_read_
[ 7.129145] APW: sd_read_
[ 7.131437] APW: sd_read_
[ 7.134196] APW: sd_read_
[ 7.136489] scsi3 : storvsc_host_t
[ 7.138479] sd 2:0:0:0: [sda] Write Protect is off
[ 7.140470] sd 2:0:0:0: [sda] Mode Sense: 0f 00 10 00
[ 7.140490] scsi 3:0:1:0: Direct-Access Msft Virtual Disk 1.0 PQ: 0 ANSI: 4
[ 7.142907] APW: storvsc_
[ 7.146972] APW: sd_try_rc16_first sdp=ffff880147a
[ 7.149185] APW: read_capacity_16: sdkp=ffff880147
[ 7.150829] APW: read_capacity_16: sdkp=ffff880147
[ 7.152442] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 7.155724] sd 3:0:1:0: Attached scsi generic sg2 type 0
[ 7.157796] APW: sd_try_rc16_first sdp=ffff880147a
[ 7.159853] APW: read_capacity_16: sdkp=ffff880147
[ 7.162645] APW: read_capacity_16: sdkp=ffff880147
[ 7.165186] APW: read_capacity_16: sdkp=ffff880147
[ 7.167659] APW: read_capa...