From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 03:05:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C1BF16A4CE for ; Sat, 3 Jan 2004 03:05:27 -0800 (PST) Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98E1A43D5C for ; Sat, 3 Jan 2004 03:05:24 -0800 (PST) (envelope-from scott@tuatara.fishballoon.org) Received: from llama.fishballoon.org ([81.104.195.124]) by mta05-svc.ntlworld.comESMTP <20040103110508.OJVR19387.mta05-svc.ntlworld.com@llama.fishballoon.org>; Sat, 3 Jan 2004 11:05:08 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.24; FreeBSD) id 1Acja1-000CfM-DZ; Sat, 03 Jan 2004 11:04:29 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.10/8.12.10/Submit) id i03B4SIs015078; Sat, 3 Jan 2004 11:04:28 GMT (envelope-from scott) Date: Sat, 3 Jan 2004 11:04:28 +0000 From: Scott Mitchell To: Dan Nelson Message-ID: <20040103110428.GB14806@tuatara.fishballoon.org> References: <200401022045.i02KjnrM023470@lv.raad.tartu.ee> <20040102205547.GC88798@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040102205547.GC88798@dan.emsphone.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-STABLE i386 cc: questions@freebsd.org Subject: Re: swapping external hard drives X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2004 11:05:27 -0000 On Fri, Jan 02, 2004 at 02:55:47PM -0600, Dan Nelson wrote: > In the last episode (Jan 02), Toomas Aas said: > > However, when I umount /backup and remove the drive, the da0 device > > somehow remains active (can be seen with 'camcontrol devlist'). When > > I then plug in the second drive, it becomes da1, which spoils all my > > beautiful backup plans. I would prefer that when I remove one drive > > and plug in the other, it becomes da0 again. So I need to get the > > 'old' da0 entry to go away when unplugging the drive. How can I do > > that? > > > > I tried 'camcontrol rescan 0:0:0' after disconnecting the drive, but > > it just hangs until I plug the drive back in. I tried 'camcontrol > > reset 0', but this returned error 0x6 (IIRC). > > Try just "camcontrol rescan 0" to rescan the entire FW bus. I don't > know if scanning just a single LUN will allow the whole device to > disappear. I think it was more intended for SCSI/FC RAIDs, so you > could add/remove/resize volumes. Just guessing here, though. You probably also want to do 'fwcontrol -r' a few times after unplugging the drive (three seems to work for me...) See sbp(4) for reasons why this is necessary. Also note the warning about tagged queueing on that page - hopefully you lucked out and your drives are OK with this; I had serious file corruption issues until I turned off tagged queueing. You might want to verify that the data on the backup is really what it should be :-( Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon