iSCSI with fvdw

Re: iSCSI with fvdw

Postby fvdw » Sat Oct 21, 2017 9:22 pm

I will have look later, currently I am busy with rebuilding my kitchen. Hope you can have some patience
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: iSCSI with fvdw

Postby wd9895 » Sun Oct 22, 2017 1:42 pm

Granted. New kitchen has full priority !
wd9895
Donator Supporter
Donator Supporter
 
Posts: 255
Joined: Fri Jun 10, 2011 1:49 pm
Location: Hamburg, Germany

Re: iSCSI with fvdw

Postby Mewtos » Mon Oct 23, 2017 4:52 pm

No problem, kitchen should be first :)
Mewtos
Donator VIP
Donator VIP
 
Posts: 10
Joined: Sat Feb 08, 2014 2:29 pm

Re: iSCSI with fvdw

Postby fvdw » Tue Oct 24, 2017 10:29 pm

Found some time to look at it, as iscsi-target is no longer developed we can not use the latest released version (1.4.20.3) as it fails to compile with kernel 4.6.6.
I found some patches for kernel 4.8 and made some by myself to get it compiled. Finally it succeeded.
It is based on iscsitarget-code-503-trunk.
I think it is ok but no guarantee given, you will need to do some checking.
The kernel module is attached and goes into directory /lib/modules/4.6.6

I loaded it with insmod but modprobe should do it as well after running depmod

Code: Select all
root@fvdwsl-5big2:/lib/modules/4.6.6 # insmod iscsi_trgt.ko


message in dmesg
Code: Select all
[262511.264689] iSCSI Enterprise Target Software - version trunk
[262511.270562] iscsi_trgt: Registered io type fileio
[262511.275664] iscsi_trgt: Registered io type blockio
[262511.280570] iscsi_trgt: Registered io type nullio
root@fvdwsl-5big2:/lib/modules/4.6.6


Seems to be loaded
Code: Select all
root@fvdwsl-5big2:/lib/modules/4.6.6 # lsmod
Module                  Size  Used by
iscsi_trgt             98703  0
iscsi_tcp               8140  0
libiscsi_tcp           11554  1 iscsi_tcp
libiscsi               32535  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    57740  2 iscsi_tcp,libiscsi
usblp                  10010  0
usb_storage            39194  0
ehci_orion              2698  0
ehci_hcd               39634  1 ehci_orion
root@fvdwsl-5big2:/lib/modules/4.6.6 #
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: iSCSI with fvdw

Postby Mewtos » Thu Oct 26, 2017 8:07 pm

Hi fvdw,

thank you for your time and research.
I just tried the new iscsi-target on my nwsp2, that you've uploaded.
I've copied the iscsi_trgt.ko in my /lib/modules/4.6.6 and did an "insmod iscsi_trgt.ko" and depmod.
Pic1.PNG


The ietd service is running well with
Code: Select all
etc/iscsi-target start

Pic2.PNG


My configured iscsi-targets in the conf "etc/iscsi/ietd.conf" are showing up in my iscsi-initiator under Windows too.
Pic3.PNG

Pic4.PNG



But i have one problem:
On target connect with an initiator, either my nwsp2 crashes and must be restarted to revive it or the ietd-service hangs himself up and can't be killed with SIGKILL. :scratch
In both cases, i'm not able to connect to an iscsi-target and read/write to it.

I tried to log any errors from the ietd and attached it as a file, not getting any smarter with it :whistle


Do you maybe know, why i have this behavior and do you perhaps know, how to solve it?
If you need any more information, don't hesitate to ask me :)

Thank you in advance
Mewtos
You do not have the required permissions to view the files attached to this post.
Mewtos
Donator VIP
Donator VIP
 
Posts: 10
Joined: Sat Feb 08, 2014 2:29 pm

Re: iSCSI with fvdw

Postby fvdw » Thu Oct 26, 2017 10:17 pm

ah sorry I guess we need to replace ietd and ietadm as well, although source code seems to be the same in trunk 503 version but they are not compiled against 466 kerenl let see if this solves the problem :mrgreen:

Attached the compiled daemons, these go in /usr/sbin, replace the existing ones by the ones in the attachment, be sure that they have executable permissions

further these modules should be loaded (should go automatic at boot)

Code: Select all
$ lsmod
Module                  Size  Used by
iscsi_tcp               8140  0
libiscsi_tcp           11554  1 iscsi_tcp
libiscsi               32535  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    57740  2 iscsi_tcp,libiscsi
iscsi_trgt             98703  0

I miss some of those in your screenshot ??

When I have more time I will test it myself on my nas, currently still painting in the kitchen
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: iSCSI with fvdw

Postby Mewtos » Fri Oct 27, 2017 9:08 pm

Hello fvdw,

thanks for your fast answer.

First of all, i've re-installed the new firmware to make sure, i didn't delete anything important in modules.
Then copied & loaded the iscsi_traget.ko again.

Now, lsmod shows all modules

Code: Select all
root@Nas:/ # lsmod
iscsi_tcp 8140 0 - Live 0xbf07f000
libiscsi_tcp 11554 1 iscsi_tcp, Live 0xbf078000
libiscsi 32535 2 iscsi_tcp,libiscsi_tcp, Live 0xbf06a000
scsi_transport_iscsi 57740 2 iscsi_tcp,libiscsi, Live 0xbf04f000
iscsi_trgt 98703 0 - Live 0xbf02d000 (O)
usblp 10010 0 - Live 0xbf026000
usb_storage 39194 0 - Live 0xbf013000
ehci_orion 2698 0 - Live 0xbf00f000
ehci_hcd 39634 1 ehci_orion, Live 0xbf000000


After that, i tried to start iscsi-target with my configuration under /etc/iscsi
Code: Select all
root@Nas:/etc/iscsi # nano ietd.conf
#Target 1
Target iqn.2019-12.fvdw-sl.nas:1
Lun 0 Path=share/1000/luns/storagelun0,Type=fileio,ScsiId=lun0,ScsiSN=lun0


Code: Select all
root@Nas:/etc # ./iscsi-target start

$matches[2]


So far so good.

When i debug this, it shows me the following:
Code: Select all
usr/sbin/ietd -f --debug=3 -c /etc/iscsi/ietd.conf

$matches[2]


When i'm trying to initiate the target from an iscsi-initiator (Ubuntu), i get the following messages, but can't use the target/lun:
Code: Select all
root@srv001:/# iscsiadm -m discovery -t st -p 10.0.0.4
10.0.0.4:3260,1 iqn.2019-12.fvdw-sl.nas:1

Code: Select all
root@srv001:/home/clangner# iscsiadm -m node -l
Logging in to [iface: default, target: iqn.2019-12.fvdw-sl.nas:1, portal: 10.0.0.4,3260] (multiple)
Login to [iface: default, target: iqn.2019-12.fvdw-sl.nas:1, portal: 10.0.0.4,3260] successful.

Code: Select all
root@srv001:/var/log# tail -f syslog
Oct 27 22:50:38 srv001 iscsid: Kernel reported iSCSI connection 1:0 error (1022 - Invalid or unknown error code) state (3)


On the NAS again, the process for ietd is looking weird and doesn't react to any kill command or initiator again.
It looks like it's dead
iscsi-dead.PNG




I don't know, if it is an configuration problem on my side or if you experience the same error.
Do you have the same problems here?

Thanks & greetings,
Mewtos
You do not have the required permissions to view the files attached to this post.
Mewtos
Donator VIP
Donator VIP
 
Posts: 10
Joined: Sat Feb 08, 2014 2:29 pm

Re: iSCSI with fvdw

Postby fvdw » Sun Oct 29, 2017 12:08 pm

:scratch
at least it didn't crash your nwsp2 anymore.

What does this command lear us ?
Code: Select all
dmesg

If if gives on oops error then still something is wrong with the module

and this
Lun 0 Path=share/1000/luns/storagelun0,Type=fileio,ScsiId=lun0,ScsiSN=lun0

I assume storagelun0 is a file.., if it is a folder you will get the can't open error


Later today I will try to run it on my system
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: iSCSI with fvdw

Postby fvdw » Sun Oct 29, 2017 3:39 pm

I made some test I can get the target server running, but when connecting to it from another nas it causes a kernel oops

I used this path in ietd.conf
Code: Select all
Lun 0 Path=/share/1000/disk.image.1,Type=fileio,ScsiId=lun0,ScsiSN=lun0

In which disk.image.1 is a 5GB file

root@fvdwsl-5big2:/ # /usr/sbin/ietd -f --debug=3 -c /etc/iscsi/ietd.conf
1509290795.033718: created target iqn.2019-11.fvdw-sl.5big2:disk.image.1


one remark you can kill ietd following these commands,
if you don't use the ietadm command before and just kill ietd than you are not able to restart it again because it keeps the port busy.

Code: Select all
root@fvdwsl-5big2:/ # ietadm --op delete
root@fvdwsl-5big2:/ # killall -9 ietd


when connecting from another pc it seems to succeed
Code: Select all
root@nwsp2-3:/ # /usr/sbin/iscsid -c /etc/iscsi/iscsid.conf
root@nwsp2-3:/ # iscsiadm -m node -T iqn.2019-11.fvdw-sl.5big2:disk.image.1 -l
Logging in to [iface: default, target: iqn.2019-11.fvdw-sl.5big2:disk.image.1, portal: 192.168.1.188,3260] (multiple)
Login to [iface: default, target: iqn.2019-11.fvdw-sl.5big2:disk.image.1, portal: 192.168.1.188,3260] successful.
root@nwsp2-3:/ #

However on the nas running the target it causes an kernel oops error,
Code: Select all
[  308.699135] iscsi_trgt: Removing all connections, sessions and targets
[  352.473244] iscsi_trgt: Removing all connections, sessions and targets
[  832.252308] iscsi_trgt: do_recv(137) -14
[  835.677464] iscsi_trgt: do_recv(137) -14
[  838.837540] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[  838.845645] pgd = c0004000
[  838.848340] [00000004] *pgd=00000000
[  838.851922] Internal error: Oops: 17 [#1] PREEMPT ARM
[  838.856946] Modules linked in: iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi iscsi_trgt(O) usblp usb_storage ehci_orion ehci_hcd
[  838.869141] CPU: 0 PID: 2672 Comm: istd1 Tainted: G           O    4.6.6 #7
[  838.876066] Hardware name: LaCie 5Big Network Nand v2
[  838.881096] task: df5818a0 ti: dba84000 task.ti: dba84000
[  838.886478] PC is at copy_to_iter+0x1a0/0x28c
[  838.890821] LR is at skb_copy_datagram_iter+0x48/0x194
[  838.895933] pc : [<c0323918>]    lr : [<c052eebc>]    psr: 60000013
[  838.895933] sp : dba85bc0  ip : 00000000  fp : dba84000
[  838.907351] r10: 00000000  r9 : de8f2e24  r8 : dba85c9c
[  838.912554] r7 : 00000030  r6 : dbb11264  r5 : dba85c9c  r4 : 00000001
[  838.919051] r3 : dba85cb0  r2 : dba85c9c  r1 : 00000030  r0 : dbb11264
[  838.925549] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[  838.932823] Control: 0005317f  Table: 190e8000  DAC: 00000057
[  838.938543] Process istd1 (pid: 2672, stack limit = 0xdba84190)
[  838.944435] Stack: (0xdba85bc0 to 0xdba86000)
[  838.948779] 5bc0: 00000000 00000030 00000000 00000030 00000030 dba85c9c de8f2e24 deaa50c0
[  838.956927] 5be0: dba84000 c052eebc deaa50c0 00000000 dba85c9c de8f2ac0 00000000 deaa50c0
[  838.965073] 5c00: 00000030 00000030 de8f2e24 00000000 dba84000 c058b6bc 00000000 00000000
[  838.973212] 5c20: c09a7eae 00007980 dba85c94 00000000 00000001 00000000 00000000 c0848e6c
[  838.981350] 5c40: 00000000 00000000 c0597228 dba85c94 00004000 00000002 00000000 00000004
[  838.989490] 5c60: dbb85088 0000000c 00000001 c05b1b64 00004000 dba85c7c 00000002 00000000
[  838.997630] 5c80: dbb85000 dbb85000 dba1cbd4 bf0317f8 00000001 df471724 deda3800 dba85cb0
[  839.005776] 5ca0: 00000001 c03f7ad0 00000000 c00520d0 dba1cbd4 00000030 00000010 c0938540
[  839.013916] 5cc0: 00000040 df471480 dba85ce8 00000000 c03f7510 dba85d00 dba85d08 c0963f60
[  839.022054] 5ce0: df471548 dba84000 0000012c c0539a2c 0000d128 c092a120 c09145dc 00000040
[  839.030194] 5d00: dba85d00 dba85d00 dba85d08 dba85d08 deda3800 40000003 c082f403 c0848e6c
[  839.038340] 5d20: c082f3f2 c0804cd8 00000020 00000000 c0964fac c0026730 d900e418 00000000
[  839.046480] 5d40: defc4400 00208040 c0964f80 0000d127 00000000 c092a120 defc4468 60000013
[  839.054619] 5d60: d900e418 df57a000 df471000 df471158 df471154 c095abc0 d9026200 c0026870
[  839.062758] 5d80: d9026200 c0026918 c082f3f2 c0804cd8 df5818a0 df5818a0 00000000 c003edec
[  839.070896] 5da0: c0924838 00000000 df4ec150 c0043430 c0924838 df4ec120 00000000 c0924838
[  839.079035] 5dc0: 00000001 40000093 deb2dd04 00000001 00000000 0000000c dba85dec c003ef30
[  839.087174] 5de0: 00404100 df4ec120 dba85e0c c003f570 000000c3 00000001 00000001 000000c3
[  839.095313] 5e00: deb2dd04 00000001 ffffffff 00000000 00000002 c092a760 00000000 df5818d0
[  839.103452] 5e20: ffffffff deb2c000 00000002 c0964468 00000000 c003c1d0 00000000 00000002
[  839.111592] 5e40: ffffffff 00000000 df5818a0 c092a760 d900eae0 df5818d0 ffffffff deb2c000
[  839.119738] 5e60: 00000002 c0964468 00000000 c003c1d0 00000000 00000002 deb2c000 deb2c018
[  839.127877] 5e80: df5818a0 00000055 d900eae0 c003c1f0 00000000 00000002 dba85ebc c003f024
[  839.136017] 5ea0: dba84000 00000000 dba84000 00000000 c082f3f2 c0804cd8 00000201 dbb85000
[  839.144154] 5ec0: 00000001 dba1cbb8 00000000 bf031be0 00000000 00000000 00000000 c0924838
[  839.152294] 5ee0: 00000002 df5818d0 00000000 000007ce d9026000 dba84000 000000b9 c00431bc
[  839.160433] 5f00: d9026164 dba85ed0 d9026000 00000000 df5818d0 c0043338 00000001 df5818d0
[  839.168572] 5f20: c0924838 c0043928 df5818a0 00000000 c0924838 bf0319f8 dba85f5c c06c0d20
[  839.176719] 5f40: dba84000 00000000 d9026000 dbbb99c0 00000000 d9026000 bf0319f8 00000000
[  839.184857] 5f60: 00000000 00000000 00000000 c003b3dc 00000000 00000000 dba85f9c d9026000
[  839.192997] 5f80: 00000000 dba85f84 dba85f84 00000000 dba85f90 dba85f90 dba85fac dbbb99c0
[  839.201135] 5fa0: c003b318 00000000 00000000 c0013760 00000000 00000000 00000000 00000000
[  839.209274] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  839.217412] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  839.225562] [<c0323918>] (copy_to_iter) from [<c052eebc>] (skb_copy_datagram_iter+0x48/0x194)
[  839.234059] [<c052eebc>] (skb_copy_datagram_iter) from [<c058b6bc>] (tcp_recvmsg+0x7a4/0x914)
[  839.242550] [<c058b6bc>] (tcp_recvmsg) from [<c05b1b64>] (inet_recvmsg+0x34/0x48)
[  839.250078] [<c05b1b64>] (inet_recvmsg) from [<bf0317f8>] (do_recv+0xb4/0x1c8 [iscsi_trgt])
[  839.258501] [<bf0317f8>] (do_recv [iscsi_trgt]) from [<bf031be0>] (istd+0x1e8/0xfbc [iscsi_trgt])
[  839.267395] [<bf031be0>] (istd [iscsi_trgt]) from [<c003b3dc>] (kthread+0xc4/0xd8)
[  839.274939] [<c003b3dc>] (kthread) from [<c0013760>] (ret_from_fork+0x14/0x34)
[  839.282136] Code: 02893008 01a04008 ea00002e e592a00c (e59a3004)
[  839.289029] ---[ end trace ddffb911fcfec509 ]---
root@fvdwsl-5big2:/ #


and I do not see the new disk on the nas running the initiator and I cannot kill ietd anymore on the system running the target

...mmm no idea yet what is causing this... :thinking
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: iSCSI with fvdw

Postby fvdw » Sun Oct 29, 2017 6:11 pm

I may have found the error, I made some additional patches I found for kernel 4.5

Now it works on my 5big2 (target) and nwsp2 (initiator)

Starting the target on 5big2
Code: Select all
/usr/sbin/ietd -f --debug=3 -c /etc/iscsi/ietd.conf
root@fvdwsl-5big2:/lib/modules/4.6.6 # /usr/sbin/ietd -f --debug=3 -c /etc/iscsi/ietd.conf
1509299911.972126: created target iqn.2019-11.fvdw-sl.5big2:disk.image.1



connecting to the target from a nwsp2
Code: Select all
root@nwsp2-3:/ # /usr/sbin/iscsid -c /etc/iscsi/iscsid.conf
root@nwsp2-3:/ # iscsiadm -m node -T iqn.2019-11.fvdw-sl.5big2:disk.image.1 -l
Logging in to [iface: default, target: iqn.2019-11.fvdw-sl.5big2:disk.image.1, portal: 192.168.1.188,3260] (multiple)
Login to [iface: default, target: iqn.2019-11.fvdw-sl.5big2:disk.image.1, portal: 192.168.1.188,3260] successful.

:punk no kernel crash on the target

response to connecting on the 5big2
Code: Select all
1509299979.993991: BHS: (0x1f7a4)
1509299979.994082:  43 81 00 00 | 00 00 00 aa | 00 02 3d 02 | 00 00 00 00 | C         =      |
1509299979.994143:  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 |                  |
1509299979.994198:  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 |                  |
1509299979.994225: AHS: (0x1f850)
1509299979.994249: Data: (0x1f850)
1509299979.994299:  49 6e 69 74 | 69 61 74 6f | 72 4e 61 6d | 65 3d 69 71 | InitiatorName=iq |
1509299979.994353:  6e 2e 32 30 | 31 32 2d 31 | 31 2e 66 76 | 64 77 2d 73 | n.2012-11.fvdw-s |
1509299979.994406:  6c 2e 6e 61 | 73 3a 65 30 | 63 37 33 35 | 38 38 39 36 | l.nas:e0c7358896 |
1509299979.994459:  38 64 00 49 | 6e 69 74 69 | 61 74 6f 72 | 41 6c 69 61 | 8d InitiatorAlia |
1509299979.994513:  73 3d 6e 77 | 73 70 32 2d | 33 2e 6c 6f | 63 61 6c 00 | s=nwsp2-3.local  |
1509299979.994567:  54 61 72 67 | 65 74 4e 61 | 6d 65 3d 69 | 71 6e 2e 32 | TargetName=iqn.2 |
1509299979.994620:  30 31 39 2d | 31 31 2e 66 | 76 64 77 2d | 73 6c 2e 35 | 019-11.fvdw-sl.5 |
1509299979.994672:  62 69 67 32 | 3a 64 69 73 | 6b 2e 69 6d | 61 67 65 2e | big2:disk.image. |
1509299979.994725:  31 00 53 65 | 73 73 69 6f | 6e 54 79 70 | 65 3d 4e 6f | 1 SessionType=No |
1509299979.994779:  72 6d 61 6c | 00 41 75 74 | 68 4d 65 74 | 68 6f 64 3d | rmal AuthMethod= |
1509299979.994833:  43 48 41 50 | 2c 4e 6f 6e | 65 00       |             | CHAP,None        |
1509299979.994862: Login request (security negotiation): 0
1509299979.995093: exp_cmd_sn: 0,0
1509299979.995175: alloc'ed new buf_segment
1509299979.995215: wrote: TargetPortalGroupTag
1509299979.995243: wrote: =
1509299979.995268: wrote: 1
1509299979.995293: wrote:
1509299979.995334: wrote: AuthMethod
1509299979.995362: wrote: =
1509299979.995388: wrote: None
1509299979.995413: wrote:
1509299979.995447: BHS: (0x1f7e8)
1509299979.995504:  23 81 00 00 | 00 00 00 27 | 00 02 3d 02 | 00 00 00 00 | #      '  =      |
1509299979.995561:  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 |                  |
1509299979.995616:  00 00 00 01 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 |                  |
1509299979.995643: AHS: ((nil))
1509299979.995665: Data: (0x21864)
1509299979.995715:  54 61 72 67 | 65 74 50 6f | 72 74 61 6c | 47 72 6f 75 | TargetPortalGrou |
1509299979.995769:  70 54 61 67 | 3d 31 00 41 | 75 74 68 4d | 65 74 68 6f | pTag=1 AuthMetho |
1509299979.995811:  64 3d 4e 6f | 6e 65 00    |             |             | d=None           |
1509299980.254036: BHS: (0x1f7a4)
1509299980.254864:  43 87 00 00 | 00 00 01 37 | 00 02 3d 02 | 00 00 00 00 | C      7  =      |
1509299980.255626:  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 01 |                  |
1509299980.256443:  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 |                  |
1509299980.256719: AHS: (0x1f850)
1509299980.256851: Data: (0x1f850)
1509299980.256953:  48 65 61 64 | 65 72 44 69 | 67 65 73 74 | 3d 4e 6f 6e | HeaderDigest=Non |
1509299980.257283:  65 00 44 61 | 74 61 44 69 | 67 65 73 74 | 3d 4e 6f 6e | e DataDigest=Non |
1509299980.257384:  65 00 44 65 | 66 61 75 6c | 74 54 69 6d | 65 32 57 61 | e DefaultTime2Wa |
1509299980.257727:  69 74 3d 32 | 00 44 65 66 | 61 75 6c 74 | 54 69 6d 65 | it=2 DefaultTime |
1509299980.257895:  32 52 65 74 | 61 69 6e 3d | 30 00 49 46 | 4d 61 72 6b | 2Retain=0 IFMark |
1509299980.257997:  65 72 3d 4e | 6f 00 4f 46 | 4d 61 72 6b | 65 72 3d 4e | er=No OFMarker=N |
1509299980.258336:  6f 00 45 72 | 72 6f 72 52 | 65 63 6f 76 | 65 72 79 4c | o ErrorRecoveryL |
1509299980.258437:  65 76 65 6c | 3d 30 00 49 | 6e 69 74 69 | 61 6c 52 32 | evel=0 InitialR2 |
1509299980.258537:  54 3d 4e 6f | 00 49 6d 6d | 65 64 69 61 | 74 65 44 61 | T=No ImmediateDa |
1509299980.258888:  74 61 3d 59 | 65 73 00 4d | 61 78 42 75 | 72 73 74 4c | ta=Yes MaxBurstL |
1509299980.259053:  65 6e 67 74 | 68 3d 31 36 | 37 37 36 31 | 39 32 00 46 | ength=16776192 F |
1509299980.259387:  69 72 73 74 | 42 75 72 73 | 74 4c 65 6e | 67 74 68 3d | irstBurstLength= |
1509299980.259488:  32 36 32 31 | 34 34 00 4d | 61 78 4f 75 | 74 73 74 61 | 262144 MaxOutsta |
1509299980.259836:  6e 64 69 6e | 67 52 32 54 | 3d 31 00 4d | 61 78 43 6f | ndingR2T=1 MaxCo |
1509299980.260003:  6e 6e 65 63 | 74 69 6f 6e | 73 3d 31 00 | 44 61 74 61 | nnections=1 Data |
1509299980.260105:  50 44 55 49 | 6e 4f 72 64 | 65 72 3d 59 | 65 73 00 44 | PDUInOrder=Yes D |
1509299980.260441:  61 74 61 53 | 65 71 75 65 | 6e 63 65 49 | 6e 4f 72 64 | ataSequenceInOrd |
1509299980.260541:  65 72 3d 59 | 65 73 00 4d | 61 78 52 65 | 63 76 44 61 | er=Yes MaxRecvDa |
1509299980.260641:  74 61 53 65 | 67 6d 65 6e | 74 4c 65 6e | 67 74 68 3d | taSegmentLength= |
1509299980.260978:  32 36 32 31 | 34 34 00    |             |             | 262144           |
1509299980.261116: Login request (operational negotiation): 6
1509299980.261237: alloc'ed new buf_segment
1509299980.261592: wrote: HeaderDigest
1509299980.261664: wrote: =
1509299980.261732: wrote: None
1509299980.261801: wrote:
1509299980.261878: wrote: DataDigest
1509299980.262179: wrote: =
1509299980.262312: wrote: None
1509299980.262386: wrote:
1509299980.262689: wrote: DefaultTime2Wait
1509299980.262759: wrote: =
1509299980.262828: wrote: 2
1509299980.262897: wrote:
1509299980.263195: wrote: DefaultTime2Retain
1509299980.263328: wrote: =
1509299980.263399: wrote: 0
1509299980.263680: wrote:
1509299980.263765: wrote: IFMarker
1509299980.263835: wrote: =
1509299980.263906: wrote: No
1509299980.264180: wrote:
1509299980.264316: wrote: OFMarker
1509299980.264396: wrote: =
1509299980.264676: wrote: No
1509299980.264747: wrote:
1509299980.264829: wrote: ErrorRecoveryLevel
1509299980.264898: wrote: =
1509299980.265181: wrote: 0
1509299980.265312: wrote:
1509299980.265389: wrote: InitialR2T
1509299980.265670: wrote: =
1509299980.265740: wrote: Yes
1509299980.265808: wrote:
1509299980.265882: wrote: ImmediateData
1509299980.266166: wrote: =
1509299980.266296: wrote: Yes
1509299980.266567: wrote:
1509299980.266657: wrote: MaxBurstLength
1509299980.266726: wrote: =
1509299980.266793: wrote: 262144
1509299980.267068: wrote:
1509299980.267211: wrote: FirstBurstLength
1509299980.267288: wrote: =
1509299980.267572: wrote: 65536
1509299980.267643: wrote:
1509299980.267723: wrote: MaxOutstandingR2T
1509299980.267793: wrote: =
1509299980.268079: wrote: 1
1509299980.268206: wrote:
1509299980.268291: wrote: MaxConnections
1509299980.268361: wrote: =
1509299980.268648: wrote: 1
1509299980.268718: wrote:
1509299980.268792: wrote: DataPDUInOrder
1509299980.268863: wrote: =
1509299980.269149: wrote: Yes
1509299980.269278: wrote:
1509299980.269358: wrote: DataSequenceInOrder
1509299980.269640: wrote: =
1509299980.269709: wrote: Yes
1509299980.269778: wrote:
1509299980.269854: session_find_name: iqn.2012-11.fvdw-sl.nas:e0c73588968d 0x23d0200
1509299980.270166: session_create: 0x10000023d0200
1509299980.270338: BHS: (0x1f7e8)
1509299980.270670:  23 87 00 00 | 00 00 01 15 | 00 02 3d 02 | 00 00 01 00 | #         =      |
1509299980.270772:  00 00 00 00 | 00 00 00 00 | 00 00 00 01 | 00 00 00 00 |                  |
1509299980.271159:  00 00 00 01 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 |                  |
1509299980.271236: AHS: ((nil))
1509299980.271566: Data: (0x21864)
1509299980.271664:  48 65 61 64 | 65 72 44 69 | 67 65 73 74 | 3d 4e 6f 6e | HeaderDigest=Non |
1509299980.271767:  65 00 44 61 | 74 61 44 69 | 67 65 73 74 | 3d 4e 6f 6e | e DataDigest=Non |
1509299980.271868:  65 00 44 65 | 66 61 75 6c | 74 54 69 6d | 65 32 57 61 | e DefaultTime2Wa |
1509299980.272215:  69 74 3d 32 | 00 44 65 66 | 61 75 6c 74 | 54 69 6d 65 | it=2 DefaultTime |
1509299980.272381:  32 52 65 74 | 61 69 6e 3d | 30 00 49 46 | 4d 61 72 6b | 2Retain=0 IFMark |
1509299980.272716:  65 72 3d 4e | 6f 00 4f 46 | 4d 61 72 6b | 65 72 3d 4e | er=No OFMarker=N |
1509299980.272817:  6f 00 45 72 | 72 6f 72 52 | 65 63 6f 76 | 65 72 79 4c | o ErrorRecoveryL |
1509299980.273162:  65 76 65 6c | 3d 30 00 49 | 6e 69 74 69 | 61 6c 52 32 | evel=0 InitialR2 |
1509299980.273333:  54 3d 59 65 | 73 00 49 6d | 6d 65 64 69 | 61 74 65 44 | T=Yes ImmediateD |
1509299980.273436:  61 74 61 3d | 59 65 73 00 | 4d 61 78 42 | 75 72 73 74 | ata=Yes MaxBurst |
1509299980.273773:  4c 65 6e 67 | 74 68 3d 32 | 36 32 31 34 | 34 00 46 69 | Length=262144 Fi |
1509299980.273871:  72 73 74 42 | 75 72 73 74 | 4c 65 6e 67 | 74 68 3d 36 | rstBurstLength=6 |
1509299980.273972:  35 35 33 36 | 00 4d 61 78 | 4f 75 74 73 | 74 61 6e 64 | 5536 MaxOutstand |
1509299980.274323:  69 6e 67 52 | 32 54 3d 31 | 00 4d 61 78 | 43 6f 6e 6e | ingR2T=1 MaxConn |
1509299980.274488:  65 63 74 69 | 6f 6e 73 3d | 31 00 44 61 | 74 61 50 44 | ections=1 DataPD |
1509299980.274824:  55 49 6e 4f | 72 64 65 72 | 3d 59 65 73 | 00 44 61 74 | UInOrder=Yes Dat |
1509299980.274924:  61 53 65 71 | 75 65 6e 63 | 65 49 6e 4f | 72 64 65 72 | aSequenceInOrder |
1509299980.275252:  3d 59 65 73 | 00          |             |             | =Yes             |
1509299980.275498: conn_take_fd: 9 0 2 0 10000023d0200
1509299980.275918: connection closed



All ok, so to see
and it is visible now as sdb on the nwsp running the initiator
Code: Select all
root@nwsp2-3:/ # fdisk -l

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               9          72      514080  83 Linux
/dev/sda2              73         136      514080  83 Linux
/dev/sda3             137         200      514080  82 Linux swap
/dev/sda4             201      243200  1951897500   5 Extended
/dev/sda5             209         312      835380  83 Linux
/dev/sda6             321         328       64260  83 Linux
/dev/sda7             337         400      514080  83 Linux
/dev/sda8             409      243200  1950226740  83 Linux

Disk /dev/sdb: 5242 MB, 5242880000 bytes
255 heads, 63 sectors/track, 637 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1         625     5020281   b Win95 FAT32

lets see if we can mount it and read content
root@nwsp2-3:/ # mkdir sdb
root@nwsp2-3:/ # mount /dev/sdb1 /sdb
root@nwsp2-3:/ # cd sdb
root@nwsp2-3:/sdb # ls
botany_bay-mirusia.mpg
root@nwsp2-3:/sdb #
[/code]
yep :bananadance

umounting again and logout on nwsp2
Code: Select all
root@nwsp2-3:/sdb # cd /
root@nwsp2-3:/ # umount /sdb
root@nwsp2-3:/ # iscsiadm -m node -T iqn.2019-11.fvdw-sl.5big2:disk.image.1 --lo
gout
Logging out of session [sid: 2, target: iqn.2019-11.fvdw-sl.5big2:disk.image.1, portal: 192.168.1.188,3260]
Logout of [sid: 2, target: iqn.2019-11.fvdw-sl.5big2:disk.image.1, portal: 192.168.1.188,3260] successful.
root@nwsp2-3:/ #


stopping the target on 5big2
Code: Select all
root@fvdwsl-5big2:/ # ietadm --op delete
root@fvdwsl-5big2:/ # killall -9 ietd
root@fvdwsl-5big2:/ #
root@fvdwsl-5big2:/ # dmesg -c
[ 9021.129018] iscsi_trgt: Removing all connections, sessions and targets
root@fvdwsl-5big2:/ #





new kernel module attached, please test
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Development

Who is online

Users browsing this forum: Bing Bot and 20 guests