From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 25 04:28:19 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C77581065672 for ; Mon, 25 Jul 2011 04:28:19 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 3466E8FC08 for ; Mon, 25 Jul 2011 04:28:18 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.44]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p6P4Fd37098541 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 25 Jul 2011 13:45:45 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=iso-8859-1 From: "Daniel O'Connor" In-Reply-To: Date: Mon, 25 Jul 2011 13:45:39 +0930 Content-Transfer-Encoding: 7bit Message-Id: <29AAE187-42EB-4478-985B-DF7DB3EDE67F@gsoft.com.au> References: To: Stephen Hocking X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -3.899 () ALL_TRUSTED,BAYES_00,RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: hackers@freebsd.org Subject: Re: Mapping /dev/gptid numbers to /dev/adXpY X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 04:28:19 -0000 On 25/07/2011, at 11:03, Stephen Hocking wrote: > Now this is all very interesting, but I would like to be able to map > that back to a /dev/adXpY device entry, so when I offline them I can > then go to the appropriate physical disk. I thought that gpart show -r > might help, but the numbers emitted from that don't match up. Looking > at the major/minor numbers of the devices don't help either. Does > anyone have an idea? If you run 'gpart list' you will see a list of device names and UUIDs. Mapping it by hand is a bit tedious though.. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C