ISCSI Initiator - start at boot time

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
8192
Ronin
Ronin
Posts: 2
Joined: 21 Oct 2019, 16:03
Distribution: PorteUS 4.0

ISCSI Initiator - start at boot time

Post#1 by 8192 » 21 Oct 2019, 16:18

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 :)

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2200
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

ISCSI Initiator - start at boot time

Post#2 by ncmprhnsbl » 24 Oct 2019, 09:31

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2200
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

ISCSI Initiator - start at boot time

Post#3 by ncmprhnsbl » 27 Oct 2019, 01:21

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...
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply