Operating System - HP-UX
1834685 Members
2381 Online
110069 Solutions
New Discussion

output of storage subsystem

 
SOLVED
Go to solution
golfnut
Frequent Advisor

output of storage subsystem

Hi,

I am looking for a script that maps the volume groups, logical volumes, physical volumes, sizes and raid information.


Appreciate a response.

thanks
5 REPLIES 5
golfnut
Frequent Advisor

Re: output of storage subsystem

Man on lvdisplay says
"Mirrored disk information requires the installation of the optional HP
MirrorDisk/UX software, which is not included in the standard HP-UX
operating system."

Is there any other way to find out if volume group has mirrored disks besides using sam?



Helen French
Honored Contributor
Solution

Re: output of storage subsystem

Yes, you can use the lvdisplay command:

# lvdisplay -v /dev/vg00/lvol1

Look for "Mirror Copies" and that will tell you if you have mirroring on that logical volume and how many. If it's 0, then that LV is not mirrored.
Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: output of storage subsystem

For the original question: You may try the print_manifest command (if Ignite-UX has been installed on your system) and that should give you some similar outputs:

# /opt/ignite/bin/print_manifest
Life is a promise, fulfill it!
golfnut
Frequent Advisor

Re: output of storage subsystem

Thanks Shiju.

TwoProc
Honored Contributor

Re: output of storage subsystem

Snagged from ITRC by a guy named Rajesh G.
I like it ...

#!/usr/bin/ksh
#
# @(#) vginfo - snsap shot info of all disks configured under LVM.
#By Rajesh G
#Version 1.2
#Addition in V 1.2 is checking /etc/fstab with lv info for mismatch.
#this script will display a warning if any lvol is not present in /etcfstab

#main

for VGNAME in `strings /etc/lvmtab |grep vg`
do
echo " \n\n Volume Group Name $VGNAME"
PESIZE=`vgdisplay $VGNAME|grep "PE Size"|awk '{print $4}'`
PE=`vgdisplay $VGNAME|grep "Total PE"|awk '{print $3}'`
let TOT_SIZE=PESIZE*PE/1024
echo "Total size is: $TOT_SIZE GB"
for DISK in `vgdisplay -v $VGNAME|grep "PV Name"|awk '{print $3}'`
do
HW_PATH=`lssf $DISK| awk '{print $15}'`
RDSK=/dev/rdsk/`echo $DISK| cut -d "/" -f 4`
DSKSIZE=`diskinfo $RDSK|grep size|awk '{printf "%.2f", $2/1048576}'`
echo " Disk device: $DISK H/W Path: $HW_PATH Size: $DSKSIZE GB"
done
for LVNAME in `vgdisplay -v $VGNAME |grep "LV Name"|awk '{print $3}'`
do
LVSIZE=`lvdisplay $LVNAME|grep "LV Size"|awk '{print $4}'`
MNTPNT=`grep $LVNAME /etc/fstab|awk '{print $2}'`
FSTYPE=`grep $LVNAME /etc/fstab|awk '{print $3}'`
echo " LV Name\t $LVNAME"
if ( grep $LVNAME /etc/fstab )
then
echo " Mount point : $MNTPNT Size : $LVSIZE MB FSType $FSTYPE"
else
echo " Size : $LVSIZE MB "
echo " WARNING LV name $LVNAME not found in /etc/fstab"
fi
done
done
We are the people our parents warned us about --Jimmy Buffett