*********************************************************
john's notes
*********************************************************
note: these are notes
#! /bin/sh
REV='@(#) $Header: mrshow,v 2.3 95/08/28 12:35:40 ebrown Exp $'
# A script to show disk mirror information

        progname=`basename $0`

        PATH=$PATH:/etc
        export PATH

# Define Copyright Message: ####################################

Short_Copyright() {
echo ""
}

Copyright() {
Short_Copyright
echo "All Rights Reserved.  This copyright and the 'REV' string(s)
included in the source must not be removed.  Permission is granted for
unrestricted non-commercial use on all non-source licensed systems.

"
}

# Main: #######################################################

        (Short_Copyright) >&2

        echo "\f\c"
        uname -a
        date
        echo
        find /dev/ -type b -print |
        sort -df |
        xargs lvdisplay -v  2>&- |
        awk '
        /^LV Name/ {
                printf("\n");
                label=$0;
        }
        /^Mirror copies/ {
                mirrors=$NF;
        }
        /^LV Size/ {
                size=$NF;
                printf("Mirrors: %3s\n",mirrors);
                printf("%-60.60s %10s Mb\n",label, size);
        }
        /PV Name/,/^$/ {
                print
        }
        '

        echo "--"

# end


john's System Admin page. -- john's home page. -- email: john@wagoneers.com
Copyright © 1997 John Meister All rights reserved.