Project

General

Profile

Bug #4589

Kernel panic on using iSCSI target on same host

Added by Franz Schober about 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
comstar - iSCSI/FC/SAS target
Start date:
2014-02-10
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

For testing the issues mentioned in #4588 and #4455, #4454 (synchronous mirror pool on remote devices) i used a single iSCSI COMSTAR provided target on
the same host. On OmniOS r151008j the following procedure crashed the system after blocking for some minutes :

zfs create -V 2G rpool/vol1
stmfadm create-lu /dev/zvol/rdsk/rpool/vol1
stmfadm add-view 600144F000000000000052F8B1390001
svcadm enable -s stmf
svcadm enable -s iscsi/target
itadm create-target
iscsiadm add discovery-address 10.1.0.155:3260
iscsiadm modify discovery --sendtargets enable
zpool create test c3t600144F000000000000052F8B1390001d0

On a second try, the command just failed without crashing the system.

zpool create test c3t600144F06E820E7C000052F88F4B0001d0
cannot create 'test': one or more devices is currently unavailable

dmesg:
Feb 10 10:30:11 omniosdev scsi: [ID 243001 kern.warning] WARNING: /scsi_vhci (scsi_vhci0):
Feb 10 10:30:11 omniosdev       /scsi_vhci/disk@g600144f06e820e7c000052f88f4b0001 (sd2): Command Timeout on path iscsi0/disk@0000iqn.2010-08.org.illumos:02:c73a5c93-7cbb-c8ce-e6ce-9065c226f0a70001,0
Feb 10 10:31:12 omniosdev iscsi: [ID 431120 kern.warning] WARNING: iscsi connection(11/3f) closing connection - target requested reason:0x7
Feb 10 10:31:12 omniosdev iscsi: [ID 732673 kern.info] NOTICE: iscsi session(10) iqn.2010-08.org.illumos:02:c73a5c93-7cbb-c8ce-e6ce-9065c226f0a7 offline
Feb 10 10:31:12 omniosdev scsi_vhci: [ID 734749 kern.warning] WARNING: vhci_scsi_reset 0x1
Feb 10 10:31:12 omniosdev scsi_vhci: [ID 734749 kern.warning] WARNING: vhci_scsi_reset 0x0
Feb 10 10:31:13 omniosdev iscsi: [ID 559844 kern.info] NOTICE: iscsi session(10) iqn.2010-08.org.illumos:02:c73a5c93-7cbb-c8ce-e6ce-9065c226f0a7 online
Feb 10 10:31:20 omniosdev genunix: [ID 483743 kern.info] /scsi_vhci/disk@g600144f06e820e7c000052f88f4b0001 (sd2) multipath status: degraded: path 1 iscsi0/disk@0000iqn.2010-08.org.illumos:02:c73a5c93-7cbb-c8ce-e6ce-9065c226f0a70001,0 is online

The same works on OmniOS-r151006y without any problems. Are there any changes, maybe related to #3740 known causing this problems ?


Files

crash.0.bz2 (37.2 KB) crash.0.bz2 Franz Schober, 2014-02-10 11:24 AM
crash_151006y.0.bz2 (30.1 KB) crash_151006y.0.bz2 Crash on OmniOS 151006 Franz Schober, 2014-02-10 03:28 PM

History

#1

Updated by Franz Schober about 6 years ago

Although the creation of the zpool worked on OmniOS r151006y, the zfs send I wanted to test on the pool failed with a kernel panic on r151006y also.

zfs create test/testds
dd if=/dev/zero of=/test/testds/file1 bs=1M count=50
dd if=/dev/zero of=/test/testds/file2 bs=1M count=50

zfs snapshot test/testds@test
zfs send -R test/testds@test | pv > /dev/null

Also available in: Atom PDF