From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 25 04:24:06 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 0169D106566C for ; Mon, 25 Jul 2011 04:24:06 +0000 (UTC) (envelope-from stephen.hocking@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 900EC8FC13 for ; Mon, 25 Jul 2011 04:24:05 +0000 (UTC) Received: by wwe6 with SMTP id 6so3568549wwe.31 for ; Sun, 24 Jul 2011 21:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZEqX1XBkJynkUjh6nsbqu8c3dFqrUZle++vgoatLO5E=; b=vK8qJv2G2TWSAJTV4JYbNWZcSVmb/uwehHiXj18Ttf6PBfzfY+5m2ya9v2jTwvmr7j /e7G/qrY4R+dPKO3mQoLmgvfvvXBJ6R2WRsjum3/yMbN8tPVA/wQ72UeTRnSEozgbIZL cHy3mLQdnORFJLRoetCsWg9fxcn1yUKxvQiqs= MIME-Version: 1.0 Received: by 10.216.137.4 with SMTP id x4mr105629wei.53.1311567844379; Sun, 24 Jul 2011 21:24:04 -0700 (PDT) Received: by 10.216.86.133 with HTTP; Sun, 24 Jul 2011 21:24:04 -0700 (PDT) In-Reply-To: <29AAE187-42EB-4478-985B-DF7DB3EDE67F@gsoft.com.au> References: <29AAE187-42EB-4478-985B-DF7DB3EDE67F@gsoft.com.au> Date: Mon, 25 Jul 2011 14:24:04 +1000 Message-ID: From: Stephen Hocking To: "Daniel O'Connor" Content-Type: text/plain; charset=ISO-8859-1 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:24:06 -0000 On Mon, Jul 25, 2011 at 2:15 PM, Daniel O'Connor wrote: > > 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.. > Both Test Rat & Daniel pointed me towards gpart list. The gpart man page doesn't seem to mention the list command, which is probably why I missed it. Anyways, now all I have to do is label my hotswap drawers properly.... Stephen