Page 1 of 1

[SOLVED] iSCSI target cannot be configured

Posted: 2014/09/22 16:11:07
by NickC
I have installed CentOS 7 with the software selection: File and Storage server

However it seems that iSCSI target is not getting installed. I cannot find anything in the CentOS repositories for iSCSI target either. I take it CentOS 7 can be used as an iSCSI target can't it?

Re: iSCSI target cannot be configured

Posted: 2014/09/22 16:53:16
by drk
CentOS 7 doesn't use the tgtd that 6 did. Install "targetcli" and go from there.

Re: iSCSI target cannot be configured

Posted: 2014/09/23 10:11:47
by NickC
drk wrote:CentOS 7 doesn't use the tgtd that 6 did. Install "targetcli" and go from there.
Thanks

Re: iSCSI target cannot be configured

Posted: 2014/09/30 15:49:05
by NickC
drk wrote:CentOS 7 doesn't use the tgtd that 6 did. Install "targetcli" and go from there.
Thanks to your pointer I have now got iSCSI target working, many thanks.

Re: [SOLVED] iSCSI target cannot be configured

Posted: 2014/11/08 15:12:52
by dbaxps
To make changes done in targetcli environment persistent between reboots,
you should :-
# systemctl enable target
# systemctl start target
# systemctl status target -l
target.service - Restore LIO kernel target configuration
Loaded: loaded (/usr/lib/systemd/system/target.service; enabled)
Active: active (exited) since Sat 2014-11-08 14:45:06 MSK; 3h 26min ago
Process: 1661 ExecStart=/usr/bin/targetctl restore (code=exited, status=0/SUCCESS)
Main PID: 1661 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/target.service

Nov 08 14:45:06 juno1.localdomain systemd[1]: Started Restore LIO kernel target configuration.