via google search for btrfs and o_direct i found this wiki page
https://pve.proxmox.com/wiki/Special:WhatLinksHere/Storage:_BTRFS
that mentions the folloging important information
"BTRFS will honor the O_DIRECT flag when opening files, meaning VMsshould not use cache mode none, otherwise there will be checksum errors."
this indeed is a known problem with btrfs, and not resolved.
https://bugzilla.redhat.com/show_bug.cgi?id=1914433
furthermore, when using compression, O_DIRECT renders compression useless ( https://marc.info/?l=linux-btrfs&m=171053186915054&w=2 )
i can confirm this problem, because i just experienced such errors and started searching for the reason.
two questions:
1. why does this important page/information seem to get lost in the wiki ?
2. why does a virtual disk of a VM created on top of btrfs still default to cache=none ?
https://pve.proxmox.com/wiki/Special:WhatLinksHere/Storage:_BTRFS
that mentions the folloging important information
"BTRFS will honor the O_DIRECT flag when opening files, meaning VMsshould not use cache mode none, otherwise there will be checksum errors."
this indeed is a known problem with btrfs, and not resolved.
https://bugzilla.redhat.com/show_bug.cgi?id=1914433
furthermore, when using compression, O_DIRECT renders compression useless ( https://marc.info/?l=linux-btrfs&m=171053186915054&w=2 )
i can confirm this problem, because i just experienced such errors and started searching for the reason.
two questions:
1. why does this important page/information seem to get lost in the wiki ?
2. why does a virtual disk of a VM created on top of btrfs still default to cache=none ?