- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: calculate the size of HD that are there in the...
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-24-2006 08:04 PM
тАО09-24-2006 08:04 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 08:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 08:19 PM
тАО09-24-2006 08:19 PM
Re: calculate the size of HD that are there in the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 08:21 PM
тАО09-24-2006 08:21 PM
Re: calculate the size of HD that are there in the server
Using sam is the easiest way
sam-->disks and file systems-->disk devices
will show you all the disks present in the system.
You can do this also using command ioscan
#ioscan -fnC disk
will show you all the disk devices including cdrom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 08:27 PM
тАО09-24-2006 08:27 PM
Re: calculate the size of HD that are there in the server
the answer is still SAM, as you do not define what you want to count.
SAM will show you:
1. All physical connected disks
2. All space in Volume Groups
3. All space Logical Volume
For example:
You may have a disk on the machine, which is not mounted, so can not be used on server, but could be used, if assigned to vg and lvol built.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 08:38 PM
тАО09-24-2006 08:38 PM
Re: calculate the size of HD that are there in the server
a very crude summation of total allocatable space of attached disk storage can be done with this one-liner.
# ioscan -knfdsdisk|awk '/rdsk/{print$NF}'|xargs -n1 diskinfo|awk '$1~/size:/{s+=$2};END{printf"%10.2f GB\n",s/2^20}'
191.63 GB
But this has a few deficits.
If you use multiple paths for e.g. attached SAN storage you may count the space twice.
Also your host may see SAN space not intended for normal usage by this host (think of clustered systems who only act as failover nodes for applications and their storage).
As you can see, it isn't really that easy.
As admin you must know what of the attached storage is used in what way way.
If you want to find out the not yet allocated disk space you could do a similar count of free physical extents PEs of every volume group.
But again, with cluster shared VGs you might get misleading results.
Also note that you must distinguish between disk space already under control of a volume manager like LVM or VxVM and that still "floating" around or used in different ways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 08:43 PM
тАО09-24-2006 08:43 PM
Re: calculate the size of HD that are there in the server
With those you need to split your calculations to end at the effective usable disk space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 08:29 PM
тАО09-25-2006 08:29 PM
Re: calculate the size of HD that are there in the server
for free disk space you also can use 'bdf'.
But here you also have to check if mounted disks are listed oftener.
You get a list of available space under 'avail'.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 09:24 PM
тАО09-25-2006 09:24 PM
Re: calculate the size of HD that are there in the server
Also you can find the script here , Bill's good bdfmegs script to check filesystem size in MB / GB.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1048509
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 10:24 PM
тАО09-25-2006 10:24 PM
Re: calculate the size of HD that are there in the server
You may use vgdisplay -v to check the free disk space:
vgdisplay -v | grep -E "PE Size|Free PE" |grep -v " Free PE"
The output will be something like:
PE Size (Mbytes) 4
Free PE 46
PE Size (Mbytes) 4
Free PE 1003
PE Size (Mbytes) 4
Free PE 5178
In this case, the total free disk space (configure in VG greoups)on this server is:
4x46 + 4x1003 + 4x5178 = 24908 MB
bdfmgs (or bdf command) count free disk space on each lvol/mount point and vgdisplay -v provide free disk space can be used to extend existing lvols or create new lvols.
Regards,
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 10:56 PM
тАО09-25-2006 10:56 PM
Re: calculate the size of HD that are there in the server
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 11:33 PM
тАО09-25-2006 11:33 PM
Re: calculate the size of HD that are there in the server
and then if you want to display complete the disk that is configured use pvdisplay /dev/dsk/cxtxdx
multiply PE Size * total PE
if the disk is not configured diskinfo is teh best command but remember to use rdsk instead of dsk ( character device )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2006 02:52 PM
тАО09-28-2006 02:52 PM
Re: calculate the size of HD that are there in the server
I wrote a Perl scipt for disk
and many other HP-UX tests (more
than 200 different tests).
http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt
As long as you have a decent (anything
about 5.005) version of Perl, it works
very nicely.
So far, it helped me check
HP-UX servers (from small servers to
large SuperDomes) many times.
VK2COT