Hi,
I currently have a ZFS pool of SSDs where I have some VMs on zvols (ext4 fs), and I want to create a VM with an encrypted disk that would be encrypted using LUKS and use BTRFS as a file system. I have read that using a COW filesystem (BTRFS) on a COW filesystem (ZFS) is not a good idea performance wise, and I'm wondering why ?
From my understanding, if I want to modify a file in BTRFS, it will allocate a new space to write the data (due to the COW natures of BTRFS) which to the underlying ZFS will look like a new file. Then BTRFS will discard the old location, which will be freed on the zvol. To me, it doesn't seem to be more total work (in terms of read/writes) apart from the cost of the two filesystems (and luks encryption) code to execute? Am I understanding it wrong ?
I currently have a ZFS pool of SSDs where I have some VMs on zvols (ext4 fs), and I want to create a VM with an encrypted disk that would be encrypted using LUKS and use BTRFS as a file system. I have read that using a COW filesystem (BTRFS) on a COW filesystem (ZFS) is not a good idea performance wise, and I'm wondering why ?
From my understanding, if I want to modify a file in BTRFS, it will allocate a new space to write the data (due to the COW natures of BTRFS) which to the underlying ZFS will look like a new file. Then BTRFS will discard the old location, which will be freed on the zvol. To me, it doesn't seem to be more total work (in terms of read/writes) apart from the cost of the two filesystems (and luks encryption) code to execute? Am I understanding it wrong ?