On Fri, 12 Oct 2012, Insan Praja SW wrote:

> Hi all,
> 
> On Fri, 12 Oct 2012 04:18:31 +0700, Claudio Jeker
> <cje...@diehard.n-r-g.com> wrote:
> 
> >On Thu, Oct 11, 2012 at 04:05:28PM +0700, Insan Praja SW wrote:
> >>Hi Misc@,
> >>
> >>Has anyone tried using OBSD iscsid(8) initiator and FreeNAS target?
> >>I was trying to do it on amd64 -current but so far unsuccessful.
> >>
> >>Best Regards,
> >>
> >>
> >>Insan
> >>
> >>
> >>iscsi.conf
> >>----------
> >>target "Disk2" {
> >>        enabled
> >>        normal
> >>        targetaddr 10.10.10.139
> >>        targetname "iqn.2012-03.xxxxxxx.net:disk2"
> >>}
> >>
> >>/var/log/messages
> >>-----------------
> >>Oct 11 13:25:46 backend iscsid[11678]: fatal: vscsi_open: No such
> >>file or directory
> >>
> >
> >Funky. Did you try iscsid -dvn /dev/vscsi0 ?
> >I have never seen the open() call fail for vscsi. You could also try to
> >open /dev/vscsi0 with cat just to see if that fails too.
> >
> 
> $ sudo iscsid -dvn /dev/vscsi0
> startup
> iscsid: unknown user _iscsid


Hi Claudio,

Since iscsid is already linked to the build, why not adding the
required user?

Index: ftpusers
===================================================================
RCS file: /cvs/src/etc/ftpusers,v
retrieving revision 1.43
diff -u -p -r1.43 ftpusers
--- ftpusers    3 Jun 2010 20:32:36 -0000       1.43
+++ ftpusers    12 Oct 2012 12:11:43 -0000
@@ -53,3 +53,4 @@ _ldpd
 _sndio
 _ldapd
 _iked
+_iscsid
Index: group
===================================================================
RCS file: /cvs/src/etc/group,v
retrieving revision 1.59
diff -u -p -r1.59 group
--- group       3 Jun 2010 20:28:22 -0000       1.59
+++ group       12 Oct 2012 12:11:43 -0000
@@ -66,6 +66,7 @@ _ldpd:*:98:
 _sndio:*:99:
 _ldapd:*:100:
 _iked:*:101:
+_iscsid:*:102:
 dialer:*:117:
 nogroup:*:32766:
 nobody:*:32767:
Index: master.passwd
===================================================================
RCS file: /cvs/src/etc/master.passwd,v
retrieving revision 1.67
diff -u -p -r1.67 master.passwd
--- master.passwd       4 Oct 2011 16:32:13 -0000       1.67
+++ master.passwd       12 Oct 2012 12:11:43 -0000
@@ -48,4 +48,5 @@ _ldpd:*:98:98::0:0:LDP Daemon:/var/empty
 _sndio:*:99:99::0:0:sndio privsep:/var/empty:/sbin/nologin
 _ldapd:*:100:100::0:0:LDAP Daemon:/var/empty:/sbin/nologin
 _iked:*:101:101::0:0:IKEv2 Daemon:/var/empty:/sbin/nologin
+_iscsid:*:102:102::0:0:iSCSI Daemon:/var/empty:/sbin/nologin
 nobody:*:32767:32767::0:0:Unprivileged user:/nonexistent:/sbin/nologin

Reply via email to