I've upgraded my PC to snv_60, and then fitted an Adaptec 29160N card,
and attached a SCSI hard drive.
I have then followed frava's recipe and have duplicated the core dump quite
easily.
As I only have one PC with Solaris, the target and initiator both run on the
same PC, and go through the loopback adaptor. This now works without any
special tricks.
Ok, here is the log of the commands & output:
login as: root
Password:
Last login: Sun Apr 2 21:09:36 2006
Sun Microsystems Inc. SunOS 5.11 snv_60 October 2007
# bash
bash-3.00# coreadm -g /var/crash/solaris/core.%f.%p
bash-3.00# coreadm -G all
bash-3.00# coreadm -e log
bash-3.00# coreadm -e global
bash-3.00# coreadm
global core file pattern: /var/crash/solaris/core.%f.%p
global core file content: all
init core file pattern: core
init core file content: default
global core dumps: enabled
per-process core dumps: enabled
global setid core dumps: disabled
per-process setid core dumps: disabled
global core dump logging: enabled
bash-3.00# svcs iscsitgt
STATE STIME FMRI
disabled 21:07:03 svc:/system/iscsitgt:default
bash-3.00# svcadm enable iscsitgt
bash-3.00# svcs iscsitgt
STATE STIME FMRI
online 23:54:27 svc:/system/iscsitgt:default
bash-3.00# iscsitadm modify admin -d /etc/iscsi
bash-3.00# iscsitadm show admin
iscsitadm:
Base Directory: /etc/iscsi
CHAP Name: Not set
RADIUS Access: Not set
RADIUS Server: Not set
iSNS Access: Not set
Fast Write ACK: Not set
bash-3.00# iscsitadm create target --type raw --backing-store /dev/dsk/c0t0d0p0
--lun 0 zd-4565
bash-3.00# iscsitadm list target
Target: zd-4565
iSCSI Name:
iqn.1986-03.com.sun:02:abea7026-f598-6e94-f5e9-a264b216f217.zd-4565
Connections: 0
bash-3.00# iscsitadm list target -v
Target: zd-4565
iSCSI Name:
iqn.1986-03.com.sun:02:abea7026-f598-6e94-f5e9-a264b216f217.zd-4565
Connections: 0
ACL list:
TPGT list:
LUN information:
LUN: 0
GUID: 0
VID: SUN
PID: SOLARIS
Type: raw
Size: 17G
Backing store: /dev/rdsk/c0t0d0p0
Status: online
bash-3.00# svcs iscsi_initiator
STATE STIME FMRI
disabled 21:06:43 svc:/network/iscsi_initiator:default
bash-3.00# iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:e00000000000.44302ebb
Initiator node alias: solaris
Login Parameters (Default/Configured):
Header Digest: NONE/-
Data Digest: NONE/-
Authentication Type: NONE
RADIUS Server: NONE
RADIUS Access: disabled
Configured Sessions: 1
bash-3.00# iscsiadm add discovery-address 127.0.0.1
bash-3.00# iscsiadm modify discovery -t enable
bash-3.00# iscsiadm list discovery
Discovery:
Static: disabled
Send Targets: enabled
iSNS: disabled
bash-3.00# iscsiadm list discovery-address -v
Discovery Address: 127.0.0.1:3260
Target name:
iqn.1986-03.com.sun:02:abea7026-f598-6e94-f5e9-a264b216f217.zd-4565
Target address: 127.0.0.1:3260, 1
Target name:
iqn.1986-03.com.sun:02:abea7026-f598-6e94-f5e9-a264b216f217.zd-4565
Target address: 172.16.8.38:3260, 1
bash-3.00# iscsiadm list target -v -S
Target: iqn.1986-03.com.sun:02:abea7026-f598-6e94-f5e9-a264b216f217.zd-4565
Alias: zd-4565
TPGT: 1
ISID: 4000002a0000
Connections: 1
CID: 0
IP address (Local): 127.0.0.1:64036
IP address (Peer): 127.0.0.1:3260
Discovery Method: SendTargets
Login Parameters (Negotiated):
Data Sequence In Order: yes
Data PDU In Order: yes
Default Time To Retain: 20
Default Time To Wait: 2
Error Recovery Level: 0
First Burst Length: 65536
Immediate Data: yes
Initial Ready To Transfer (R2T): yes
Max Burst Length: 262144
Max Outstanding R2T: 1
Max Receive Data Segment Length: 8192
Max Connections: 1
Header Digest: NONE
Data Digest: NONE
LUN: 0
Vendor: SEAGATE
Product: ST318405LW
OS Device Name: /dev/rdsk/c3t3d0s2
bash-3.00# devfsadm -i iscsi
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 2229 alt 2 hd 255 sec 63>
/[EMAIL PROTECTED],0/pci8086,[EMAIL PROTECTED]/pci9005,[EMAIL
PROTECTED]/[EMAIL PROTECTED],0
1. c2t0d0 <DEFAULT cyl 9723 alt 2 hd 255 sec 63>
/[EMAIL PROTECTED],0/pci1028,[EMAIL PROTECTED],2/[EMAIL PROTECTED],0
2. c3t3d0 <DEFAULT cyl 2229 alt 2 hd 255 sec 63>
/iscsi/[EMAIL PROTECTED],0
Specify disk (enter its number): ^D
bash-3.00# zpool create -m /export/zd-4565 zd-4565 c3t3d0
<!--Delay-->
^C
<!--Delay-->
bash-3.00# zpool list
no pools available
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 2229 alt 2 hd 255 sec 63>
/[EMAIL PROTECTED],0/pci8086,[EMAIL PROTECTED]/pci9005,[EMAIL
PROTECTED]/[EMAIL PROTECTED],0
1. c2t0d0 <DEFAULT cyl 9723 alt 2 hd 255 sec 63>
/[EMAIL PROTECTED],0/pci1028,[EMAIL PROTECTED],2/[EMAIL PROTECTED],0
2. c3t3d0 <DEFAULT cyl 2229 alt 2 hd 255 sec 63>
/iscsi/[EMAIL PROTECTED],0
Specify disk (enter its number): ^C
bash-3.00# tail /var/svc/log/system-iscsitgt\:default.log
[ Apr 3 00:10:16 Stopping because process dumped core. ]
[ Apr 3 00:10:16 Executing stop method ("/lib/svc/method/svc-iscsitgt stop
106") ]
[ Apr 3 00:10:16 Method "stop" exited with status 0 ]
[ Apr 3 00:10:16 Executing start method ("/lib/svc/method/svc-iscsitgt start")
]
[ Apr 3 00:10:16 Method "start" exited with status 0 ]
[ Apr 3 00:10:24 Stopping because process dumped core. ]
[ Apr 3 00:10:24 Executing stop method ("/lib/svc/method/svc-iscsitgt stop
108") ]
[ Apr 3 00:10:24 Method "stop" exited with status 0 ]
[ Apr 3 00:10:24 Executing start method ("/lib/svc/method/svc-iscsitgt start")
]
[ Apr 3 00:10:24 Method "start" exited with status 0 ]
bash-3.00# cd /var/crash/solaris
bash-3.00# ls -l
total 128496
-rw------- 1 root root 9546607 Apr 3 00:09 core.iscsitgtd.3374
-rw------- 1 root root 9363191 Apr 3 00:09 core.iscsitgtd.3417
-rw------- 1 root root 9363191 Apr 3 00:09 core.iscsitgtd.3425
-rw------- 1 root root 9363191 Apr 3 00:10 core.iscsitgtd.3433
-rw------- 1 root root 9363191 Apr 3 00:10 core.iscsitgtd.3442
-rw------- 1 root root 9363191 Apr 3 00:10 core.iscsitgtd.3450
-rw------- 1 root root 9363191 Apr 3 00:10 core.iscsitgtd.3458
bash-3.00# mdb core.iscsitgtd.3374
Loading modules: [ libumem.so.1 libavl.so.1 libc.so.1 libnvpair.so.1
libuutil.so.1 ld.so.1 ]
> $c
libc.so.1`_lwp_kill+0xa()
libc.so.1`raise+0x19()
libc.so.1`abort+0xd1()
libc.so.1`_assert+0x74()
t10_cmd_state_machine+0xe6()
trans_aioread+0x62()
raw_read+0x440()
raw_cmd+0x21()
lu_runner+0x7bc()
libc.so.1`_thr_setup+0x67()
libc.so.1`_lwp_start()
>
bash-3.00#
Well I'm out of time for tonight. I will try with truss tomorrow to see if it
gives any thing further.
Thanks
Nigel Smith
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss