Page 1 of 1

ISCSI Initiator - start at boot time

Posted: 21 Oct 2019, 16:18
by 8192
Hello

I have Porteus 4.0 LXQT, and I need install iscsi initiator, and start iscsi initiator at boot time, and connect to external iscsi server.

1. Please tell me, how I can download ISCSI Initiator, and how build module. ( I need all packages in one module - example name: iscsi-initiator-complete.xzm )
2. When computer start, I need execute script for start ISCSI initiator and connect to external ISCSI Server. ( external iscsi server: pyTarget for test )
3. When iscsi initiator connected - I need mount external disk as example: /mnt/iscsi_disk1 at boot time.

Sorry for my english :)

ISCSI Initiator - start at boot time

Posted: 24 Oct 2019, 09:31
by ncmprhnsbl
i know zero about iscsi... but i guess open-iscsi has the tools needed to do what you want.
there is no slackware package that i can find, so it will need to be compiled from source:
https://github.com/open-iscsi/open-iscsi
https://github.com/open-iscsi/open-iscsi/releases
since iscsi is built into the kernel, it may have to be compiled for the specific kernel you're using.. (devel and possibly crippled kernel sources modules will be needed)
i'll have a look into it and see if i can compile it for you..

ISCSI Initiator - start at boot time

Posted: 27 Oct 2019, 01:21
by ncmprhnsbl
here's a module to start with:

Code: Select all

open-iscsi-2.0.875-x86_64+.xzm
contents:

Code: Select all

├── etc
│   ├── iscsi
│   │   ├── ifaces
│   │   │   └── iface.example
│   │   ├── initiatorname.iscsi
│   │   └── iscsid.conf
│   └── isns
│       ├── isnsadm.conf
│       ├── isnsd.conf
│       └── isnsdd.conf
├── sbin
│   ├── iscsi-iname
│   ├── iscsi_discovery
│   ├── iscsiadm
│   ├── iscsid
│   └── iscsiuio
├── usr
│   ├── include
│   │   └── libisns
│   │       ├── attrs.h
│   │       ├── buffer.h
│   │       ├── isns-proto.h
│   │       ├── isns.h
│   │       ├── message.h
│   │       ├── paths.h
│   │       ├── source.h
│   │       ├── types.h
│   │       └── util.h
│   ├── lib
│   │   └── systemd
│   │       └── system
│   │           ├── isnsd.service
│   │           └── isnsd.socket
│   ├── lib64
│   │   ├── libisns.a
│   │   ├── libisns.so -> libisns.so.0
│   │   └── libisns.so.0
│   ├── sbin
│   │   ├── isnsadm
│   │   ├── isnsd
│   │   └── isnsdd
│   └── share
│       └── man
│           ├── man5
│           │   └── isns_config.5
│           └── man8
│               ├── iscsi_discovery.8
│               ├── iscsiadm.8
│               ├── iscsid.8
│               ├── iscsiuio.8
│               ├── isnsadm.8
│               ├── isnsd.8
│               └── isnsdd.8
└── var
    ├── lib
    │   └── isns
    └── log
        ├── packages
        │   ├── open-iscsi-2.0.875-x86_64-ncm
        │   └── open-isns-0.99-x86_64-ncm
        ├── removed_packages
        ├── removed_scripts
        ├── scripts
        │   └── open-isns-0.99-x86_64-ncm
        └── setup
            └── tmp
you possibly need to modify /etc/iscsi/iscsi.conf
and maybe the cheatcode: cliexec= could be used to start the daemon or a script that does that and more...