On 1/16/26 21:57, debian-user@howorth.org.uk wrote:
Greg <pld@sojka.co> wrote:hi there, I'm setting up an iSCSI server on Trixie. My plan is to export a block device with memory caching enabled for both reads and writes. Unfortunately, no matter what I try, targetcli always shows write-thru mode (for block devices). is there any way to change this? Different software?Additional memory caching on disk writes is generally discouraged sinceit adds to the risk of data loss.
When using appropriate hardware, the risk is really low.
If you don't care about losing the data then you can store the data in memory instead of on a disk. Just use a tmpfs or other ramdisk.
That's not an option for me. I need block storage, but with caching.