Hi,
i noticed that my two of my backup VMs use internally less space than is seen on hipervizor.
Here is an example.
Inside VM:
Outside VM:
Seems to me like the VM uses lots of small files (ext4 is default 4k) which in turn use 8k blocks on host and use twice as much disk space.
I might be wrong. It might also be related to compression. Does anyone care to explain?
I guess I could stop the VM, send rpool/data/vm-140-disk-1 elsewhere, recreate it (just this zvol) with 4k block size, send data back and start VM.
What do you guys think? Will this work and also decrease disk usage?
I also forgot why again we went with 8k default. I guess I could google.
i noticed that my two of my backup VMs use internally less space than is seen on hipervizor.
Here is an example.
Inside VM:
Code:
/dev/sdb 4.0T 1.8T 2.2T 44% /backup
Code:
rpool/data/vm-140-disk-1 2.70T 1.58T 2.70T -
VOLSIZE LUSED USED VOLBLOCK COMPRESS VOLBLOCK
3.91T 1.66T 2.70T 8K on 8K
Seems to me like the VM uses lots of small files (ext4 is default 4k) which in turn use 8k blocks on host and use twice as much disk space.
I might be wrong. It might also be related to compression. Does anyone care to explain?
I guess I could stop the VM, send rpool/data/vm-140-disk-1 elsewhere, recreate it (just this zvol) with 4k block size, send data back and start VM.
What do you guys think? Will this work and also decrease disk usage?
I also forgot why again we went with 8k default. I guess I could google.