I am assuming you skip the defrag section of this, or will sdelete only zero 
out the last contiguous block of “free” space?

I only ask as we snapshot our KVM zones frequently, so any kind of defrag would 
probably fill the zpool pretty quickly!

> On 18 Jan 2017, at 08:25, Ian Collins <[email protected]> wrote:
> 
> On 01/18/17 08:31 PM, Matthias Goetzke wrote:
>> We have a machine which temporarily got 98% full and the boot time of a KVM 
>> windows server has gotten quite extreme (minutes on the black part of the 
>> boot alone).
>> Apart from over-allocating, we guess it might have to do with fragmentation 
>> of the underlying C drive (just a hunch due to the number of writes on C and 
>> the fact that overall fragmentation was temporarily >78%) since another win 
>> machine still booted up quite quickly.
>>  
>> If a kvm disk were just a file then I could just make a copy of the C drive 
>> (I have enough space now) into a new file which should (in theory) just 
>> create new aligned blocks and once I delete the old file it should be 
>> defragmented mostly.
>> 
> 
> A KVM disk is a sparse provisioned zfs volume, not a file.
> 
> Part of the basic maintenance I perform on Windows KVMs is well documented 
> here:
> 
> https://www.maketecheasier.com/shrink-your-virtualbox-vm 
> <https://www.maketecheasier.com/shrink-your-virtualbox-vm>.
> 
> You will see the REFER number for the volume reduce dramatically when you run 
> sdelete.
> 
> It is also fairly easy to increase the volsize of the underlying disk and 
> expand your windoze partition to fill it.
> -- 
> Ian.
> smartos-discuss | Archives 
> <https://www.listbox.com/member/archive/184463/=now>  
> <https://www.listbox.com/member/archive/rss/184463/28443474-1732e24d> | 
> Modify <https://www.listbox.com/member/?&;> Your Subscription  
> <http://www.listbox.com/>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to