- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unallocated disk space
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
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
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
10-22-2001 10:14 AM
10-22-2001 10:14 AM
Would someone be so kind as to share with me a command to return unallocated disk space? I can get it using SAM, but I can't seem to find the right command to return this vaule. Any thoughts?
I am running 10.20.
Thank you.
Grant
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:16 AM
10-22-2001 10:16 AM
Re: unallocated disk space
Then look for Free PE, where a PE is usually 4MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:20 AM
10-22-2001 10:20 AM
Re: unallocated disk space
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:22 AM
10-22-2001 10:22 AM
Re: unallocated disk space
if you want unused disk space on a volume group that you should go with the command Harry gave you. If you want free space in a file system you can use the bdf command.
if you want free space of unused disks you can try finding it with sam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:24 AM
10-22-2001 10:24 AM
Re: unallocated disk space
# vgdisplay /dev/vgXX
...will return the PE size in MB along with the amount allocated and unallocated. Remember, 1MB=1024 KB.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:26 AM
10-22-2001 10:26 AM
Re: unallocated disk space
Since I'm not sure what kind of disk array you have...I'm not 100% sure what command to state.
If you have an EMC disk array you might want to use the 'inq' utility. But bear in mind that will not report any disks that are being used as raw devices.
Or you may want to use the 'arraydsp' command.
If you have some different kind of disk array you may want to check to see what utilities they offer....
Well, hope this helps get you started at least,
Rit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:35 AM
10-22-2001 10:35 AM
Solution1. Get the volume groups
$/usr/sbin/vgdisplay -v |grep "VG Name" |awk '{print $3}'
(You will get a list here say vg00,vg01,vg02 etc.,)
$/usr/sbin/vgdisplay vgxx |grep "Free PE" |awk '{print $3}' ---> A
(You will get the number of PEs free on this volume group.)
$/usr/sbin/vgdisplay vgxx |grep "PE Size" |awk {print $4}' -----> B
(You will get the PE size here)
The total space available in this volume group is "Number of Free PE x PE Size" = AxB
Repeat the above for all the volume groups listed in step 1.
You will get free space in each volume group.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:36 AM
10-22-2001 10:36 AM
Re: unallocated disk space
Vgdisplay -v can certainly be used to indicate unused LVM space; however, if you want to know much more about disk space and possibly unused physical volumes then the best is an old standby written by Peter Van Giel - lvmcollect.
You can use it as is or modify it to your heart's content.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 10:37 AM
10-22-2001 10:37 AM
Re: unallocated disk space
Rita's point is well taken. I presume(d) that you are looking at a volume group. To look at a physical disk (maybe just one of several in a vg), do:
# pvdisplay /dev/dsk/cXtYdZ
...or to look merely at the capacity, regardless of whether the physical disk is configured with LVM or not, do:
# diskinfo /dev/rdsk/cXtYdZ
...and note the use of the (r)aw device file in the 'diskinfo' syntax.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 12:11 PM
10-22-2001 12:11 PM
Re: unallocated disk space
Sridhar Bhaskarla, your answer was right on for what I was attempting to accomplish.
Sorry for making all you guys DIG to figure out what I meant.
Cheers,
Grant