[SOLVED] iSCSI target cannot be configured

General support questions
Post Reply
NickC
Posts: 186
Joined: 2012/01/20 16:13:41

[SOLVED] iSCSI target cannot be configured

Post by NickC » 2014/09/22 16:11:07

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?
Last edited by NickC on 2014/10/16 15:44:33, edited 1 time in total.

drk
Posts: 405
Joined: 2014/01/30 20:38:28

Re: iSCSI target cannot be configured

Post by drk » 2014/09/22 16:53:16

CentOS 7 doesn't use the tgtd that 6 did. Install "targetcli" and go from there.

NickC
Posts: 186
Joined: 2012/01/20 16:13:41

Re: iSCSI target cannot be configured

Post by NickC » 2014/09/23 10:11:47

drk wrote:CentOS 7 doesn't use the tgtd that 6 did. Install "targetcli" and go from there.
Thanks

NickC
Posts: 186
Joined: 2012/01/20 16:13:41

Re: iSCSI target cannot be configured

Post by NickC » 2014/09/30 15:49:05

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.

dbaxps
Posts: 1
Joined: 2014/11/08 15:04:54

Re: [SOLVED] iSCSI target cannot be configured

Post by dbaxps » 2014/11/08 15:12:52

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.

Post Reply