- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Disk information in HPUX
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
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
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-10-2006 05:35 PM
тАО10-10-2006 05:35 PM
Disk information in HPUX
Hi all,
I am using statvfs structure in a sample program to get the disk used(f_blocks*f_frsize) and disk free(f_bfree) in a particular file system.What I found was that in HP_UX 11.0 ,the values returned by the structure are different from the values I get from command "df -k".In HPUX 11.11 the values shown are matching with "df -k" output.
Can any one clarify it?
Thank u all
raju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2006 12:30 AM
тАО10-11-2006 12:30 AM
Re: Disk information in HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2006 05:57 PM
тАО10-11-2006 05:57 PM
Re: Disk information in HPUX
hi,
Thank u..Can i know how i can get this block data in kb.. right now i am considering block as byte and caluclating in kb. thank u for ur help
thanks,
raju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2006 06:11 PM
тАО10-11-2006 06:11 PM
Re: Disk information in HPUX
Normaly it's 512 bytes in a block.
- ETL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2006 08:43 PM
тАО10-11-2006 08:43 PM
Re: Disk information in HPUX
Hi,
Thank u all,
I got the "fundamental block size" ie: 1024 from the "f_frsize" field in the statvfs structure.so,i have done
(f_blocks *f_frsize)/1024 to get the total size allocated for filesystem in KB.I got the value as 1496021.
But the "df -k" shows 1346418 (in kb).
please help me on this.
thanks,
raju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 04:09 PM
тАО10-16-2006 04:09 PM
Re: Disk information in HPUX
Hi all,
can anyone tell me the structure i need to refer to get matched output as of "df -k".
As i mentioned earlier, i was not able to get the output as of "df -k".I was refering to statvfs structure..Can anyone help me on this.
thanks
raju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 04:49 PM
тАО10-16-2006 04:49 PM
Re: Disk information in HPUX
Hi
Is the values in the structure "statvfs" gets updated accordingly or it caches the data.The output is not getting matched with df -k output.Which information I need to consideras the correct one, the structure data or the
df -k output?
please anyone clarify me
thanks,
raju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 05:08 PM
тАО10-16-2006 05:08 PM
Re: Disk information in HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 05:59 PM
тАО10-16-2006 05:59 PM
Re: Disk information in HPUX
Hi sandman
I have checked the fs_vxfs man page. It seems to be for format of a vxfs file system. I checked the output of bdf -l.The value of total space allocated for a file system in the bdf -l output is mismatching the the df -k output.i am
confused to see diffrent values for the same field.Can i get a solution to have the correct values of the filesystem
thanks
raju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 06:40 PM
тАО10-16-2006 06:40 PM
Re: Disk information in HPUX
If my memory serves me right, there is a bdf patch in HP-UX 11.00 to fix this mismatch between df and bdf outputs. PLease search for the patch in ITRC.
With regards,
Mohan.