I'm currently trying to determine if using the VIRTIO-SCSI adapter which can pass discard / fstrim commands to the underlying zdev storage is ensuring that unused blocks are not referenced during backups. I have successfully used in guest disk zeroing to reduce the size of the sparse file, but the backup still walks the entire file to compress it.
Since ZFS zdev sparse images are truly sparse, the fstrim should release the blocks, so that during backup, empty space on disk is not even scanned as it is sparsely referenced.
So far my tests have not shown this to be happening.
Both tests on Ubuntu Server 14
Backup Test 1
Filesystem Zeroed, no fstrim ran
Backup Test 2
Filesystem Zeroed, fstrim ran, 50 gb released
Maybe I am missing something, or wanting something impossible.
--Can someone chime in?I cannot get this bloody post to format in a readable way.. sorry.--
Since ZFS zdev sparse images are truly sparse, the fstrim should release the blocks, so that during backup, empty space on disk is not even scanned as it is sparsely referenced.
So far my tests have not shown this to be happening.
Both tests on Ubuntu Server 14
Backup Test 1
Filesystem Zeroed, no fstrim ran
Code:
INFO: transferred 64424 MB in 979 seconds (65 MB/s)
INFO: stopping kvm after backup task
INFO: archive file size: 4.44GB
INFO: Finished Backup of VM 102 (00:16:32)
INFO: Backup job finished successfully
TASK OK
Backup Test 2
Filesystem Zeroed, fstrim ran, 50 gb released
Code:
INFO: transferred 64424 MB in 949 seconds (67 MB/s)
INFO: stopping kvm after backup task
INFO: archive file size: 4.44GB
INFO: Finished Backup of VM 102 (00:16:01)
INFO: Backup job finished successfully
TASK OK
--Can someone chime in?I cannot get this bloody post to format in a readable way.. sorry.--
Last edited by a moderator: