- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- connecting pv to vg and lv(s)
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
04-04-2002 01:47 PM
04-04-2002 01:47 PM
connecting pv to vg and lv(s)
volume group and logical volume(s) a physical volume is associated, from an application without fork/exec'ing one of the LVM utilities? Can /etc/lvmtab be accessed directly? A 1995 whitepaper on LVM mentioned a set of LVM ioctl() calls. Are these available? I am working on a multi-threaded application that fails when we use fork/exec.
Thanks,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 01:52 PM
04-04-2002 01:52 PM
Re: connecting pv to vg and lv(s)
# pvdisplay -v /dev/dsk/cxtydz - will give you the information. Not sure about any system calls which produce these outputs.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 01:55 PM
04-04-2002 01:55 PM
Re: connecting pv to vg and lv(s)
/etc/lvmtab can be accessed directly. If you want to read the content, use 'strings' command
# strings /etc/lvmtab
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 02:11 PM
04-04-2002 02:11 PM
Re: connecting pv to vg and lv(s)
Well that's certainly an interesting multi-threaded program - can only thread itself, huh?
Well one problem you'll have is that lvmtab is NOT an ascii file. So you'd have to use a read call that handles binaries. Also be advised that it contains only VG & device info - I don't think any LV names are in there.
Good Luck,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 02:12 PM
04-04-2002 02:12 PM
Re: connecting pv to vg and lv(s)
I just saw the 1995 LVM white paper you mentioned. It says about the ioctl() calls, which are used by ststem ( open, read, write, close etc) for LVM management. But I don't think these calls can be used in a user application. And you will be taking a risk by trying these functions. Also /etc/lvmtab cannot be read/write by local on-screen functions and commands. You can only view the content by 'strings' command.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 07:41 PM
04-04-2002 07:41 PM
Re: connecting pv to vg and lv(s)
"strings /etc/lvmtab" will allow you to see the contents of the the lvmtab file. "pvdisplay -v /dev/dsk/cxtydz" will tell what is the association of disk cxtydz with VG and lv.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 11:15 PM
04-04-2002 11:15 PM
Re: connecting pv to vg and lv(s)
#pvdisplay -v /dev/dsk/c#t#d# ?? more
Will display in which Volume Group this Physical Volume ( disk ) is attributed and all defined Logical Volume within it.
#strings /etc/lvmtab
Will display the list of Physical Volumes ( disks ) for each Volume Group.
Magdi