Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 14:24:04 +1000
From:      Stephen Hocking <stephen.hocking@gmail.com>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        hackers@freebsd.org
Subject:   Re: Mapping /dev/gptid numbers to /dev/adXpY
Message-ID:  <CA%2BxzKjDWva2Aumk5%2BQqWOdchvur%2B-R4jMF3nZbzw5WdF1-HGNA@mail.gmail.com>
In-Reply-To: <29AAE187-42EB-4478-985B-DF7DB3EDE67F@gsoft.com.au>
References:  <CA%2BxzKjCOEuLauzSbcb3HAqxVR2D3QuUKWUT=uvoo8xAS9UjMXA@mail.gmail.com> <29AAE187-42EB-4478-985B-DF7DB3EDE67F@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 25, 2011 at 2:15 PM, Daniel O'Connor <doconnor@gsoft.com.au> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BxzKjDWva2Aumk5%2BQqWOdchvur%2B-R4jMF3nZbzw5WdF1-HGNA>