FreeBSD, FreeNAS

How to use GPT labels on FreeNAS – Part 1

I’ve recently been on a mission to make FreeNAS use GPT labels. By default, FreeNAS uses the GPT GUID format which makes it difficult to track down a drive in the event of a failure.

For example, the zpool status of a default FreeNAS setup will look something similar to:

[root@freenas] ~# zpool status tank
  pool: tank
 state: ONLINE
  scan: none requested
config:

	NAME                                            STATE     READ WRITE CKSUM
	tank                                            ONLINE       0     0     0
	  mirror-0                                      ONLINE       0     0     0
	    gptid/c16b5f1a-2abf-11e5-874b-000c29f1f845  ONLINE       0     0     0
	    gptid/c181b4bb-2abf-11e5-874b-000c29f1f845  ONLINE       0     0     0

errors: No known data errors

Unfortunately, this only tells you the GUID of the disk which is not available in the UI at all. Therefore, in the event of a failure, you’ll have to poke around to pinpoint which disk has failed.

Let’s fix that… Continue reading

Advertisements