- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM info from new PV
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
тАО08-05-2010 01:28 AM
тАО08-05-2010 01:28 AM
LVM info from new PV
I am writing scripts to automate a migration of HP-UX 11.11 servers from one FC switch to another.
I have the export scripts written to vgreduce the PV's from one path and I'm trying to write a script to automate the import after the device files change.
Once the HBA is moved to the new FC switch and the ioscan & insf creates the new devices files I can use vgscan to list all the new devices and their VGs.
However, how can I determine which VG the new devices belong to?
root@locutus:/migrate/mds/bin # pvdisplay /dev/dsk/c43t1d7
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c43t1d7" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c43t1d7".
root@locutus:/migrate/mds/bin # pvdisplay -l /dev/dsk/c43t1d7
/dev/dsk/c43t1d7:LVM_Disk=yes
root@locutus:/migrate/mds/bin # diskinfo /dev/rdsk/c43t1d7
SCSI describe of /dev/rdsk/c43t1d7:
vendor: HP
product id: OPEN-V
type: direct access
size: 48000 Kbytes
bytes per sector: 512
root@locutus:/migrate/mds/bin #
regards,
Shane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 01:32 AM
тАО08-05-2010 01:32 AM
Re: LVM info from new PV
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 04:52 AM
тАО08-05-2010 04:52 AM
Re: LVM info from new PV
You could read the LVM metadata of the raw devices to see which ones share a common VGID.
See my post in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1098858
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 04:54 AM
тАО08-05-2010 04:54 AM
Re: LVM info from new PV
Get PVID and GID from all ctds.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1171205
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 05:00 AM
тАО08-05-2010 05:00 AM
Re: LVM info from new PV
You can use
#pvdisplay /dev/dsk/cxtxdx|more
it will let you know the VG group associated with this disk.
Regards
Deeos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 06:45 AM
тАО08-05-2010 06:45 AM
Re: LVM info from new PV
Thanks for all your responses.
Our servers are connected to HP XP storage and HP EVA storage with multiple paths to each LUN.
After an ioscan & insf I am using xpinfo & evainfo to determine the new & existing LUN information.
By cross referencing the XP CU:LDEVs & the EVA WWNN I am able to determine which Volume Group each device belongs to.
Thanks again
regards,
Shane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 06:45 AM
тАО08-05-2010 06:45 AM