Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding unallocated LVs

Status
Not open for further replies.

AIXFinder

IS-IT--Management
Jan 4, 2007
97
US
// AIX 5.2.8

How do you find the LVs that are not allocated to db or filesystems yet?
I need to find LVs that have been created, but not assigned yet.

thx
 
Hi

Try this:

for vg in `lsvg`
do
lsvg -l
done |grep -i closed

HTH

Kind Regards,
Matthew Bourne
"Find a job you love and never do a day's work in your life.
 
Code:
lsvg -o|lsvg -il|grep -i closed

BUT...
if a DB is down, the LVs assigned to it would also be closed...
if a FS is unmounted, the LV that the FS is on would also be closed...
if all JFS FSs of a VG are unmounted, the JFSLOG LV would also be closed...
if all JFS2 FSs of a VG are unmounted, the JFS2LOG LV would also be closed...

so a bit safer for FS LVs:
Code:
lsvg -o|lsvg -il|egrep -i ' jfs .*closed| jfs2 .*closed'

If there are specific LV types you use for the DB LVs, add or substitute those in the egrep string

So basically you want to make sure all FS are mounted, all your DBs are running before drawing any conclusions!


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top