- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM questions
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
10-06-2008 12:43 PM
10-06-2008 12:43 PM
LVM questions
Let say production host have 2 VG - vga , vgb
Each VG have 2 PV's . How will i know sitting on host B(backup host which uses snap) that this which PV belongs to which VG .
I want to script this so i don't know to hard code the VG/PV in some config file.
Did i confused yoou .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 12:53 PM
10-06-2008 12:53 PM
Re: LVM questions
Typically the LUN number assignment of the snap to serverB is the clue. You will also need the map file from the vgexport -p on the first server and mountpoints unless you do not care about this stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 01:00 PM
10-06-2008 01:00 PM
Re: LVM questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 01:09 PM
10-06-2008 01:09 PM
Re: LVM questions
While I was doing this on EMC systems with BCVs I used the symbcv command to ID the SYMID and relate it to a /dev/dsk/cxtxdx.
I do not currently use EVA snaps so I do not know the answer hopefully someone else will chime in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 09:43 PM
10-06-2008 09:43 PM
Re: LVM questions
But you can also calculate the LUN# from hardware path, see for example
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=985836
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
10-06-2008 10:09 PM
10-06-2008 10:09 PM
Re: LVM questions
To get LUN info u can use "xpinfo -i" command
to create pair "paircreate"
to sync pair "pairsync"
split pair "pairsplit"
please download detailed document.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 10:44 PM
10-06-2008 10:44 PM
Re: LVM questions
Whats the status now?? Is the snapshot volume mounted in the production box?
Which storage array you are using?
Snapshot volume needs to be mounted just like any other LV. Create the map file (vgexport -p -v -s -m) then import the same in the other server. (vgimport). If you have a map file created with -p -s option, then no need to worry about the PV name. System will do a search in the storage pool using the VGID and include all the PV with the same VGID while importing the VG. Don't forget to run vgchgid Before activating the new(imported) VG.
Rgds
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 11:46 PM
10-06-2008 11:46 PM
Re: LVM questions
Although you only need to run vgchgid if attempting to mount on the same host as the original, or if the original copy was a cluster VG.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 07:36 AM
10-07-2008 07:36 AM
Re: LVM questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:05 AM
10-07-2008 08:05 AM
Re: LVM questions
Host B - other Server .
copy the map file i created to Host B
=--------
(herhxp03 root):/tmp> more vgrd5.map
VGID 07b7c78e4880cacd
1 lvol1
-----
No PV specified - just used the map file which has the VGID
---------
(herhxp03 root):/tmp> vgimport -p -s -v -m vgrd5.map /dev/vgrd5-bvdb1
Beginning the import process on Volume Group "/dev/vgrd5-bvdb1".
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c18t0d3".
Assuming a default value of 1024 bytes. Continuing.
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c18t0d4".
Assuming a default value of 1024 bytes. Continuing.
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c20t0d3".
Assuming a default value of 1024 bytes. Continuing.
Warning: Cannot determine block size of Physical Volume "/dev/rdsk/c20t0d4".
Assuming a default value of 1024 bytes. Continuing.
Couldn't access the list of physical volumes for volume group "/dev/vgrd5-bvdb1".
------
Used the map file and specified the PV
----
(herhxp03 root):/tmp> vgimport -p -v -m vgrd5.map /dev/vgrd5-bvdb1 /dev/dsk/c18t0d1
Beginning the import process on Volume Group "/dev/vgrd5-bvdb1".
vgimport: Physical Volume "/dev/dsk/c18t0d1" contains no LVM information
Verification of unique LVM disk id on each disk in the volume group
/dev/vgrd5-bvdb1 failed.
Both failed . I really like to see the first one successful as this will help me making a shell script without worrying about the PV's .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:09 AM
10-07-2008 08:09 AM
Re: LVM questions
vgimport command scan presented to the server LUNs for given VGID and add it to the group.
Check for CU:LDEV (or WWNID)settings of luns to find the correct ones.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:25 AM
10-07-2008 08:25 AM
Re: LVM questions
inq output
------
/dev/rdsk/c2t8d0s3 :HP 146 G:ST3146855LC :HPC8 :3LN4HKD7 : 409600
/dev/rdsk/c18t0d0 :DGC :CX3-80WDR10 :HP03 :Ch2 CONT :209715200
/dev/rdsk/c18t0d1 :DGC :CX3-80WDR5 :HP03 :Ch2 CONT :31457280
/dev/rdsk/c18t0d2 :DGC :CX3-80WDR5 :HP03 :Ch2 CONT :10485760
80WDR10 :HP03 :Ch2 CONT :209715200
/dev/rdsk/c20t0d1 :DGC :CX3-80WDR5 :HP03 :Ch2 CONT :31457280
/dev/rdsk/c20t0d2 :DGC :CX3-80WDR5 :HP03 :Ch2 CONT :10485760
/dev/rdsk/c20t0d5 :DGC :CX3-
LUN with 314... and 104.. are the snap LUNS on host B.
Something is going on ...
did few more things . but still no luck .
powermt check
Warning: CLARiiON device path c18t0d3 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: CLARiiON device path c18t0d4 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: CLARiiON device path c20t0d3 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: CLARiiON device path c20t0d4 is currently dead.
Do you want to remove it (y/n/a/q)? y
(herhxp03 root):/tmp> vgimport -p -s -v -m vgrd5.map /dev/vgrd5-bvdb1
Beginning the import process on Volume Group "/dev/vgrd5-bvdb1".
Couldn't access the list of physical volumes for volume group "/dev/vgrd5-bvdb1".
(herhxp03 root):/tmp> vgimport -p -v -m vgrd5.map /dev/vgrd5-bvdb1 /dev/dsk/c18t0d1
Beginning the import process on Volume Group "/dev/vgrd5-bvdb1".
vgimport: Physical Volume "/dev/dsk/c18t0d1" contains no LVM information
Verification of unique LVM disk id on each disk in the volume group
/dev/vgrd5-bvdb1 failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:29 AM
10-07-2008 08:29 AM
Re: LVM questions
vgimport -p -s -v -m vgrd5.map /dev/vgrd5-bvdb1
Beginning the import process on Volume Group "/dev/vgrd5-bvdb1".
Logical volume "/dev/vgrd5-bvdb1/lvol1" has been successfully created
with lv number 1.
Volume group "/dev/vgrd5-bvdb1" has been successfully created.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:49 AM
10-07-2008 08:49 AM
Re: LVM questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 05:08 AM
10-08-2008 05:08 AM
Re: LVM questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 10:20 AM
10-08-2008 10:20 AM