From owner-freebsd-questions@FreeBSD.ORG Fri Jan 2 12:55:49 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 D884E16A4D1 for ; Fri, 2 Jan 2004 12:55:49 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B23BF43D55 for ; Fri, 2 Jan 2004 12:55:48 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i02KtliO050652; Fri, 2 Jan 2004 14:55:47 -0600 (CST) (envelope-from dan) Date: Fri, 2 Jan 2004 14:55:47 -0600 From: Dan Nelson To: Toomas Aas Message-ID: <20040102205547.GC88798@dan.emsphone.com> References: <200401022045.i02KjnrM023470@lv.raad.tartu.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401022045.i02KjnrM023470@lv.raad.tartu.ee> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i 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: Fri, 02 Jan 2004 20:55:50 -0000 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. -- Dan Nelson dnelson@allantgroup.com