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.
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
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