09-05-2008
36,
0
Join Date: Jul 2008
Last Activity: 22 October 2012, 3:29 PM EDT
Posts: 36
Thanks Given: 0
Thanked 0 Times in 0 Posts
dispaly vg's and pv's?
hi
i need to write a script,
the script display's list of volume groups followed by physical volumes with in volume group and at the same time the script should display the pvid of physical volume.
what i need is, how to read the line by line from the files...
the below is my script..
echo "List of Volume Groups and Physical Volume:"
while read xxxxxx (the xxxx should read from file reportvg.out)
do
lsvg -p xxxxxx > reportpv.out (the xxxxx is vg anme)
while read xxxxxx ( the xxxx is the pv name from reportpv.out)
do
lspv xxxxx | grep IDENTIFIER ( the xxxx is pv name)
done reportpv.out
done reportvg.out
can anyone help me on this.
thanks
Last edited by honeym210; 09-05-2008 at 11:59 AM..