|
find VG with FS
Hi All,
When ever I need to increase the FS,
I need to list VG first with:
lsvg
rootvg
vg2
It will give the list of VG, then I will do this:
lsvg -l rootvg | grep FS
lsvg -l vg2 | grep FS
If I find in vg2 then I can verify the VG free space and then I can compute how much space I can add.
Is there someone already have a script for this?
If I were thinking of scripting this, I think it's a little difficult because I need to do this "lsvg > listvg" and from that, I need to loop on the file listvg. I can do that but I know someone might have a trick on this with simple bash/korn shell scripting without file reading.
Thanks in advance
itik
|