Operating System - HP-UX
1753767 Members
5857 Online
108799 Solutions
New Discussion

Re: How to find unused Disk on the HPUX system valid for 11.11 .11.23 11.31

 
singh sanjeev
Trusted Contributor

How to find unused Disk on the HPUX system valid for 11.11 .11.23 11.31

Is any one have script for it. Please share ,else i have to write for it. Thank you 

Sanjeev Singh
1 REPLY 1
Bill Hassell
Honored Contributor

Re: How to find unused Disk on the HPUX system valid for 11.11 .11.23 11.31

There is no single test or even several tests that will show unused disks. You can use either vgdisplay -v or strings /etc/lvmtab and swapinfo -tam to show what is actively being used but this will not account for whole disks used by raw access databases such as Informix or Sybase (sometimes Oracle). There might be alternate paths that were never configured into a volume group. If the systems use VxVM rather than LVM, use the VxVM commands to identify the disks.

You might be able to check unknown disks by using xd -xc to list the header information but it will take some research to decode each non-LVM disk. You can also look through shell history files (assuming they are kept) like .sh_history. If you have inherited systems with zero documentation, your first task is to inventory every application and database running on each box then look at application config files to see what disk resources they use.

I would get a copy of cfg2html (cfg2html.com or github) and run it on each system. Use the contents as a starting point.



Bill Hassell, sysadmin