New user of tgtd
Hi,
I am a new user of tgtd. I am intending to replace LIO with tgtd because it's a user-space target.
My use-case is to export files to remote initiators, so I will be using the backing-store option.
I have been trying to go through the docs and examples but I have some questions I'd like to clarify.
* aio driver. Does this mean tgtd won't pass down flush/barrier requests from initiators (like in LIO)? I. E. data loss on power failure?
* I am using btrfs on the target server and I'd like to use the thin_provisioning option. Am I correct in that this has to be enabled via "params thin_provisioning=1" in the backing-store section?
* Is there a way to hint to the initiators that the LUN is non-rotational? Some OSes use this parameter to adjusts its internal io scheduling.
* i notice that tgtd uses 16 IO threads no matter the number of cpus. Is there a guideline on a suitable number for my use-case?
* Is ErrorRecoveryLevel=1/2 implemented in tgtd so that supporting clients transparently can recreate the connection after interruption or target restarts?
* the targets.conf.5.xml doesn't seem to include all available options. I am glad for the examples which helped me get going :)
I also noticed the following warning:
tgtd: bs_init_signalfd(267) could not open backing-store module directory /usr/lib/tgt/backing-store
I created the dir, but can't see it is actualky being used. What is the purpose of this directory?
Thanks,
~ Forza
Quoted 1 line
* Is there a way to hint to the initiators that the LUN is non-rotational? Some OSes use this parameter to adjusts its internal io scheduling.
I think the param rotation_rate=0 will do that.
---- From: ronnie sahlberg <[email protected]> -- Sent: 2023-07-14 - 17:46 ----
Quoted 3 lines
Quoted 1 line
* Is there a way to hint to the initiators that the LUN is non-rotational? Some OSes use this parameter to adjusts its internal io scheduling.
I think the param rotation_rate=0 will do that.
Thank you. I didn't see it as a documented opinion, but looking through the source code[*] it seems to be the correct option.
[*] https://github.com/fujita/tgt/blob/1a5e14e678ba944986428f4abc586a68e7cdf31a/usr/tgtd.h#L93
~ Forza
Quoted 5 lines · Forza
---- From: ronnie sahlberg <[email protected]> -- Sent: 2023-07-14 - 17:46 ----
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
* Is there a way to hint to the initiators that the LUN is non-rotational? Some OSes use this parameter to adjusts its internal io scheduling.
I think the param rotation_rate=0 will do that.
Thank you. I didn't see it as a documented opinion, but looking through the source code[*] it seems to be the correct option.
[*] https://github.com/fujita/tgt/blob/1a5e14e678ba944986428f4abc586a68e7cdf31a/usr/tgtd.h#L93
The documentation might be missing here because it is possibly an unusual thing to need.
Maybe create a pull request to add this to the docs?
Quoted 3 lines
~ Forza
---- From: ronnie sahlberg <[email protected]> -- Sent: 2023-07-14 - 23:21 ----
Quoted 10 lines · Forza
Quoted 9 lines
---- From: ronnie sahlberg <[email protected]> -- Sent: 2023-07-14 - 17:46 ----
Quoted 3 lines
Quoted 1 line
* Is there a way to hint to the initiators that the LUN is non-rotational? Some OSes use this parameter to adjusts its internal io scheduling.
I think the param rotation_rate=0 will do that.
Quoted 9 lines
Quoted 3 lines
Thank you. I didn't see it as a documented opinion, but looking through the source code[*] it seems to be the correct option.
[*] https://github.com/fujita/tgt/blob/1a5e14e678ba944986428f4abc586a68e7cdf31a/usr/tgtd.h#L93
The documentation might be missing here because it is possibly an unusual thing to need.
Maybe create a pull request to add this to the docs?
Yes, good idea. I did a small PR.
Thanks.
Quoted 3 lines
Quoted 3 lines
~ Forza