SOLVED ISCSI SERVICE WANT START

Status
Not open for further replies.

tbaror

Contributor
Joined
Mar 20, 2013
Messages
105
Hi All,

I am testing 9.3 Beta i am trying to configure iscsi , after configuring all component i get error that iscsi service failed to start
looking on the log i got following error below ,
error log and config
Please advice
Thanks
---------------
Nov 30 04:09:02 freenas notifier: ctld not running? (check /var/run/ctld.pid).
Nov 30 04:09:02 freenas notifier: ctld not running? (check /var/run/ctld.pid).
Nov 30 04:09:02 freenas notifier: Starting ctld.
Nov 30 04:09:02 freenas notifier: ctld: unknown discovery-auth-group "agNone" for portal-group "pg1"
Nov 30 04:09:02 freenas ctld[7444]: unknown discovery-auth-group "agNone" for portal-group "pg1"
Nov 30 04:09:02 freenas ctld[7444]: configuration error; exiting
Nov 30 04:09:02 freenas notifier: ctld: configuration error; exiting
Nov 30 04:09:02 freenas root: /etc/rc.d/ctld: WARNING: failed to start ctld
Nov 30 04:09:02 freenas notifier: /etc/rc.d/ctld: WARNING: failed to start ctld

config etc/ctld.conf
-----------------------
portal-group pg1 {
discovery-auth-group agNone
listen 0.0.0.0:3260
}

auth-group ag4tg_1 {
}

target iqn.2011-03.org.example.istgt:tr1 {
alias tr1
auth-group no-authentication
portal-group pg1

lun 0 {
path /mnt/zvol1/extis1
blocksize 512
serial 001517d3e7e400
device-id "iSCSI Disk 001517d3e7e4000 "
size 400G
option vendor "FreeBSD"
option product "iSCSI Disk"
option revision "0123"
option naa 0x3808f5b5f367c5a0
option insecure_tpc on
}
}
 

lucid

Cadet
Joined
Nov 30, 2014
Messages
7
iSCSI Service settings >

Step1:
Target Global Configuration

Set Discovery Auth Method, Discovery Auth Group to None

Step2:
Portals

Set a Portal IP to listen on

Step3:
Inititators

Leave Initiator to all
Add an Authorized network (example: 10.0.0.0/24)

Step4:
Targets

Set Target Name
Set Portal ID
Set Initiator ID
Set Auth Method: None
Authentication Group number: None

Step5:
Extents

Add Your Extents

Step6:
Associated Targets

Add an Associated Target - One for each Target/Extent


My ctl.conf looks like this:

portal-group pg1 {
discovery-auth-group no-authentication
listen 10.1.1.1:3260
}

auth-group ag4tg_1 {
initiator-portal 10.1.1.1/24
auth-type "none"
}

target iqn.2014-06.xxxxxxx,xxx.xxx:esxi {
alias esxi
auth-group ag4tg_1
portal-group pg1

lun 0 {
path /mnt/ZFSDATA/folder/lun.iscsi
blocksize 512
serial 000c2937247001
device-id "iSCSI Disk 000c2937247001 "
option vendor "FreeBSD"
option product "iSCSI Disk"
option revision "0123"
option naa 0x3cf19e2613z59b1c
option insecure_tpc on
}
}
 
Status
Not open for further replies.
Top