Mapping /dev/gptid numbers to /dev/adXpY

2011-07-24 Thread Stephen Hocking
Hi all, After shuffling some disks around in a ZFS array (moving them to a hot-swap cabinet) I am now seeing gptid numbers when doing a zpool status: zpool status schtuff pool: schtuff state: ONLINE scan: scrub repaired 0 in 5h57m with 0 errors on Wed Jul 20 17:05:29 2011 config:

Re: Mapping /dev/gptid numbers to /dev/adXpY

2011-07-24 Thread Stephen Hocking
On Mon, Jul 25, 2011 at 2:15 PM, Daniel O'Connor docon...@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

Re: Mapping /dev/gptid numbers to /dev/adXpY

2011-07-24 Thread Daniel O'Connor
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

Re: Mapping /dev/gptid numbers to /dev/adXpY

2011-07-24 Thread Daniel O'Connor
On 25/07/2011, at 13:54, Stephen Hocking wrote: 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

Re: Mapping /dev/gptid numbers to /dev/adXpY

2011-07-24 Thread Freddie Cash
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