Mapping /dev/gptid numbers to /dev/adXpY

Freddie Cash fjwcash at gmail.com
Mon Jul 25 04:59:36 UTC 2011


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 at gmail.com> wrote:
> On Mon, Jul 25, 2011 at 2:15 PM, Daniel O'Connor <doconnor at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>

-- 
Freddie Cash
fjwcash at gmail.com


More information about the freebsd-hackers mailing list