The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM



Thread: find VG with FS
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-16-2008
itik itik is offline
Registered User
 

Join Date: Oct 2007
Posts: 269
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
Reply With Quote
Forum Sponsor