Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2011 21:34:54 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        Stephen Hocking <stephen.hocking@gmail.com>
Cc:        "hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Re: Mapping /dev/gptid numbers to /dev/adXpY
Message-ID:  <CAOjFWZ6ECgwARanT4smsb3mc=YA3XqWDAQeopNPPZFt50TUS-Q@mail.gmail.com>
In-Reply-To: <CA%2BxzKjDWva2Aumk5%2BQqWOdchvur%2B-R4jMF3nZbzw5WdF1-HGNA@mail.gmail.com>
References:  <CA%2BxzKjCOEuLauzSbcb3HAqxVR2D3QuUKWUT=uvoo8xAS9UjMXA@mail.gmail.com> <29AAE187-42EB-4478-985B-DF7DB3EDE67F@gsoft.com.au> <CA%2BxzKjDWva2Aumk5%2BQqWOdchvur%2B-R4jMF3nZbzw5WdF1-HGNA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
If you disable gptid labels in /boot/loader.conf and reboot, it should
display the device nodes again. Alternatively, since you are using gpt, you
can just label the partitions, and 'zfs replace' each disk with the
/dev/gpt/labelname node.

On Sunday, July 24, 2011, Stephen Hocking <stephen.hocking@gmail.com> wrote:
> 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
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>

-- 
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ6ECgwARanT4smsb3mc=YA3XqWDAQeopNPPZFt50TUS-Q>