diff options
author | Timofey Titovets | 2016-11-03 16:31:32 +0300 |
---|---|---|
committer | Timofey Titovets | 2016-11-03 16:31:32 +0300 |
commit | b24670541649627654202f9560ea7a8d2ac75816 (patch) | |
tree | 099ea215f60fc6ce0e7df492557050420a0cd9e2 /scaleio-sds.install | |
parent | 4f765ab439094a0cce215af614d20e2f21806d37 (diff) | |
download | aur-b24670541649627654202f9560ea7a8d2ac75816.tar.gz |
Add working SDS
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Diffstat (limited to 'scaleio-sds.install')
-rw-r--r-- | scaleio-sds.install | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/scaleio-sds.install b/scaleio-sds.install new file mode 100644 index 000000000000..e03ad158f2b3 --- /dev/null +++ b/scaleio-sds.install @@ -0,0 +1,36 @@ +post_install(){ + TGT_OPT_CFG_FILE=/opt/emc/scaleio/sds/cfg/conf_opt.txt + TGT_CFG_FILE=/opt/emc/scaleio/sds/cfg/conf.txt + + #Generate the optimize cont file + { + echo tgt_net__recv_buffer=4096 + echo tgt_net__send_buffer=4096 + echo tgt_thread__ini_io=500 + echo tgt_thread__tgt_io_main=500 + echo tgt_umt_num=1500 + echo tgt_umt_os_thrd=8 + echo tgt_net__worker_thread=8 + echo tgt_asyncio_max_req_per_file=400 + } > $TGT_OPT_CFG_FILE + + + #Generate the conf file + { + echo tgt_rep__name=/opt/emc/scaleio/sds/cfg/rep_tgt.txt + echo use_fifo_file=1 + echo fifo_filename=/opt/emc/scaleio/sds/bin/.mos.fifo + } > $TGT_CFG_FILE + + echo "To enable: systemctl enable sds" + echo "You can optimize config: $TGT_CFG_FILE" + echo "By using options from: $TGT_OPT_CFG_FILE" +} + +post_upgrade(){ + : +} + +post_remove(){ + : +} |