the _iscsid user (was Re: iscsid(8) and FreeNAS 8.2.0)

2012-10-12 Thread David Coppa
On Fri, 12 Oct 2012, Insan Praja SW wrote:

> Hi all,
> 
> On Fri, 12 Oct 2012 04:18:31 +0700, Claudio Jeker
>  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.xxx.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
--- ftpusers3 Jun 2010 20:32:36 -   1.43
+++ ftpusers12 Oct 2012 12:11:43 -
@@ -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 -   1.59
+++ group   12 Oct 2012 12:11:43 -
@@ -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 -   1.67
+++ master.passwd   12 Oct 2012 12:11:43 -
@@ -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



Re: iscsid(8) and FreeNAS 8.2.0

2012-10-12 Thread David Coppa
On Fri, 12 Oct 2012, Insan Praja SW wrote:

> Hi all,
> 
> On Fri, 12 Oct 2012 04:18:31 +0700, Claudio Jeker
>  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.xxx.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
> $ sudo cat /dev/vscsi0
> cat: /dev/vscsi0: Operation not supported by device
> $

Try this:

# groupadd _iscsid
# useradd -g _iscsid -s /sbin/nologin -d /var/empty -c "iSCSI Daemon" _iscsid


There's also a quick how-to:

http://openbsd-wip.blogspot.com/2012/01/openbsd-iscsi-howto.html

Ciao,
David



Re: iscsid(8) and FreeNAS 8.2.0

2012-10-11 Thread Insan Praja SW

Hi all,

On Fri, 12 Oct 2012 04:18:31 +0700, Claudio Jeker  
 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.xxx.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
$ sudo cat /dev/vscsi0
cat: /dev/vscsi0: Operation not supported by device
$

Thanks,


Insan Praja SW

--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: iscsid(8) and FreeNAS 8.2.0

2012-10-11 Thread Claudio Jeker
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.xxx.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.

-- 
:wq Claudio



Re: iscsid(8) and FreeNAS 8.2.0

2012-10-11 Thread Insan Praja SW
Sorry, paste-ing info from the wrong machine. This is the vscsi0 on the  
right machine.


$ ls -la /dev | grep vscsi
crw---   1 root   wheel  89,   0 Aug 31 11:28 vscsi0

On Thu, 11 Oct 2012 23:34:03 +0700, Chris Cappuccio 
wrote:


Do you have a /dev/vscsi0 ?


$ ls -la /dev | grep vscsi
crw---   1 root   wheel  90,   0 Oct  8 22:42 vscsi0
$



If not, cd /dev and ./MAKEDEV vscsi

Insan Praja SW [insan.pr...@gmail.com] 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.xxx.net:disk2"
}



Thanks


/var/log/messages
-
Oct 11 13:25:46 backend iscsid[11678]: fatal: vscsi_open: No such
file or directory

dmesg
-
OpenBSD 5.2-current (GENERIC.MP) #4: Mon Oct  1 19:44:56 WIT 2012
r...@backend.xxx.xxx:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8578588672 (8181MB)
avail mem = 8327753728 (7941MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf7fe000 (134 entries)
bios0: vendor HP version "P67" date 05/05/2011
bios0: HP ProLiant DL380 G7
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP SPCR MCFG HPET  SPMI ERST APIC SRAT 
BERT HEST DMAR SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2133.06 MHz
cpu0:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 20 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu1:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu2:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 18 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu3:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0: apid 0 pa 0xfec8, version 20, 24 pins
acpiprt0 at acpi0: bus 1 (IP2P)
acpiprt1 at acpi0: bus 3 (IPT1)
acpiprt2 at acpi0: bus 4 (IPT3)
acpiprt3 at acpi0: bus 2 (IPT5)
acpiprt4 at acpi0: bus 5 (PT01)
acpiprt5 at acpi0: bus 17 (PT03)
acpiprt6 at acpi0: bus 20 (PT04)
acpiprt7 at acpi0: bus 21 (PT05)
acpiprt8 at acpi0: bus 24 (PT06)
acpiprt9 at acpi0: bus 14 (PT07)
acpiprt10 at acpi0: bus 11 (PT08)
acpiprt11 at acpi0: bus 8 (PT09)
acpiprt12 at acpi0: bus 7 (PT0A)
acpiprt13 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C3, C1
acpicpu1 at acpi0: C3, C3, C1
acpicpu2 at acpi0: C3, C3, C1
acpicpu3 at acpi0: C3, C3, C1
acpitz0 at acpi0: critical temperature is 31 degC
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 5520 Host" rev 0x13
ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x13
pci1 at ppb0 bus 5
ciss0 at pci1 dev 0 function 0 "Hewlett-Packard Smart Array" rev
0x01: apic 0 int 4
ciss0: 1 LD, HW rev 2, FW 5.70/5.70, 64bit fifo rro
scsibus0 at ciss0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3
0/direct fixed
sd0: 286070MB, 512 bytes/sector, 585871964 sectors
ppb1 at pci0 dev 2 function 0 "Intel X58 PCIE" rev 0x13
pci2 at ppb1 bus 6
ppb2 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x13
pci3 at ppb2 bus 17
ppb3 at pci0 dev 4 function 0 "Intel X58 PCIE" rev 0x13
pci4 at ppb3 bus 20
ppb4 at pci0 dev 5 function 0 "Intel X58 PCIE" rev 0x13
pci5 at ppb4 bus 21
ppb5 at pci0 dev 6 function 0 "Intel X58 PCIE" rev 0x13
pci6 at ppb5 bus 24
ppb6 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x13
pci7 at ppb6 bus 14
ppb7 at pci0 dev 8 function 0 "Intel X58 PCIE" rev 0x13
pci8 at ppb7 bus 11
ppb8 at pci0 dev 9 function 0 "Intel X58 PCIE" rev 0x13
pci9 at pp

Re: iscsid(8) and FreeNAS 8.2.0

2012-10-11 Thread Insan Praja SW
On Thu, 11 Oct 2012 23:34:03 +0700, Chris Cappuccio   
wrote:



Do you have a /dev/vscsi0 ?


$ ls -la /dev | grep vscsi
crw---   1 root   wheel  90,   0 Oct  8 22:42 vscsi0
$



If not, cd /dev and ./MAKEDEV vscsi

Insan Praja SW [insan.pr...@gmail.com] 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.xxx.net:disk2"
}



Thanks


/var/log/messages
-
Oct 11 13:25:46 backend iscsid[11678]: fatal: vscsi_open: No such
file or directory

dmesg
-
OpenBSD 5.2-current (GENERIC.MP) #4: Mon Oct  1 19:44:56 WIT 2012
r...@backend.xxx.xxx:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8578588672 (8181MB)
avail mem = 8327753728 (7941MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf7fe000 (134 entries)
bios0: vendor HP version "P67" date 05/05/2011
bios0: HP ProLiant DL380 G7
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP SPCR MCFG HPET  SPMI ERST APIC SRAT 
BERT HEST DMAR SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2133.06 MHz
cpu0:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 20 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu1:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu2:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 18 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu3:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0: apid 0 pa 0xfec8, version 20, 24 pins
acpiprt0 at acpi0: bus 1 (IP2P)
acpiprt1 at acpi0: bus 3 (IPT1)
acpiprt2 at acpi0: bus 4 (IPT3)
acpiprt3 at acpi0: bus 2 (IPT5)
acpiprt4 at acpi0: bus 5 (PT01)
acpiprt5 at acpi0: bus 17 (PT03)
acpiprt6 at acpi0: bus 20 (PT04)
acpiprt7 at acpi0: bus 21 (PT05)
acpiprt8 at acpi0: bus 24 (PT06)
acpiprt9 at acpi0: bus 14 (PT07)
acpiprt10 at acpi0: bus 11 (PT08)
acpiprt11 at acpi0: bus 8 (PT09)
acpiprt12 at acpi0: bus 7 (PT0A)
acpiprt13 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C3, C1
acpicpu1 at acpi0: C3, C3, C1
acpicpu2 at acpi0: C3, C3, C1
acpicpu3 at acpi0: C3, C3, C1
acpitz0 at acpi0: critical temperature is 31 degC
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 5520 Host" rev 0x13
ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x13
pci1 at ppb0 bus 5
ciss0 at pci1 dev 0 function 0 "Hewlett-Packard Smart Array" rev
0x01: apic 0 int 4
ciss0: 1 LD, HW rev 2, FW 5.70/5.70, 64bit fifo rro
scsibus0 at ciss0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3
0/direct fixed
sd0: 286070MB, 512 bytes/sector, 585871964 sectors
ppb1 at pci0 dev 2 function 0 "Intel X58 PCIE" rev 0x13
pci2 at ppb1 bus 6
ppb2 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x13
pci3 at ppb2 bus 17
ppb3 at pci0 dev 4 function 0 "Intel X58 PCIE" rev 0x13
pci4 at ppb3 bus 20
ppb4 at pci0 dev 5 function 0 "Intel X58 PCIE" rev 0x13
pci5 at ppb4 bus 21
ppb5 at pci0 dev 6 function 0 "Intel X58 PCIE" rev 0x13
pci6 at ppb5 bus 24
ppb6 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x13
pci7 at ppb6 bus 14
ppb7 at pci0 dev 8 function 0 "Intel X58 PCIE" rev 0x13
pci8 at ppb7 bus 11
ppb8 at pci0 dev 9 function 0 "Intel X58 PCIE" rev 0x13
pci9 at ppb8 bus 8
ppb9 at pci0 dev 10 function 0 "Intel X58 PCIE" rev 0x13
pci10 at ppb9 bus 7
pchb1 at pci0 dev 13 function 0 vendor "Intel", unknown product
0x343a rev 0x13
pchb2 at pc

Re: iscsid(8) and FreeNAS 8.2.0

2012-10-11 Thread Chris Cappuccio
Do you have a /dev/vscsi0 ?

If not, cd /dev and ./MAKEDEV vscsi

Insan Praja SW [insan.pr...@gmail.com] 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.xxx.net:disk2"
> }
> 
> /var/log/messages
> -
> Oct 11 13:25:46 backend iscsid[11678]: fatal: vscsi_open: No such
> file or directory
> 
> dmesg
> -
> OpenBSD 5.2-current (GENERIC.MP) #4: Mon Oct  1 19:44:56 WIT 2012
> r...@backend.xxx.xxx:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8578588672 (8181MB)
> avail mem = 8327753728 (7941MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf7fe000 (134 entries)
> bios0: vendor HP version "P67" date 05/05/2011
> bios0: HP ProLiant DL380 G7
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S4 S5
> acpi0: tables DSDT FACP SPCR MCFG HPET  SPMI ERST APIC SRAT 
> BERT HEST DMAR SSDT SSDT SSDT SSDT SSDT
> acpi0: wakeup devices
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimcfg0 at acpi0 addr 0xe000, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2133.06 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: apic clock running at 133MHz
> cpu1 at mainbus0: apid 20 (application processor)
> cpu1: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu2 at mainbus0: apid 2 (application processor)
> cpu2: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
> cpu2: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu3 at mainbus0: apid 18 (application processor)
> cpu3: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
> cpu3: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
> cpu3: 256KB 64b/line 8-way L2 cache
> ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
> ioapic1 at mainbus0: apid 0 pa 0xfec8, version 20, 24 pins
> acpiprt0 at acpi0: bus 1 (IP2P)
> acpiprt1 at acpi0: bus 3 (IPT1)
> acpiprt2 at acpi0: bus 4 (IPT3)
> acpiprt3 at acpi0: bus 2 (IPT5)
> acpiprt4 at acpi0: bus 5 (PT01)
> acpiprt5 at acpi0: bus 17 (PT03)
> acpiprt6 at acpi0: bus 20 (PT04)
> acpiprt7 at acpi0: bus 21 (PT05)
> acpiprt8 at acpi0: bus 24 (PT06)
> acpiprt9 at acpi0: bus 14 (PT07)
> acpiprt10 at acpi0: bus 11 (PT08)
> acpiprt11 at acpi0: bus 8 (PT09)
> acpiprt12 at acpi0: bus 7 (PT0A)
> acpiprt13 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0: C3, C3, C1
> acpicpu1 at acpi0: C3, C3, C1
> acpicpu2 at acpi0: C3, C3, C1
> acpicpu3 at acpi0: C3, C3, C1
> acpitz0 at acpi0: critical temperature is 31 degC
> ipmi at mainbus0 not configured
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 5520 Host" rev 0x13
> ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x13
> pci1 at ppb0 bus 5
> ciss0 at pci1 dev 0 function 0 "Hewlett-Packard Smart Array" rev
> 0x01: apic 0 int 4
> ciss0: 1 LD, HW rev 2, FW 5.70/5.70, 64bit fifo rro
> scsibus0 at ciss0: 1 targets
> sd0 at scsibus0 targ 0 lun 0:  SCSI3
> 0/direct fixed
> sd0: 286070MB, 512 bytes/sector, 585871964 sectors
> ppb1 at pci0 dev 2 function 0 "Intel X58 PCIE" rev 0x13
> pci2 at ppb1 bus 6
> ppb2 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x13
> pci3 at ppb2 bus 17
> ppb3 at pci0 dev 4 function 0 "Intel X58 PCIE" rev 0x13
> pci4 at ppb3 bus 20
> ppb4 at pci0 dev 5 function 0 "Intel X58 PCIE" rev 0x13
> pci5 at ppb4 bus 21
> ppb5 at pci0 dev 6 function 0 "Intel X58 PCIE" rev 0x13
> pci6 at ppb5 bus 24
> ppb6 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x13
> pci7 at ppb6 bus 14
> ppb7 at pci0 dev 8 function 0 "Intel X58 PCIE" rev 0x13
> pci8 at ppb7 bus 11
> ppb8 at pci0 dev 9 function 0 "Intel X58 PCIE" rev 0x13
> pci9 at ppb8 bus 8
> ppb9 at pci0 dev 10 function 0 "Intel X58 PCIE" rev 0x13
> pci10 at ppb9 bus 7
> pchb1 at pci0 dev 13 function 0 vend

iscsid(8) and FreeNAS 8.2.0

2012-10-11 Thread Insan Praja SW

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.xxx.net:disk2"
}

/var/log/messages
-
Oct 11 13:25:46 backend iscsid[11678]: fatal: vscsi_open: No such file or  
directory


dmesg
-
OpenBSD 5.2-current (GENERIC.MP) #4: Mon Oct  1 19:44:56 WIT 2012
r...@backend.xxx.xxx:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8578588672 (8181MB)
avail mem = 8327753728 (7941MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf7fe000 (134 entries)
bios0: vendor HP version "P67" date 05/05/2011
bios0: HP ProLiant DL380 G7
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP SPCR MCFG HPET  SPMI ERST APIC SRAT  BERT  
HEST DMAR SSDT SSDT SSDT SSDT SSDT

acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2133.06 MHz
cpu0:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 20 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu1:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu2:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 18 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz, 2132.73 MHz
cpu3:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF

cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0: apid 0 pa 0xfec8, version 20, 24 pins
acpiprt0 at acpi0: bus 1 (IP2P)
acpiprt1 at acpi0: bus 3 (IPT1)
acpiprt2 at acpi0: bus 4 (IPT3)
acpiprt3 at acpi0: bus 2 (IPT5)
acpiprt4 at acpi0: bus 5 (PT01)
acpiprt5 at acpi0: bus 17 (PT03)
acpiprt6 at acpi0: bus 20 (PT04)
acpiprt7 at acpi0: bus 21 (PT05)
acpiprt8 at acpi0: bus 24 (PT06)
acpiprt9 at acpi0: bus 14 (PT07)
acpiprt10 at acpi0: bus 11 (PT08)
acpiprt11 at acpi0: bus 8 (PT09)
acpiprt12 at acpi0: bus 7 (PT0A)
acpiprt13 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C3, C1
acpicpu1 at acpi0: C3, C3, C1
acpicpu2 at acpi0: C3, C3, C1
acpicpu3 at acpi0: C3, C3, C1
acpitz0 at acpi0: critical temperature is 31 degC
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 5520 Host" rev 0x13
ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x13
pci1 at ppb0 bus 5
ciss0 at pci1 dev 0 function 0 "Hewlett-Packard Smart Array" rev 0x01:  
apic 0 int 4

ciss0: 1 LD, HW rev 2, FW 5.70/5.70, 64bit fifo rro
scsibus0 at ciss0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct  
fixed

sd0: 286070MB, 512 bytes/sector, 585871964 sectors
ppb1 at pci0 dev 2 function 0 "Intel X58 PCIE" rev 0x13
pci2 at ppb1 bus 6
ppb2 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x13
pci3 at ppb2 bus 17
ppb3 at pci0 dev 4 function 0 "Intel X58 PCIE" rev 0x13
pci4 at ppb3 bus 20
ppb4 at pci0 dev 5 function 0 "Intel X58 PCIE" rev 0x13
pci5 at ppb4 bus 21
ppb5 at pci0 dev 6 function 0 "Intel X58 PCIE" rev 0x13
pci6 at ppb5 bus 24
ppb6 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x13
pci7 at ppb6 bus 14
ppb7 at pci0 dev 8 function 0 "Intel X58 PCIE" rev 0x13
pci8 at ppb7 bus 11
ppb8 at pci0 dev 9 function 0 "Intel X58 PCIE" rev 0x13
pci9 at ppb8 bus 8
ppb9 at pci0 dev 10 function 0 "Intel X58 PCIE" rev 0x13
pci10 at ppb9 bus 7
pchb1 at pci0 dev 13 function 0 vendor "Intel", unknown product 0x343a rev  
0x13
pchb2 at pci0 dev 13 function 1 vendor "Intel", unknown product 0x343b rev  
0x13
pchb3 at pci0 dev 13 function 2 vendor "Intel", unknown product 0x343c rev  
0x13
pchb4 at pci0 dev 13 function 3 vendor "Intel", unknown product 0x343d rev  
0x13

pchb5 at pci0 dev 13 function