Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2020 09:53:08 +0200
From:      Andrea Venturoli <ml@netfence.it>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve, Windows guest and trim support
Message-ID:  <2cd7021a-daac-dad8-9fa3-27dc9fc38181@netfence.it>
In-Reply-To: <20200712131347.cjvr4cpbo3rsgnik@nexus.home.palmen-it.de>
References:  <e15ba239-9a73-2821-1f42-1700d74d031b@netfence.it> <4e0c7427-8bb4-37d6-b717-181d5c9b66d3@freebsd.org> <20200707154025.wm6u4abbrz5tesha@nexus.home.palmen-it.de> <75f28176-c22a-8742-e86c-d73609cd5463@netfence.it> <20200712131347.cjvr4cpbo3rsgnik@nexus.home.palmen-it.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-07-12 15:13, Felix Palmen wrote:
> * Andrea Venturoli <ml@netfence.it> [20200707 18:18]:
>> I have yet to try this, but, as I said, I switched temporaly to ahci-hd and
>> used the instructions at the following link to reclaim space (without the
>> need to start a new zvol):
>>
>> https://winaero.com/blog/trim-ssd-windows-10/
> 
> Thanks for this hint, I can now confirm this also works with virtio-blk
> (applied Allan's patch to 12.1). REFER for the zvol backing my Windows
> Server 2016 dropped from 315G to 72.5G.

Hmm...
I applied the same patch and, still using virtio-blk, when trying to 
retrim, Windows says "Optimize-Volume : The volume optimization 
operation requested is not supported by the hardware backing the volume."
Seems like the guest doesn't think TRIM support is available.
Do I have to set anything?

I have the following in the machine config (I'm using vm-bhyve):
disk0_type="virtio-blk"
disk0_name="disk0"
disk0_dev="zvol"
disk0_opts="sectorsize=512"


  bye & Thanks
	av.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2cd7021a-daac-dad8-9fa3-27dc9fc38181>