Skip to content


mirroring progress in AIX

in the past, I posted this “snippet” as the solution to often asked question – how much mirroring is done? Today, I had an opportunity to use it. Man, it works like charm!!! Such a small thing but so much joy 🙂


#!/usr/bin/ksh93
### W.M. Duszyk, 3/2/12
### show percentage of mirrored PPs in a volume group

[[ $# < 1 ]] && { print "Usage: $0 vg_name"; exit 1; } vg=$1 Stale=`lsvg -L $vg | grep 'STALE PPs:' | awk '{print $6}'` [[ $Stale = 0 ]] && { print "$vg is fully mirrored."; exit 2; } Total=`lsvg -L $vg | grep 'TOTAL PPs:' | awk '{print $6}'` PercDone=$(( 100 - $(( $(( Stale * 50.0 )) / $Total )) )) echo "Volume group $vg is mirrored $PercDone%." exit 0 Regardlles, how mirroring got started this script delivers the answer. Remember, it came from here 🙂

Posted in AIX.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

WordPress Anti Spam by WP-SpamShield



Copyright © 2016 - 2017 Waldemar Mark Duszyk. All Rights Reserved. Created by Blog Copyright.