On Mon, May 19, 2008 at 06:18:44AM -0700, HIMANSHU wrote:
> 
> I changed "timeout" as follows.
> 
> 1. iscsiadm --mode discovery --type sendtargets --portal 192.168.7.174
> 
> 2. iscsiadm -m node -T iqn.2008-05.com.abcde:Tar1 -p
> 192.168.7.174:3260 --login
> 
> 3. iscsiadm -m node -T iqn.2008-05.com.qualexsystems:Tar1 -p
> 192.168.7.174:3260 -o update -n
> node.session.timeo.replacement_timeout -v 82400
> (got succedded)
> 
> 4. I mounted disk exposed and started some i/o on it.
> 
> 5. Then i restarted iscsi-target daemon

Ouch.

> 
> output of "dmesg" after during step 4
> ---------------------------------------------------------------------------------
> __journal_remove_journal_head: freeing b_frozen_data
> > scsi 1:0:0:1: rejecting I/O to dead device


So that is the 'old' sdh disk?

> > Buffer I/O error on device sdh1, logical block 529
> > lost page write due to I/O error on sdh1
> > scsi2 : iSCSI Initiator over TCP/IP
> >   Vendor: IET       Model: VIRTUAL-DISK      Rev: 0
> >   Type:   Direct-Access                      ANSI SCSI revision: 04
> > SCSI device sdg: 630784 512-byte hdwr sectors (323 MB)
> > sdg: Write Protect is off
> > sdg: Mode Sense: 77 00 00 08
> > SCSI device sdg: drive cache: write through
> > SCSI device sdg: 630784 512-byte hdwr sectors (323 MB)
> > sdg: Write Protect is off
> > sdg: Mode Sense: 77 00 00 08
> > SCSI device sdg: drive cache: write through
> >  sdg: sdg1
> > sd 2:0:0:0: Attached scsi disk sdg
> > sd 2:0:0:0: Attached scsi generic sg6 type 0
> >   Vendor: IET       Model: VIRTUAL-DISK      Rev: 0
> >   Type:   Direct-Access                      ANSI SCSI revision: 04
> > SCSI device sdh: 630784 512-byte hdwr sectors (323 MB)
> > sdh: Write Protect is off
> > sdh: Mode Sense: 77 00 00 08
> > SCSI device sdh: drive cache: write through
> > SCSI device sdh: 630784 512-byte hdwr sectors (323 MB)
> > sdh: Write Protect is off
> > sdh: Mode Sense: 77 00 00 08
> > SCSI device sdh: drive cache: write through
> >  sdh: sdh1
> > sd 2:0:0:1: Attached scsi disk sdh
> > sd 2:0:0:1: Attached scsi generic sg7 type 0
> > kjournald starting.  Commit interval 5 seconds
> > EXT3 FS on sdh1, internal journal
> > EXT3-fs: mounted filesystem with ordered data mode.
> ----------------------------------------------------------------
> & "dmesg" after step 5
> 
> session1: iscsi: session recovery timed out after 120 secs
> < iscsi: cmd 0x2a is not queued (7)
> < sd 2:0:0:1: SCSI error: return code = 0x00010000
> < end_request: I/O error, dev sdh, sector 390208
> < Buffer I/O error on device sdh1, logical block 195073
> < lost page write due to I/O error on sdh1
> < Buffer I/O error on device sdh1, logical block 195074
> < lost page write due to I/O error on sdh1
> < Aborting journal on device sdh1.
> < iscsi: cmd 0x2a is not queued (7)
> < sd 2:0:0:1: SCSI error: return code = 0x00010000
> < end_request: I/O error, dev sdh, sector 390208
> < Buffer I/O error on device sdh1, logical block 195073
> < lost page write due to I/O error on sdh1
> < Buffer I/O error on device sdh1, logical block 195074
> < lost page write due to I/O error on sdh1
> < __journal_remove_journal_head: freeing b_committed_data
> < ext3_abort called.
> < EXT3-fs error (device sdh1): ext3_journal_start_sb: Detected aborted
> journal
> < Remounting filesystem read-only
> < iscsi: cmd 0x2a is not queued (7)
> < sd 2:0:0:1: SCSI error: return code = 0x00010000
> < end_request: I/O error, dev sdh, sector 66
> < Buffer I/O error on device sdh1, logical block 2
> < lost page write due to I/O error on sdh1
> < iscsi: cmd 0x2a is not queued (7)
> < iscsi: cmd 0x2a is not queued (7)
> < sd 2:0:0:1: SCSI error: return code = 0x00010000
> < end_request: I/O error, dev sdh, sector 376896
> < Buffer I/O error on device sdh1, logical block 188417
> < lost page write due to I/O error on sdh1
> < sd 2:0:0:1: SCSI error: return code = 0x00010000
> < end_request: I/O error, dev sdh, sector 376900
> < Buffer I/O error on device sdh1, logical block 188419
> < lost page write due to I/O error on sdh1
> -------------------------------------------------------------------
> What is exactly happening here?


> "timeout value" is changing from 120 to 86400..How can i re-confirm
> that?

cat /sys/class/iscsi_session/sessionX/recovery_tmo

> Can there be some other problem as well?

You seem to have the block device 'sdh' shared across two
iSCSI connections which is wrong.

> ---------------------------------------------------------------------
> Target: iqn.2008-05.com.qualexsystems:Tar2
> <       Current Portal: 192.168.7.174:3260,1
> <       Persistent Portal: 192.168.7.174:3260,1
> <               **********
> <               Interface:
> <               **********
> <               Iface Name: default
> <               Iface Transport: tcp
> <               Iface IPaddress: default
> <               Iface HWaddress: default
> <               Iface Netdev: default
> <               SID: 4
> <               iSCSI Connection State: LOGGED IN
> <               Internal iscsid Session State: NO CHANGE
> <               ************************
> <               Negotiated iSCSI params:
> <               ************************
> <               HeaderDigest: CRC32C
> <               DataDigest: None
> <               MaxRecvDataSegmentLength: 131072
> <               MaxXmitDataSegmentLength: 8192
> <               FirstBurstLength: 65536
> <               MaxBurstLength: 262144
> <               ImmediateData: No
> <               InitialR2T: Yes
> <               MaxOutstandingR2T: 1
> <               ************************
> <               Attached SCSI devices:
> <               ************************
> <               Host Number: 5  State: running
> <               scsi5 Channel 00 Id 0 Lun: 0
> <                       Attached scsi disk sdh          State: running
> < iSCSI Transport Class version 1.1-646
> < iscsiadm version 2.0-865
> < Target: iqn.2008-05.com.qualexsystems:Tar1
> <       Current Portal: 192.168.7.174:3260,1
> <       Persistent Portal: 192.168.7.174:3260,1
> <               **********
> <               Interface:
> <               **********
> <               Iface Name: default
> <               Iface Transport: tcp
> <               Iface IPaddress: default
> <               Iface HWaddress: default
> <               Iface Netdev: default
> <               SID: 0
> <               iSCSI Connection State: IN LOGIN
> <               Internal iscsid Session State: REPOEN
> <               ************************
> <               Negotiated iSCSI params:
> <               ************************
> <               HeaderDigest: None
> <               DataDigest: None
> <               MaxRecvDataSegmentLength: 131072
> <               MaxXmitDataSegmentLength: 8192
> <               FirstBurstLength: 65536
> <               MaxBurstLength: 262144
> <               ImmediateData: No
> <               InitialR2T: Yes
> <               MaxOutstandingR2T: 1
> <               ************************
> <               Attached SCSI devices:
> <               ************************
> <               Host Number: 1  State: running
> <               scsi1 Channel 00 Id 0 Lun: 0
> <                       Attached scsi disk sdg          State: blocked
> <               scsi1 Channel 00 Id 0 Lun: 1
> <                       Attached scsi disk sdh          State: blocked
> ----------------------------------------------------------------------------------
> here's the last target showing "blocked" state.and
> <               iSCSI Connection State: IN LOGIN (LOGGED IN should be
> here)
> <               Internal iscsid Session State: REPOEN (NO CHANGE
> should be here)
> --------------------------------
> I am Using,
> 
> Initiator: iscsi-initiator-utils-6.2.0.865-0.2.fc7

I would suggest you upgrade to a more recent version and try your experiement 
once more.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to