turvas submitted a new resource:
zpool output unification with converting GPTID to GEOM name - converting GPTID to GEOM name in zpool output
Read more about this resource...
zpool output unification with converting GPTID to GEOM name - converting GPTID to GEOM name in zpool output
if you have zpool commands with mix of GPTID and GEOM name, it's not so easy to read. Small script below 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"|g"}' > glabel-lookup.sed sed -f glabel-lookup.sed
Read more about this resource...