As the pool name is known we could run:
zdb -C poolname
to get the pool's configuration, which includes the path to all members of all (available) vdevs.
To get the configuration of a known, exported pool we could use:
zdb -C -e poolname
This will work as long as the pool is not imported and its devices can be found in /dev/.
As the pool name is known we could run:
zdb -C poolname
to get the pool's configuration, which includes the path to all members of all (available) vdevs.
To get the configuration of a known, exported pool we could use:
zdb -C -e poolname
This will work as long as the pool is not imported and its devices can be found in /dev/.
Sample output follows: :~/zfs# zdb -C sbooblehat-rpool
root@sbooblehat
MOS Configuration: 19597
vdev_children: 1 19597
children[ 0]:
type: 'disk'
guid: 2058733885599967477
path: '/dev/disk/ by-id/ata- Samsung_ SSD_850_ EVO_120GB_ S21UNSAG310692M -part1'
whole_ disk: 1
metaslab_ array: 35
metaslab_ shift: 29
ashift: 13
asize: 90011336704
is_log: 0
DTL: 59
create_ txg: 4
features_ for_read:
version: 5000
name: 'sbooblehat-rpool'
state: 0
txg: 3550165
pool_guid: 137672269172349
errata: 0
hostid: 2831164860
hostname: 'sbooblehat'
vdev_tree:
type: 'root'
id: 0
guid: 137672269172349
id: 0
root@sbooblehat :~/zfs# zdb -C -e sbooblehat-rpool
zdb: can't open 'sbooblehat-rpool': File exists
root@sbooblehat :~/zfs# zdb -C -e TEMP
zdb: can't open 'TEMP': No such file or directory
root@sbooblehat :~/zfs# zdb -C -e -p . TEMP
MOS Configuration:
vdev_children: 1
create_ txg: 4
children[ 0]:
type: 'file'
guid: 159153011526000 74830
path: '/root/zfs/A'
metaslab_ array: 34
metaslab_ shift: 24
ashift: 9
asize: 100139008
is_log: 0
create_ txg: 4
features_ for_read:
com. delphix: hole_birth
com. delphix: embedded_ data
version: 5000
name: 'TEMP'
state: 1
txg: 8
pool_guid: 6410361307144069801
errata: 0
hostid: 2831164860
hostname: 'sbooblehat'
vdev_tree:
type: 'root'
id: 0
guid: 6410361307144069801
id: 0