GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pst_lvinfo or request pst_diskinfo
Operating System - HP-UX
1850409
Members
2218
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-25-2004 10:11 PM
03-25-2004 10:11 PM
Dear all,
how can i use an C routine (pst_lvinfo) to have
logical volume name,
logical volume total space amount
logical volume total space used
logical volume total space free
I have checked pst_lvinfo [ pstat_getlv() ] and pst_diskinfo [pstat_getlv] C routine, but i haven't find the solution
Someone can help me please?
how can i use an C routine (pst_lvinfo) to have
logical volume name,
logical volume total space amount
logical volume total space used
logical volume total space free
I have checked pst_lvinfo [ pstat_getlv() ] and pst_diskinfo [pstat_getlv] C routine, but i haven't find the solution
Someone can help me please?
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 10:51 PM
03-25-2004 10:51 PM
Solution
Alessandro,
I'm afraid you won't be able to get this from pstat().
The LV Name is unknown to the kernel. So You would need to look at the name of the device special file assiciated to it. This is what the LVM commands do also, BTW.
Concerning the LV size... use stat64(2). Concerning the /used/free information... if you are talking about LVs with file systems, you could have a look at statvfs(2).
Best regards...
Dietmar.
I'm afraid you won't be able to get this from pstat().
The LV Name is unknown to the kernel. So You would need to look at the name of the device special file assiciated to it. This is what the LVM commands do also, BTW.
Concerning the LV size... use stat64(2). Concerning the /used/free information... if you are talking about LVs with file systems, you could have a look at statvfs(2).
Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP