- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: General Quory
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
тАО06-11-2009 02:43 AM
тАО06-11-2009 02:43 AM
General Quory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 02:46 AM
тАО06-11-2009 02:46 AM
Re: General Quory
If you want which vg includes which pv then use
#strings /etc/lvmtab
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 02:51 AM
тАО06-11-2009 02:51 AM
Re: General Quory
vgexport -p -s -v -m /etc/lvmconf/vg01.map vg01
cat /etc/lvmconf/vg01.map
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 03:58 AM
тАО06-11-2009 03:58 AM
Re: General Quory
You could do:
# ./fetchlvmid
#!/usr/bin/sh
typeset RDEV=$1
KIND=$(xd -An -j 8192 -N8 -tc ${RDEV} 2> /dev/null | xargs)
if [ "${KIND}" = "L V M R E C 0 1" ]; then
INFO=$(xd -An -j8200 -N16 -tx ${RDEV})
PVID=$(echo ${INFO} | awk '{print $1 $2}')
VGID=$(echo ${INFO} | awk '{print $3 $4}')
fi
echo "${RDEV} PVID = ${PVID}"
echo "${RDEV} VGID = ${VGID}"
exit 0
# ./fetchlvmid /dev/rdsk/c2t6d0
/dev/rdsk/c2t6d0 PVID = 411b9f8740815108
/dev/rdsk/c2t6d0 VGID = 411b9f8740815108
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 04:06 AM
тАО06-11-2009 04:06 AM
Re: General Quory
The last 2 fields are the VGID read off the disk itself. Not sure if you are looking for that information or what volume group the server has it associated with.