Hossenfeffer:~ dtm$ sudo zdb -l /dev/disk0
Password:
--------------------------------------------
LABEL 0
--------------------------------------------
version=8
name='big'
state=1
txg=282255
pool_guid=11849983899618372757
top_guid=6282600282372245799
guid=8824671748237612096
vdev_tree
type='raidz'
id=0
guid=6282600282372245799
nparity=2
metaslab_array=14
metaslab_shift=32
ashift=12
asize=16003153002496
is_log=0
children[0]
type='replacing'
id=0
guid=15639660508681507650
whole_disk=0
children[0]
type='disk'
id=0
guid=761026885786631126
path='/dev/disk1'
whole_disk=0
DTL=28
children[1]
type='disk'
id=1
guid=11821611813174021595
path='/dev/disk3'
whole_disk=0
not_present=1
DTL=1301
children[1]
type='disk'
id=1
guid=4101988372858212367
path='/dev/disk8'
whole_disk=0
DTL=27
children[2]
type='disk'
id=2
guid=6991906270239885202
path='/dev/disk4'
whole_disk=0
DTL=26
children[3]
type='disk'
id=3
guid=10083192959729976354
path='/dev/disk3'
whole_disk=0
DTL=25
children[4]
type='disk'
id=4
guid=8824671748237612096
path='/dev/disk2'
whole_disk=0
DTL=24
children[5]
type='disk'
id=5
guid=1030746179038249550
path='/dev/disk6'
whole_disk=0
DTL=1302
children[6]
type='disk'
id=6
guid=6882870521017438537
path='/dev/disk7'
whole_disk=0
DTL=1243
children[7]
type='disk'
id=7
guid=11299509371824603245
path='/dev/disk5'
whole_disk=0
DTL=1284
--------------------------------------------
LABEL 1
--------------------------------------------
version=8
name='big'
state=1
txg=282255
pool_guid=11849983899618372757
top_guid=6282600282372245799
guid=8824671748237612096
vdev_tree
type='raidz'
id=0
guid=6282600282372245799
nparity=2
metaslab_array=14
metaslab_shift=32
ashift=12
asize=16003153002496
is_log=0
children[0]
type='replacing'
id=0
guid=15639660508681507650
whole_disk=0
children[0]
type='disk'
id=0
guid=761026885786631126
path='/dev/disk1'
whole_disk=0
DTL=28
children[1]
type='disk'
id=1
guid=11821611813174021595
path='/dev/disk3'
whole_disk=0
not_present=1
DTL=1301
children[1]
type='disk'
id=1
guid=4101988372858212367
path='/dev/disk8'
whole_disk=0
DTL=27
children[2]
type='disk'
id=2
guid=6991906270239885202
path='/dev/disk4'
whole_disk=0
DTL=26
children[3]
type='disk'
id=3
guid=10083192959729976354
path='/dev/disk3'
whole_disk=0
DTL=25
children[4]
type='disk'
id=4
guid=8824671748237612096
path='/dev/disk2'
whole_disk=0
DTL=24
children[5]
type='disk'
id=5
guid=1030746179038249550
path='/dev/disk6'
whole_disk=0
DTL=1302
children[6]
type='disk'
id=6
guid=6882870521017438537
path='/dev/disk7'
whole_disk=0
DTL=1243
children[7]
type='disk'
id=7
guid=11299509371824603245
path='/dev/disk5'
whole_disk=0
DTL=1284
--------------------------------------------
LABEL 2
--------------------------------------------
failed to read label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to read label 3
Hossenfeffer:~ dtm$> So yeah, for some reason I guess the permissions had changed on my zpool drives such that I needed to use 'sudo'. Even after having initialized the kext.
When ZFS auto mounts a drive (because it sees the ZFS partition type) that gets run as root. That's distinct from mounting a FS (even root FS) from an already known pool. So to do a zpool import, you need to be root.
You will find you need to import the pool manually at next startup as well since the zfs.util which does the probing won't recognise it without the partition type.
Alex