Most basic tests cross check on Fedora:
First I tried a safe no-op
$ iscsiadm -m discovery -t sendtargets -p 127.0.0.1
This is working fine on fedora to activate the service
Then I tried on the fedora setup if the cmd we call would activate it.
$ /sbin/iscsiadm -m node --loginall=automatic
iscsiadm: No records found
And the service is not activated.
But that is ok, I really had no config and /lib/systemd/system/open-iscsi.service explicitly defined RC=21 as ok for just this reason.
Most basic tests cross check on Fedora:
First I tried a safe no-op
$ iscsiadm -m discovery -t sendtargets -p 127.0.0.1
This is working fine on fedora to activate the service
Then I tried on the fedora setup if the cmd we call would activate it. automatic system/ open-iscsi. service explicitly defined RC=21 as ok for just this reason.
$ /sbin/iscsiadm -m node --loginall=
iscsiadm: No records found
And the service is not activated.
But that is ok, I really had no config and /lib/systemd/
If to configure something: "iqn.2016- 11.foo. com:target. 1.iscsi" "127.0. 0.1:3260"
$ targetname=
$ truncate --size 100M backingfile1
$ tgtadm --lld iscsi --op new --mode target --tid 1 -T "${targetname}"
$ tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
$ portal=
$ iscsiadm --mode discovery --type sendtargets --portal 127.0.0.1
$ iscsiadm --mode node --targetname "${targetname}" --portal 127.0.0.1:3260 --login
$ iscsiadm --mode node --targetname "${targetname}" --portal "${portal}" --logout
This should now be usable