- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding the unallocated-disks/Free-disks.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 10:51 PM
тАО09-10-2008 10:51 PM
Finding the unallocated-disks/Free-disks.
How to find the unallocated-disks/Free-disks in hpux.
That disk should be part of LVM/VERITAS/ORACLE RAW FILESYSTEM.
Please suggest.
Regards,
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 11:04 PM
тАО09-10-2008 11:04 PM
Re: Finding the unallocated-disks/Free-disks.
If the disk is not yet used in LVM then u get following output
suxde034 # pvdisplay /dev/dsk/c17t1d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c17t1d0" belongs.
If the disk is/was part of LVM use
suxde900 # pvdisplay /dev/dsk/c3t1d0
--- Physical volumes ---
PV Name /dev/dsk/c3t1d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 2169
Free PE 1418
Allocated PE 751
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
here u can look for
Total PE 2169
Free PE 1418
Allocated PE 751
If "total PE" and "Free PE" are same means though disk is part of LVM it is free
another way is vgdisplay -v vgname
at the end u get disks the VG is having and its PE statistics
for ex:
PV Name /dev/dsk/c3t1d0
PV Status available
Total PE 2169
Free PE 1418
Autoswitch On
here "Total PE" and "free PE" are not matching means disk is used.
IS this what u expected?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 11:08 PM
тАО09-10-2008 11:08 PM
Re: Finding the unallocated-disks/Free-disks.
#strings /etc/lvmtab | grep "cntndn"
If its not a part of lvmtab means this disk is free on server. it is not used anywhere.
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 11:13 PM
тАО09-10-2008 11:13 PM
Re: Finding the unallocated-disks/Free-disks.
Thanks for the reply.
In my server, there are 400 disks are there in ioscan output. So I can't verify manually. Is there any script to verify the disks are free.
That disks should not be in LVM/Veritas/Oracle RAW format disk,etc..
Regards,
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 11:33 PM
тАО09-10-2008 11:33 PM
Re: Finding the unallocated-disks/Free-disks.
/etc/lvmtab contains the all vgs and its pv respectively. so if its not a part of vg means its not part of lv.see if u r using raw FS for oracle but that raw FS is nothing but the lv. and lv will be the part of vg. its ebntry will be in /etc/lvmtab. so that disk will not be a member of raw FS
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 01:29 AM
тАО09-11-2008 01:29 AM
Re: Finding the unallocated-disks/Free-disks.
In our server, there 400 EMC disks are there, so I can't verify individually.
Regards,
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 02:00 AM
тАО09-11-2008 02:00 AM
Re: Finding the unallocated-disks/Free-disks.
If you have VxVM initialized on your system then,
vxdisk list
should show you at least VxVM and LVM disks - I'm not sure whether it can identify raw Oracle disks, Oracle ASM disks or Oracle Clusterware registry/voting disks
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 02:15 AM
тАО09-11-2008 02:15 AM
Re: Finding the unallocated-disks/Free-disks.
ioscan -funCdisk|awk '{print $NF}'|grep dev>/tmp/ioscandisk
and compare two files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 04:56 AM
тАО09-11-2008 04:56 AM
Re: Finding the unallocated-disks/Free-disks.
>>> if u r using raw FS for oracle but that raw FS is nothing but the lv.<<
It is not always true. For example Oracle 10g is capable of using disks even without sitting top of LVM.
But as suggested, getting comparison from ioscan and lvmtab will be helpful here.
If it is a prod box, go through the configuration doc if any.