From owner-freebsd-questions@FreeBSD.ORG Fri Feb 4 15:23:37 2005 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 A70CC16A4CE for ; Fri, 4 Feb 2005 15:23:37 +0000 (GMT) Received: from sdf.lonestar.org (mx.freeshell.org [192.94.73.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26FEB43D4C for ; Fri, 4 Feb 2005 15:23:37 +0000 (GMT) (envelope-from pieckiel@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:pieckiel@sverige.freeshell.org [192.94.73.4]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j14FMmF5011315 for ; Fri, 4 Feb 2005 15:22:48 GMT Received: (from pieckiel@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j14FMmNo003808 for freebsd-questions@freebsd.org; Fri, 4 Feb 2005 10:22:48 -0500 (EST) Date: Fri, 4 Feb 2005 10:22:48 -0500 From: "Kevin A. Pieckiel" To: freebsd-questions@freebsd.org Message-ID: <20050204152247.GA15942@SDF.LONESTAR.ORG> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: camcontrol cdb to disconnect drive 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, 04 Feb 2005 15:23:37 -0000 Hey, all. I want to replace a 9 GB SCSI drive with an 18 GB SCSI drive. All the hardware supports hot-swapping. Just for kicks, I thought I'd try to turn the drive off via SCSI commands and replace it without rebooting. The camcontrol utility doesn't have a disconnect command or a stop unit command (that I can find), so I was going to try to use 'camcontrol cdb' to send a stop unit command to the drive. Has anyone done anything similar? Can someone help me locate the necessary parameters to use for this command? All I can seem to find with Google is a quick reference for SCSI commands. It tells me the command to use is 1B, but I don't know what other details are needed to fill out the CDB command. I need to fill 6, 10, 12, or 16 bytes, and I only have the first. Help?