Ok so I guess working with old versions of open-iscsi is not accepted here :). So I upgraded to the latest and greatest semi-stable release, 871. I no longer see the "is not queued" messages and my login and logout work fine. However this is the only the case if I don't have my flash device mounted on /dev/sdc. If the flash is mounted I get this kernel oops:
< -T iqn.1999-02.com.nexsan:p0:sataboy:01731a5a --login Logging in to [iface: default, target: iqn. 1999-02.com.nexsan:p0:sataboy:01731a5a, portal: 172.19.151.169,3260] kobject_add failed for sdc with -EEXIST, don't try to register things with the same name in the same directory. BUG: unable to handle kernel NULL pointer dereference at virtual address 00000008 printing eip: *pde = 00000000 Oops: 0000 [#1] Modules linked in: iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi CPU: 0 EIP: 0060:[<c0189241>] Not tainted VLI EFLAGS: 00210292 (2.6.22.10-vs2.2.0.5-cisco-nmx #1) EIP is at create_dir+0x21/0x190 eax: c2280584 ebx: f7191bac ecx: c2280588 edx: 00000000 esi: c2280584 edi: c2280584 ebp: 00000000 esp: f7191b7c ds: 007b es: 007b fs: 0000 gs: 0033 ss: 0068 Process iscsid (pid: 5038, ti=f7190000 task=f77c75b0 task.ti=f7190000) Stack: c0378110 c037566c c2280588 c2280584 c037566c c0103c41 c2280584 c2280584 c2280584 00000000 c01893d4 f7191bac 00000000 00000000 c0203a1f f7b35ac0 f7d690c0 c0186e80 00000000 f7b35b10 f7b35ac0 c22804c0 c2280584 f7d690c0 Call Trace: [<c0103c41>] dump_stack+0x11/0x20 [<c01893d4>] sysfs_create_dir+0x24/0x70 [<c0203a1f>] kobject_shadow_add+0x7f/0x1a0 [<c0186e80>] register_disk+0x50/0x1f0 [<c01f4b72>] blk_register_queue+0x52/0x90 [<c026c6c8>] sd_probe+0x278/0x3f0 [<c0189e47>] sysfs_create_link+0x57/0x150 [<c0230c57>] driver_probe_device+0x87/0x190 [<c0331fc1>] klist_next+0x51/0xb0 [<c022ff24>] bus_for_each_drv+0x44/0x70 [<c0230e19>] device_attach+0x79/0x80 [<c0230d60>] __device_attach+0x0/0x10 [<c022fe95>] bus_attach_device+0x45/0x90 [<c022eb93>] device_add+0x493/0x560 [<c0268502>] scsi_sysfs_add_sdev+0x32/0x230 [<c02665bd>] scsi_probe_and_add_lun+0x95d/0x980 [<c0266e91>] __scsi_scan_target+0x491/0x5f0 [<c0166dcb>] mntput_no_expire+0x1b/0x70 [<c015bac3>] link_path_walk+0x63/0xc0 [<c02676a6>] scsi_scan_target+0xb6/0xe0 [<f8a008fa>] iscsi_user_scan_session+0x9a/0xb0 [scsi_transport_iscsi] [<f8a00820>] iscsi_user_scan+0x0/0x30 [scsi_transport_iscsi] [<f8a00860>] iscsi_user_scan_session+0x0/0xb0 [scsi_transport_iscsi] [<c022dd42>] device_for_each_child+0x22/0x40 [<f8a00820>] iscsi_user_scan+0x0/0x30 [scsi_transport_iscsi] [<f8a00843>] iscsi_user_scan+0x23/0x30 [scsi_transport_iscsi] [<c026818b>] store_scan+0xbb/0xf0 [<c013b614>] __alloc_pages+0x64/0x2f0 [<c02680d0>] store_scan+0x0/0xf0 [<c0232196>] class_device_attr_store+0x26/0x40 [<c0188151>] sysfs_write_file+0xb1/0x110 [<c01880a0>] sysfs_write_file+0x0/0x110 [<c0153820>] vfs_write+0xa0/0x140 [<c0153da1>] sys_write+0x41/0x70 [<c010280e>] sysenter_past_esp+0x5f/0x85 ======================= Code: 74 26 00 8d bc 27 00 00 00 00 83 ec 28 89 5c 24 18 8b 5c 24 2c 89 74 24 1c 89 7c 24 20 89 6c 24 24 89 d5 89 4c 24 08 89 44 24 0c <8b> 42 08 83 c0 68 e8 94 a2 1a 0031 c0 b9 ff ff ff ff 8b 7c 24 EIP: [<c0189241>] create_dir+0x21/0x190 SS:ESP 0068:f7191b7c Mar 1 21:09:07 localhost kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 00000008 Mar 1 21:09:07 localhost kClocksource tsc unstable (delta = 2941960870 ns) ernel: printingTime: pit clocksource has been installed. eip: Mar 1 21:09:07 localhost kernel: *pde = 00000000 Mar 1 21:09:07 localhost kernel: Oops: 0000 [#1] Mar 1 21:09:07 localhost kernel: CPU: 0 Mar 1 21:09:07 localhost kernel: EIP: 0060:[<c0189241>] Not tainted VLI Mar 1 21:09:07 localhost kernel: EFLAGS: 00210292 (2.6.22.10- vs2.2.0.5-cisco-nmx #1) Mar 1 21:09:07 localhost kernel: EIP is at create_dir+0x21/0x190 Mar 1 21:09:07 localhost kernel: eax: c2280584 ebx: f7191bac ecx: c2280588 edx: 00000000 Mar 1 21:09:07 localhost kernel: esi: c2280584 edi: c2280584 ebp: 00000000 esp: f7191b7c Mar 1 21:09:07 localhost kernel: ds: 007b es: 007b fs: 0000 gs: 0033 ss: 0068 Mar 1 21:09:07 localhost kernel: Process iscsid (pid: 5038, ti=f7190000 task=f77c75b0 task.ti=f7190000) Mar 1 21:09:07 localhost kernel: Stack: c0378110 c037566c c2280588 c2280584 c037566c c0103c41 c2280584 c2280584 Mar 1 21:09:07 localhost kernel: c2280584 00000000 c01893d4 f7191bac 00000000 00000000 c0203a1f f7b35ac0 Mar 1 21:09:07 localhost kernel: f7d690c0 c0186e80 00000000 f7b35b10 f7b35ac0 c22804c0 c2280584 f7d690c0 Mar 1 21:09:07 localhost kernel: Call Trace: Mar 1 21:09:07 localhost kernel: [<c0103c41>] dump_stack+0x11/0x20 Mar 1 21:09:07 localhost kernel: [<c01893d4>] sysfs_create_dir +0x24/0x70 Mar 1 21:09:07 localhost kernel: [<c0203a1f>] kobject_shadow_add +0x7f/0x1a0 Mar 1 21:09:07 localhost kernel: [<c0186e80>] register_disk +0x50/0x1f0 Mar 1 21:09:07 localhost kernel: [<c01f4b72>] blk_register_queue +0x52/0x90 Mar 1 21:09:07 localhost kernel: [<c026c6c8>] sd_probe+0x278/0x3f0 Mar 1 21:09:07 localhost kernel: [<c0189e47>] sysfs_create_link +0x57/0x150 Mar 1 21:09:07 localhost kernel: [<c0230c57>] driver_probe_device +0x87/0x190 Mar 1 21:09:07 localhost kernel: [<c0331fc1>] klist_next+0x51/0xb0 Mar 1 21:09:07 localhost kernel: [<c022ff24>] bus_for_each_drv +0x44/0x70 Mar 1 21:09:07 localhost kernel: [<c0230e19>] device_attach +0x79/0x80 Mar 1 21:09:07 localhost kernel: [<c0230d60>] __device_attach +0x0/0x10 Mar 1 21:09:07 localhost kernel: [<c022fe95>] bus_attach_device +0x45/0x90 Mar 1 21:09:07 localhost kernel: [<c022eb93>] device_add+0x493/0x560 Mar 1 21:09:07 localhost kernel: [<c0268502>] scsi_sysfs_add_sdev +0x32/0x230 Mar 1 21:09:07 localhost kernel: [<c02665bd>] scsi_probe_and_add_lun +0x95d/0x980 Mar 1 21:09:07 localhost kernel: [<c0266e91>] __scsi_scan_target +0x491/0x5f0 Mar 1 21:09:07 localhost kernel: [<c0166dcb>] mntput_no_expire+0x1b/ 0x70 Mar 1 21:09:07 localhost kernel: [<c015bac3>] link_path_walk +0x63/0xc0 Mar 1 21:09:07 localhost kernel: [<c02676a6>] scsi_scan_target +0xb6/0xe0 Mar 1 21:09:07 localhost kernel: [<f8a008fa>] iscsi_user_scan_session +0x9a/0xb0 [scsi_transport_iscsi] Mar 1 21:09:07 localhost kernel: [<f8a00820>] iscsi_user_scan +0x0/0x30 [scsi_transport_iscsi] Mar 1 21:09:07 localhost kernel: [<f8a00860>] iscsi_user_scan_session +0x0/0xb0 [scsi_transport_iscsi] Mar 1 21:09:07 localhost kernel: [<c022dd42>] device_for_each_child +0x22/0x40 Mar 1 21:09:07 localhost kernel: [<f8a00820>] iscsi_user_scan +0x0/0x30 [scsi_transport_iscsi] Mar 1 21:09:07 localhost kernel: [<f8a00843>] iscsi_user_scan +0x23/0x30 [scsi_transport_iscsi] Mar 1 21:09:07 localhost kernel: [<c026818b>] store_scan+0xbb/0xf0 Mar 1 21:09:07 localhost kernel: [<c013b614>] __alloc_pages +0x64/0x2f0 Mar 1 21:09:07 localhost kernel: [<c02680d0>] store_scan+0x0/0xf0 Mar 1 21:09:07 localhost kernel: [<c0232196>] class_device_attr_store +0x26/0x40 Mar 1 21:09:07 localhost kernel: [<c0188151>] sysfs_write_file +0xb1/0x110 Mar 1 21:09:07 localhost kernel: [<c01880a0>] sysfs_write_file +0x0/0x110 Mar 1 21:09:07 localhost kernel: [<c0153820>] vfs_write+0xa0/0x140 Mar 1 21:09:07 localhost kernel: [<c0153da1>] sys_write+0x41/0x70 Mar 1 21:09:07 localhost kernel: [<c010280e>] sysenter_past_esp+0x5f/ 0x85 Mar 1 21:09:07 localhost kernel: ======================= Mar iscsiadm: got read error (0/0), daemon died? iscsiadm: Could not login to [iface: default, target: iqn. 1999-02.com.nexsan:p0:sataboy:01731a5a, portal: 172.19.151.169,3260]: iscsiadm: initiator reported error (18 - could not communicate to iscsid) bash-2.05b# 1 21:09:07 localhost kernel: Code: 74 26 00 8d bc 27 00 00 00 00 83 ec 28 89 5c 24 18 8b 5c 24 2c 89 74 24 1c 89 7c 24 20 89 6c 24 24 89 d5 89 4c 24 08 89 4424 0c <8b> 42 08 83 c0 68 e8 94 a2 1a 00 31 c0 b9 ff ff ff ff 8b 7c 24 Mar 1 21:09:07 localhost kernel: EIP: [<c0189241>] create_dir +0x21/0x190 SS:ESP 0068:f7191b7c In addition. Even if I remove the flash drive, when I continually log in and logout of my remote SCSI device the device nodes keep incrementing. In the past it would just stay on the same device nodes unless the scsi device's configuration changed. Ive added a log of this behavior in the uploads section. The file is incDevNodes. Can anyone help? Does anyone have any input on this? My build is working fine and my kernel is being patched. Here are my system stats again: 1. Kernel: 2.6.22.10 2. Open-Iscsi Version: iscsiadm version 2.0-871 3. Nexsan SCSI device Thanks, JD On Feb 25, 7:05 pm, An Oneironaut <anoneiron...@gmail.com> wrote: > Hey all, > > I'm running open-iscsi-2.0-865.9 on kernel-2.6.22. On bootup my > root drive is /dev/sda and I have a flash drive on /dev/sdc. When I > try to login to my iscsi device with mdadm I get a kernel oops: > > -bash# iscsiadm -m node -p 172.19.151.169:3260,1 -T iqn. > 1999-02.com.nexsan:p0:sataboy:01731a5a --login > Login session [iface: default, target: iqn. > 1999-02.com.nexsan:p0:sataboy:01731a5a, portal: 172.19.151.169,3260] > iscsi: cmd 0x35 is not queued (6) > iscsi: cmd 0x35 is not queued (6) > iscsi: cmd 0x35 is not queued (6) > kobject_add failed for sdc with -EEXIST, don't try to register things > with the same name in the same directory. > BUG: unable to handle kernel NULL pointer dereference at virtual > address 00000008 > printing eip: > *pde = 00000000 > Oops: 0000 [#1] > Modules linked in: iscsi_tcp libiscsi scsi_transport_iscsi > CPU: 0 > EIP: 0060:[<c0189241>] Not tainted VLI > EFLAGS: 00210282 (2.6.22.10-vs2.2.0.5-cisco-nmx #1) > EIP is at create_dir+0x21/0x190 > eax: c226f584 ebx: f738bbd4 ecx: c226f588 edx: 00000000 > esi: c226f584 edi: c226f584 ebp: 00000000 esp: f738bba4 > ds: 007b es: 007b fs: 0000 gs: 0033 ss: 0068 > Process iscsid (pid: 4461, ti=f738a000 task=f70dd0b0 task.ti=f738a000) > Stack: c038d9b4 c038af10 c226f588 c226f584 c038af10 c0103c41 c226f584 > c226f584 > c226f584 00000000 c01893d4 f738bbd4 00000000 00000000 c0203a1f > f79399c0 > f737b840 c0186e80 00000000 f7939a10 f79399c0 c226f4c0 c226f584 > f737b840 > Call Trace: > [<c0103c41>] dump_stack+0x11/0x20 > [<c01893d4>] sysfs_create_dir+0x24/0x70 > [<c0203a1f>] kobject_shadow_add+0x7f/0x1a0 > [<c0186e80>] register_disk+0x50/0x1f0 > [<c01f4b72>] blk_register_queue+0x52/0x90 > [<c026c6c8>] sd_probe+0x278/0x3f0 > [<c0189e47>] sysfs_create_link+0x57/0x150 > [<c0230c57>] driver_probe_device+0x87/0x190 > [<c03461c1>] klist_next+0x51/0xb0 > [<c022ff24>] bus_for_each_drv+0x44/0x70 > [<c0230e19>] device_attach+0x79/0x80 > [<c0230d60>] __device_attach+0x0/0x10 > [<c022fe95>] bus_attach_device+0x45/0x90 > [<c022eb93>] device_add+0x493/0x560 > [<c0268502>] scsi_sysfs_add_sdev+0x32/0x230 > [<c02665bd>] scsi_probe_and_add_lun+0x95d/0x980 > [<c0266ada>] __scsi_scan_target+0xda/0x5f0 > [<c01628ec>] dput+0x1c/0xe0 > [<c01395de>] filemap_nopage+0x23e/0x2e0 > [<c014296c>] __handle_mm_fault+0x1fc/0x8d0 > [<c02676a6>] scsi_scan_target+0xb6/0xe0 > [<f8a01760>] iscsi_user_scan+0x70/0x90 [scsi_transport_iscsi] > [<f8a016f0>] iscsi_user_scan+0x0/0x90 [scsi_transport_iscsi] > [<c026818b>] store_scan+0xbb/0xf0 > [<c01107e0>] do_page_fault+0x0/0x5e0 > [<c03482ca>] error_code+0x6a/0x70 > [<c02680d0>] store_scan+0x0/0xf0 > [<c0232196>] class_device_attr_store+0x26/0x40 > [<c0188151>] sysfs_write_file+0xb1/0x110 > [<c01880a0>] sysfs_write_file+0x0/0x110 > [<c0153820>] vfs_write+0xa0/0x140 > [<c0153da1>] sys_write+0x41/0x70 > [<c010280e>] sysenter_past_esp+0x5f/0x85 > [<c0340000>] xdr_xcode_array2+0x3c0/0x5e0 > ======================= > Code: 74 26 00 8d bc 27 00 00 00 00 83 ec 28 89 5c 24 18 8b 5c 24 2c > 89 74 24 1c 89 7c 24 20 89 6c 24 24 89 d5 89 4c 24 08 89 44 24 0c <8b> > 42 08 83 c0 68 e8 94 e4 1b 00 31 c0b9 ff ff ff ff 8b 7c 24 > EIP: [<c0189241>] create_dir+0x21/0x190 SS:ESP 0068:f738bba4 > Feb 25 17:54:07 localhost kernel: BUG: unable to handle kernel NULL > pointer dereference at virtual address 00000008 > Feb 25 17:54:07 localhost kernel: printing eip: > Feb 25 17:54:07 localhost kernel: *pde = 00000000 > Feb 25 17:54:07 localhost kernel: Oops: 0000 [#1] > Feb 25 17:54:07 localhost kernel: CPU: 0 > Feb 25 17:54:07 localhost kernel: EIP: 0060:[<c0189241>] Not > tainted VLI > Feb 25 17:54:07 localhost kernel: EFLAGS: 00210282 (2.6.22.10- > vs2.2.0.5-cisco-nmx #1) > Feb 25 17:54:07 localhost kernel: EIP is at create_dir+0x21/0x190 > Feb 25 17:54:07 localhost kernel: eax: c226f584 ebx: f738bbd4 ecx: > c226f588 edx: 00000000 > Feb 25 17:54:07 localhost kernel: esi: c226f584 edi: c226f584 ebp: > 00000000 esp: f738bba4 > Feb 25 17:54:07 localhost kernel: ds: 007b es: 007b fs: 0000 gs: > 0033 ss: 0068 > Feb 25 17:54:07 localhost kernel: Process iscsid (pid: 4461, > ti=f738a000 task=f70dd0b0 task.ti=f738a000) > Feb 25 17:54:07 localhost kernel: Stack: c038d9b4 c038af10 c226f588 > c226f584 c038af10 c0103c41 c226f584 c226f584 > Feb 25 17:54:07 localhost kernel: c226f584 00000000 c01893d4 > f738bbd4 00000000 00000000 c0203a1f f79399c0 > Feb 25 17:54:07 localhost kernel: f737b840 c0186e80 00000000 > f7939a10 f79399c0 c226f4c0 c226f584 f737b840 > Feb 25 17:54:07 localhost kernel: Call Trace: > Feb 25 17:54:07 localhost kernel: [<c0103c41>] dump_stack+0x11/0x20 > Feb 25 17:54:07 localhost kernel: [<c01893d4>] sysfs_create_dir > +0x24/0x70 > Feb 25 17:54:07 localhost kernel: [<c0203a1f>] kobject_shadow_add > +0x7f/0x1a0 > Feb 25 17:54:07 localhost kernel: [<c0186e80>] register_disk > +0x50/0x1f0 > Feb 25 17:54:07 localhost kernel: [<c01f4b72>] blk_register_queue > +0x52/0x90 > Feb 25 17:54:07 localhost kernel: [<c026c6c8>] sd_probe+0x278/0x3f0 > Feb 25 17:54:07 localhost kernel: [<c0189e47>] sysfs_create_link > +0x57/0x150 > Feb 25 17:54:07 localhost kernel: [<c0230c57>] driver_probe_device > +0x87/0x190 > Feb 25 17:54:07 localhost kernel: [<c03461c1>] klist_next+0x51/0xb0 > Feb 25 17:54:07 localhost kernel: [<c022ff24>] bus_for_each_drv > +0x44/0x70 > Feb 25 17:54:07 localhost kernel: [<c0230e19>] device_attach > +0x79/0x80 > Feb 25 17:54:07 localhost kernel: [<c0230d60>] __device_attach > +0x0/0x10 > Feb 25 17:54:07 localhost kernel: [<c022fe95>] bus_attach_device > +0x45/0x90 > Feb 25 17:54:07 localhost kernel: [<c022eb93>] device_add+0x493/0x560 > Feb 25 17:54:07 localhost kernel: [<c0268502>] scsi_sysfs_add_sdev > +0x32/0x230 > Feb 25 17:54:07 localhost kernel: [<c02665bd>] scsi_probe_and_add_lun > +0x95d/0x980 > Feb 25 17:54:07 localhost kernel: [<c0266ada>] __scsi_scan_target > +0xda/0x5f0 > Feb 25 17:54:07 localhost kernel: [<c01628ec>] dput+0x1c/0xe0 > Feb 25 17:54:07 localhost kernel: [<c01395de>] filemap_nopage+0x23e/ > 0x2e0 > Feb 25 17:54:07 localhost kernel: [<c014296c>] __handle_mm_fault > +0x1fc/0x8d0 > Feb 25 17:54:07 localhost kernel: [<c02676a6>] scsi_scan_target > +0xb6/0xe0 > Feb 25 17:54:07 localhost kernel: [<f8a01760>] iscsi_user_scan > +0x70/0x90 [scsi_transport_iscsi] > Feb 25 17:54:07 localhost kernel: [<f8a016f0>] iscsi_user_scan > +0x0/0x90 [scsi_transport_iscsi] > Feb 25 17:54:07 localhost kernel: [<c026818b>] store_scan+0xbb/0xf0 > Feb 25 17:54:07 localhost kernel: [<c01107e0>] do_page_fault > +0x0/0x5e0 > Feb 25 17:54:07 localhost kernel: [<c03482ca>] error_code+0x6a/0x70 > Feb 25 17:54:07 localhost kernel: [<c02680d0>] store_scan+0x0/0xf0 > Feb 25 17:54:07 localhost kernel: [<c0232196>] class_device_attr_store > +0x26/0x40 > Feb 25 17:54:07 localhost kernel: [<c0188151>] sysfs_write_file > +0xb1/0x110 > Feb 25 17:54:07 localhost kernel: [<c01880a0>] sysfs_write_file > +0x0/0x110 > Feb 25 17:54:07 localhost kernel: [<c0153820>] vfs_write+0xa0/0x140 > Feb 25 17:54:07 localhost kernel: [<c0153da1>] sys_write+0x41/0x70 > Feb 25 17:54:07 localhost kernel: [<c010280e>] sysenter_past_esp+0x5f/ > 0x85 > Feb 25 17:54:07 localhost kernel: [<c0340000>] > xdr_xcode_array2+0x3c0/0x5e0 > Feb 25 17:54:07 localhost kernel: ======================= > Feb 25 17:54:07 localhost kernel: Code: 74 26 00 8d bc 27 00 00 00 00 > 83 ec 28 89 5c 24 18 8b 5c 24 2c 89 74 24 1c 89 7c 24 20 89 6c 24 24 > 89 d5 89 4c 24 08 89 44 24 0c <8b> 42 08 83 c0 68 e8 94 e4 1b 00 31 c0 > b9 ff ff ff ff 8b 7c 24 > Feb 25 17:54:07 localhost kernel: EIP: [<c0189241>] create_dir > +0x21/0x190 SS:ESP 0068:f738bba4 > iscsiadm: got read error (0/0), daemon died? > > If I remove the flash drive on /dev/sdc and try login I don't see > the kernel oops. All I end up seeing is this: > > iscsi: cmd 0x35 is not queued (6) > iscsi: cmd 0x35 is not queued (6) > iscsi: cmd 0x35 is not queued (6) > iscsi: cmd 0x35 is not queued (6) > iscsi: cmd 0x35 is not queued (6) > iscsi: cmd 0x35 is not queued (6) > > I know a few other people have seen this issue on this messageboard. > But I saw no solutions. Its impossible for me to upgrade the open- > iscsi version. But maybe I could patch in a fix if this was fixed in > a later version. > > Thanks, > > JD -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-is...@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.