Follow-up Comment #8, bug #43653 (project grub):
Another example (to show what a raidz looks like, mirror is probably similar,
my previous example is a single drive pool)
[root@localhost ~]# zdb -C storage
MOS Configuration:
version: 5000
name: 'storage'
state: 0
txg: 140131
pool_guid: 17167584455341853717
errata: 0
hostname: 'localhost'
vdev_children: 2
vdev_tree:
type: 'root'
id: 0
guid: 17167584455341853717
create_txg: 4
children[0]:
type: 'raidz'
id: 0
guid: 16890424298360256069
nparity: 2
metaslab_array: 34
metaslab_shift: 37
ashift: 12
asize: 20003866804224
is_log: 0
create_txg: 4
children[0]:
type: 'disk'
id: 0
guid: 17777217965918563459
path: '/dev/sdb1'
whole_disk: 1
create_txg: 4
children[1]:
type: 'disk'
id: 1
guid: 7290186694997986110
path: '/dev/sdg1'
whole_disk: 1
create_txg: 4
children[2]:
type: 'disk'
id: 2
guid: 5903874119169633124
path: '/dev/sdc1'
whole_disk: 1
create_txg: 4
children[3]:
type: 'disk'
id: 3
guid: 9042132936038593189
path: '/dev/sdf1'
whole_disk: 1
create_txg: 4
children[1]:
type: 'disk'
id: 1
guid: 10552128460515355461
path:
'/dev/disk/by-id/ata-SanDisk_SDSSDA120G_999999999999-part1'
whole_disk: 0
metaslab_array: 107
metaslab_shift: 24
ashift: 9
asize: 1018691584
is_log: 1
create_txg: 60548
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
This is not best example since this one is using /dev/sdX for it's members, so
would probably work as-is, but if it was using /dev/disk/by-id it wouldn't, so
just use your imagination. :)
Sadly, my C-fu is too weak to attempt writing any patches myself at the
moment. I haven't done any "real" C programming in probably a decade. I
glanced at the code and the output parsing would need to be rewritten since
the output is in a different format, but if that's done it should be fine.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43653>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub