if you have zpool commands (iostat, status) output with mix of GPTID and GEOM name, it's not so easy to read. Small script below (fixer.sh) will convert GPTID to GEOM name in zpool output piping:
zpool iostat -v | ./fixer.sh
Code:
#!/bin/sh # to change GPTID to GEOM name in zpool commands by turvas@gmail.com # usage with zpool output procssing : zpool iostat -v | ./fixer.sh glabel status | awk '{print "s|"$1"|"$3"\t\t\t |g"}' > glabel-lookup.sed sed -f glabel-lookup.sed rm glabel-lookup.sed