- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Total 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
02-28-2006 09:33 PM
02-28-2006 09:33 PM
Total Disk Space
How do I check total disk space on HP_UX system. BDF is showing each mounted file system available space, I want to get total space. It is available in NCR UNIX_SV. I am enclosing both out put.
Thanks and Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 09:39 PM
02-28-2006 09:39 PM
Re: Total Disk Space
#vgdisplay -v vg00
Will let you know the allocated and free space in vg00. Samething applies for other LVOLs as well. Apart from this the unused disks can also be seen in
#ioscan -fnC disk
Compare output with the one in
#strings /etc/lvmtab
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 09:44 PM
02-28-2006 09:44 PM
Re: Total Disk Space
bdf | grep -v kbytes | awk '{ sum += $2; } END { print sum; }'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 09:58 PM
02-28-2006 09:58 PM
Re: Total Disk Space
The query has been intiated by many in ITRC forum from time to time. The answer is "depends"..
We need to identify what are all disks in HPUX box is used for..
1) LVM disks is easier to track, say by /etc/lvmtab file.
2) VXVM disks are also quite easier to track ,say by vxdisk and vxprint commands.
But the real issue is , there is no way to track, whether a app or OS is using a set of disk in the raw device format. If you are a system admin for a Unix box, and u are sure, how the Disk is used as far as raw device utility goes,.. then you can calculate the total disk space available from calculating from LVM and VXVM subsystems. As such a script cannot be written to fetch the data, as the "raw device usage" part might render the output of the script inaccurate.
regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 10:25 PM
02-28-2006 10:25 PM
Re: Total Disk Space
Hi,
You can do #vgdisplay -v for all VGs and get the info.
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2006 02:22 AM
03-01-2006 02:22 AM
Re: Total Disk Space
Peace!
Please find attached 2 scripts I've adapted and developed.
Hope it suits your needs. Or you can modify it to further suit your needs.
Enjoy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2006 02:23 AM
03-01-2006 02:23 AM
Re: Total Disk Space
Here they are one is for LVM another for VxVM (I call the tools vginfo and dginfo respectively).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2006 02:23 AM
03-01-2006 02:23 AM
Re: Total Disk Space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2006 02:24 AM
03-01-2006 02:24 AM
Re: Total Disk Space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2006 02:28 AM
03-01-2006 02:28 AM
Re: Total Disk Space
I would do two things:
1) Get the total disk size:
diskinfo /dev/rdsk/cXtYdZ
repeat for all disks in the VG
Add them all up
Divide by 2 IF the VG is mirrored
This will be the absolute max disk space available.
2) Then get the free space:
vgdisplay /dev/vg_name
And multiply PE Size x Free PE
Divide by 2 IF the VG is mirrored.
This will be the unallocated space that *could* be added to the VG
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2006 06:28 AM
03-05-2006 06:28 AM