From owner-freebsd-scsi@FreeBSD.ORG Wed Feb 17 06:37:02 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 458C71065676 for ; Wed, 17 Feb 2010 06:37:02 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9]) by mx1.freebsd.org (Postfix) with ESMTP id E40118FC12 for ; Wed, 17 Feb 2010 06:37:01 +0000 (UTC) Received: by uriah.heep.sax.de (Postfix, from userid 107) id 6332D26; Wed, 17 Feb 2010 07:37:00 +0100 (MET) Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <4B53C505.7050608@langille.org> In-Reply-To: <4B53C505.7050608@langille.org> From: j@uriah.heep.sax.de (Joerg Wunsch) X-Original-Newsgroups: local.freebsd.scsi To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=us-ascii Message-Id: <20100217063700.6332D26@uriah.heep.sax.de> Date: Wed, 17 Feb 2010 07:37:00 +0100 (MET) Cc: Subject: Re: device.hints isn't setting what I want X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Wunsch List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 06:37:02 -0000 Dan Langille wrote: > I have an external tape library and an external tape drive. They > are not always powered up. Btw., a word of a warning as I'm running a similar setup to yours: when powered down, do run a "camcontrol rescan 1" so the device nodes will disappear. At least under FreeBSD 7.x (don't know whether that has been fixed later), CAM gets totally upset if you try accessing /dev/nsa0 when its underlying hardware disappeared. This leaves CAM in a state where the sa0 device is partially removed ("lost device"), but since you just opened it, parts will remain in the kernel. If you reattach it to the bus, and run another "camcontrol rescan 1", you'll no longer get your sa0 device back but something else, and sooner or later, your kernel will crash. If you ever run into that situation, reboot volunteerily before it crashes... -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)