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?
Thanks in advance for any help
Greg
Le 16/01/2026 … 17:34, Greg a ‚crit˙:
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?
Thanks in advance for any help
Greg
Hello,
I know nothing about iscsi, but the RedHat doc has a chapter showing how
to create a read-only target: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/ html/managing_storage_devices/configuring-an-iscsi-target_managing- storage-devices#creating-a-read-only-iscsi-lun_configuring-an-iscsi-target
I'm not trying to make it read-only. I'm trying to turn on memory caching.
Le 16/01/2026 … 20:44, Greg a ‚crit˙:Yes but I don't like the extra layer (filesystem) in between, I prefer
I'm not trying to make it read-only. I'm trying to turn on memory
caching.
Sorry: I did not read your post carefully enough and I am kind of absent-minded :-(
this other paragraph of the RedHat doc does not mention read caching but states that you can enable write caching by creating a fileio stortage object:
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?
Thanks in advance for any help
Greg
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 since
it adds to the risk of data loss.
If you don't care about losing theThat's not an option for me. I need block storage, but with caching.
data then you can store the data in memory instead of on a disk. Just
use a tmpfs or other ramdisk.
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?
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 19:04:12 |
| Calls: | 117 |
| Calls today: | 117 |
| Files: | 367 |
| D/L today: |
540 files (253M bytes) |
| Messages: | 70,845 |
| Posted today: | 26 |