Identifying hard drive slices by guid

All your general support questions for OpenZFS on OS X.

Identifying hard drive slices by guid

Postby jojo45 » Sat Apr 08, 2017 6:12 am

The labels on the zpool status command do not correspond to any guid used by the system for identifying disks and slices. How do you identify and convert from one to the other?

When I run "zpool status", I get the following:

pool: mactank1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
mactank1 ONLINE 0 0 0
media-095F513C-717E-45FE-9294-9DF3E5BC7DE5 ONLINE 0 0 0
logs
media-DD986AED-529C-4D0A-AA8C-CEAB5A998A62 ONLINE 0 0 0

errors: No known data errors

The label for the hard drive slices that are being used for the pool do not correspond to any guid of any disk or slice in my system.

When I run "get show" I get:

start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 3515625000 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
3516034640 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
3517304176 3808593744 4 GPT part - 6A898CC3-1DD2-11B2-99A6-080020736631
7325897920 262144
7326160064 7812496 5 GPT part - 6A898CC3-1DD2-11B2-99A6-080020736631
7333972560 480064575
7814037135 32 Sec GPT table
7814037167 1 Sec GPT header

The GUIDs of each partition do not match the tables on the "zpool status" command at all.

How do you translate from one to the other?
jojo45
 
Posts: 18
Joined: Sat Apr 08, 2017 6:04 am

Re: Identifying hard drive slices by guid

Postby jojo45 » Sat Apr 08, 2017 6:20 am

My bad. I found the solution in the wik: https://openzfsonosx.org/wiki/Device_names

the solution in case someone else is looking for it too:

"zpool status -L tank"

and the ids are listed by symlink in: /var/run/disk/by-id
jojo45
 
Posts: 18
Joined: Sat Apr 08, 2017 6:04 am

Re: Identifying hard drive slices by guid

Postby JasonBelec » Wed Apr 26, 2017 6:10 am

If your using certain hardware you might not get what you expect listed, with by-id, by-serial, etc., but you can cross reference with the System Report and selecting the connection that works go you like PCI, or SATA, whichever works. I have Sonnettech Tempo 4 card in one client system that requires this approach. Fun. NOT! This of course is not a ZFS or OS X issue, but good luck getting some companies (Sonnettech 2014 really?!) to update their crap! ;)
JasonBelec
 
Posts: 32
Joined: Mon Oct 26, 2015 1:07 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 34 guests