From owner-freebsd-scsi@FreeBSD.ORG Mon Jan 18 11:13:44 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A30310656A4 for ; Mon, 18 Jan 2010 11:13:44 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 023CE8FC1A for ; Mon, 18 Jan 2010 11:13:43 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1NWpYD-0007MV-Ps; Mon, 18 Jan 2010 13:13:41 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Karl Pielorz In-reply-to: <071FB5A0A2DC2EFA265933DE@HPQuadro64.dmpriest.net.uk> References: <071FB5A0A2DC2EFA265933DE@HPQuadro64.dmpriest.net.uk> Comments: In-reply-to Karl Pielorz message dated "Wed, 13 Jan 2010 10:58:26 +0000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Jan 2010 13:13:41 +0200 From: Daniel Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: Starting out in iSCSI - recovery questions / options from target vanishing... X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2010 11:13:44 -0000 > > Hi, > > I've been looking at setting up iSCSI on my home network. I have a windows > machine, which I've installed iSCSI target software on, and set it up. > > I'm using FreeBSD 7.2-STABLE - and I've setup iSCSI as an initiator on that. > > At the end of the day, I get the following logged when I've finished > setting it up: > > " > Jan 12 20:25:30 test kernel: da0 at iscsi0 bus 0 target 0 lun 0 > Jan 12 20:25:30 test kernel: da0: Fixed Direct Access > SCSI-4 device > Jan 12 20:26:21 test kernel: GEOM_LABEL: Label for provider da0s1 is > ufsid/4b4cdaed5db746bf. > " > > I can label, partition, format and mount da0 - and everything works fine, > which looks pretty successful. > > Until I 'break the connection' - either by restarting the windows iSCSI > target, or pulling the network cable. > > Whatever was in progress on da0 expectedly freezes. However, when the > connection is available again - nothing seems to re-attach, continue, or > error. > > I'd guess I may be being optimistic if I expected it to re-attach, and > continue without error - but is there any way of either avoiding the freeze > (or raining in the timeout) - or forcing things to try to reconnect? > > I don't mind getting errors, or trashing the iSCSI drive (it's only used > for shifting backups on to large drives on the windows machine) - but as it > is, the only way to recover is to restart the FreeBSD box. > > If someone can point me in the right direction, or explain what's "meant to > happen" that'd be great, > > Thanks, > > -Karl Hi karl, what version of iscsi_initiator are you using? if it's not 2.2.x then get it from: ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.2.3.tar.gz