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:
root@sbooblehat:~/zfs# zdb -C sbooblehat-rpool
MOS Configuration:
version: 5000
name: 'sbooblehat-rpool'
state: 0
txg: 3550165
pool_guid: 13767226917234919597
errata: 0
hostid: 2831164860
hostname: 'sbooblehat'
vdev_children: 1
vdev_tree:
type: 'root'
id: 0
guid: 13767226917234919597
children[0]:
type: 'disk'
id: 0
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:
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:
version: 5000
name: 'TEMP'
state: 1
txg: 8
pool_guid: 6410361307144069801
errata: 0
hostid: 2831164860
hostname: 'sbooblehat'
vdev_children: 1
vdev_tree:
type: 'root'
id: 0
guid: 6410361307144069801
create_txg: 4
children[0]:
type: 'file'
id: 0
guid: 15915301152600074830
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
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1527727
Title:
grub-probe for zfs assumes all devices prefix with /dev, ignoring
/dev/disk/...
To manage notifications about this bug go to:
https://bugs.launchpad.net/grub/+bug/1527727/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs