- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I determine Available 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
09-03-2002 12:21 PM
09-03-2002 12:21 PM
As usually, one of the prerequisites is to make sure there is enough free diskspace. uhm, err. How do I do this HPUX? I have been able via SAM to see the total size of the disk on one system (a 2GB & 4GB disk in it). And I can see how much space is used via each filesystem on those disks. But is there a command that I can run which will just give me a quick summery of each disk.
ex. XXX MB total diskspace
XXX MB used
XXX MB Free
Sorry for such a newbie question.
Thanks again,
Donald O'Brien
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 12:23 PM
09-03-2002 12:23 PM
Re: How do I determine Available Disk space?
Either "bdf" or "df" are the common utilities.
"du" is good for getting file space utilization on per directory basis.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 12:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 12:28 PM
09-03-2002 12:28 PM
Re: How do I determine Available Disk space?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 12:30 PM
09-03-2002 12:30 PM
Re: How do I determine Available Disk space?
vgdisplay vgXX | grep -i Free
vgdisplay vgXX | grep -i Size
take the results of column two and multiply ie.
2409 free PE x 4 PE size = approx 9GB Free.
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 12:32 PM
09-03-2002 12:32 PM
Re: How do I determine Available Disk space?
There are several ways to ascertain disk space:
# bdf #...shows utilization at the mounted filesystem level
# pvdisplay [-v] /dev/dsk/cXtYzZ ...with the '-v' option you will see the logical volume mappings
# vgisplay [-v] /dev/vgXX
Note that an 'extent' is often 4MB in size, although on large disks (e.g >= 36GB) this increases to 8MB or larger. The 'pvdisplay' output includes the extent size.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 12:50 PM
09-03-2002 12:50 PM
Re: How do I determine Available Disk space?
To answer your question, these are the commands you should use:
# bdf
# sam - disk devices
# vgdisplay -v vg_name
# lvdisplay -v lv_name
In the last two commands, find the total PE, free PE and multiply it with the PE size to get the disk space details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:01 PM
09-03-2002 01:01 PM
Re: How do I determine Available Disk space?
Another useful tool is Ignite's 'print_manifest'. In reality, because you already routinely create Ignite recovery tapes (at least, I hope you do), you have the 'print_manifest" gratuitously.
Whenever you run 'make_tape_recovery' a new manifest is created. This document gives a quick, but very good LVM summary of your disk configuration:
# /var/opt/ignite/recovery/latest/manifest
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:10 PM
09-03-2002 01:10 PM
Re: How do I determine Available Disk space?
I luckily have a "test" system to try this out on first before going head deep into the 40+ system that I need to upgrade. I will try both "cold" and "upgrade". I'll keep my fingers crossed on the upgrade, but will expect to have to do a "cold-install".
For some reason, Ignite is not on the 10.20 installation of these machines. I'll see if I can get my hands a 10.20 CD and install it for backup purposes before going to 11.00.
I was looking for the vgdisplay command, so thanks for all that replied.
Donald O'Brien
(now if I could only go back and correct those terrible typos in the orginal post :D )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:17 PM
09-03-2002 01:17 PM
Re: How do I determine Available Disk space?
While Ignite can be obtained from a current Application CDROM, it is better (and just as easy) to download a current version.
Software and documentation can be obtained here:
http://www.software.hp.com/products/IUX/download.html
Use 'swinstall' to install the tar depot from the download. No reboot is required and man pages will be installed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:17 PM
09-03-2002 01:17 PM
Re: How do I determine Available Disk space?
The link is:
http://software.hp.com/products/IUX/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:41 PM
09-03-2002 01:41 PM
Re: How do I determine Available Disk space?
Try the attached script.
Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 02:26 PM
09-03-2002 02:26 PM
Re: How do I determine Available Disk space?
I have downloaded Ignite and will install it.
Donald O'Brien