- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport to vPar from VM guest
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
11-18-2009 08:18 PM
11-18-2009 08:18 PM
vgimport to vPar from VM guest
I was trying to recreate a VG from a HP-UX VM Guest to vPar. But, when I tried to do vgimport @ vPar, it shows the following error.
root@hrv87:(lvmconf)> vgimport -s -v -m /etc/lvmconf/vgsap3.map /dev/vgsap3
Beginning the import process on Volume Group "/dev/vgsap3".
Couldn't access the list of physical volumes for volume group "/dev/vgsap3".
Can we recreate VG from VM Guest to vPar? I mean, by doing vgexport at VM Guest and vgimport at vPar ?
I have recreated the VGs from vPar to vPar or other physical servers. Never encountered a problem like this.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 08:31 PM
11-18-2009 08:31 PM
Re: vgimport to vPar from VM guest
May I understand the requirement?
I am not able to understand the logic!!!
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 09:00 PM
11-18-2009 09:00 PM
Re: vgimport to vPar from VM guest
We have created a VG in VMguest. But later stage, application team requested this need to be moved to another machine, which is a vPar. Since the size of VG and LV and other details are not changing, except the disks, thought to use vgexport on VM guest and vgimport on vPar.
While doing vgimport, as you can see, we received the errors.
Hope you could now understand.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 09:13 PM
11-18-2009 09:13 PM
Re: vgimport to vPar from VM guest
===> I hope you have mapped the Disks belongs to the VG directly from HPVM host to guest. ( not LVs/or files).
If you map like this also the disk device which detects in VM Guests will have different hardware path.
Thats why it is giving error.
Are you assigning the same LUN to the new server ? or moving the same disks from VM host to the new server ?
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 09:38 PM
11-18-2009 09:38 PM
Re: vgimport to vPar from VM guest
You are correct. we have have mapped the Disks belongs to the VG directly from HPVM host to guest. ( not LVs/or files).
After done the vgexport, removed these maps and removed the LUNs from VM host and assigned to vPar.
I guess, the point you have highlighted is correct. Since, the hardware path / driver of the disks in VM guests and vPar are different.
Is that the reason?
Btw, I had to create the VG manually on the vPar, due to the urgency.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 09:45 PM
11-18-2009 09:45 PM
Re: vgimport to vPar from VM guest
1) get map file
2) export and remove PVs from VM.
3) move PVs to vpar.
4) create directories and make sure those disks are accessible to vPar.(this is imp)
5) vgimport
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 09:53 PM
11-18-2009 09:53 PM
Re: vgimport to vPar from VM guest
>>> Couldn't access the list of physical volumes for volume group "/dev/vgsap3"
vgimport with "-s" is not depened on the disk hardware path ,it will scan the disks with vgid ,and imports the disks they are matching.
The problem could be all disks which were in the volume group might not be presented/detected in the vpar machine (where you are doing vgimport)
if you are sure all the disks are available in the vpar,then please confirm the vgid`s of the disks using
# echo 0x2010?2D | adb /dev/dsk/c2t0d0
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 10:07 PM
11-18-2009 10:07 PM
Re: vgimport to vPar from VM guest
The same way what you were telling, was followed.
Aneesh,
I agreed, the -s need to use, only when you are sharing the disks in the scenario like cluster environment.
A doubt come on this. I guess, when we moved, we have done the pvcreate on these disks. Could that be the issue?
Also, what I can understand, if the disks moving from VM hosts to vPar, and to import the VG, need to use the following way:
vgimport -vm
Is this the correct way we need to use? Anyway, I can't try it out now. But we can discuss on it.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 10:17 PM
11-18-2009 10:17 PM
Re: vgimport to vPar from VM guest
If you did pvcreate with force option "-f" to the pv`s, then the lvm layout of the pv got wipped,offcourse vgimport will throw error.
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 10:21 PM
11-18-2009 10:21 PM
Re: vgimport to vPar from VM guest
a) vgimport -vm
b) vgimport -v -s m
See the difference of the above commands, in (b) you don`t need to specify disks explicitly .For doing this you may need to export vg with "-s" option.
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 10:23 PM
11-18-2009 10:23 PM
Re: vgimport to vPar from VM guest
The pvcreate kills your data and delete the old VG configuration. They are just new and blank disks now.
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
11-18-2009 10:26 PM
11-18-2009 10:26 PM
Re: vgimport to vPar from VM guest
Option a) (without -s ), I mentioned, can be used if I do pvcreate on these disks?
What if option b) if I exported with -s and didn't do pvcreate ?
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 10:33 PM
11-18-2009 10:33 PM
Re: vgimport to vPar from VM guest
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
11-18-2009 10:48 PM
11-18-2009 10:48 PM
Re: vgimport to vPar from VM guest
Option a) (without -s ), I mentioned, can be used if I do pvcreate on these disks?
No.If you did pvcreate on the disks , then old vg configuration has wipped ,you cannot import it.
What if option b) if I exported with -s and didn't do pvcreate ?
Simple,you should not do pvcreate while vgexport/vgimport operations.
Using vgexport/vgimport operation ,you are using lvm information from the disks to remap ,if you do pvcreate in between then the lvm information from the disk is lost.
Please see more information about vgexport/vgimport links below.
Incorrect use of vgexport/vgimport.
----------------------------------
http://www13.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00929337-3
Prepare LVM for hardware / disk / lun changes
--------------------------------------------
http://www13.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00931856-5
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 11:50 PM
11-18-2009 11:50 PM
Re: vgimport to vPar from VM guest
So recreate VG/LVs and restore data.
I have one question to Gurus!!
[you can hit me is its irrelevent].
In this case if we have done pvcreate and we have a full dd of initial blocks.
Can we get LVM configuration back.
Never got chance to try it, but as per me it should work.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2009 11:51 PM
11-18-2009 11:51 PM
Re: vgimport to vPar from VM guest
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
11-19-2009 12:00 AM
11-19-2009 12:00 AM
Re: vgimport to vPar from VM guest
you can try vgcfgrestore if you have time.
vgcfgrestore -f /tmp/vg00.backup /dev/rdsk/c0t4d0
man vgcfgrestore
and let us know if that worked, m not sure if you have backup of LVM config.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2009 12:23 AM
11-19-2009 12:23 AM
Re: vgimport to vPar from VM guest
yes and no
Yes:-
If you are doing pvcreate -f ..then after vgcfgrestore to a disk ,you can get back the structure and data .
No:--
If you are doing pvcreate -fB to a disk that wasn`t previously bootable then you may not able to get it back as previous.
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2009 01:33 AM
11-19-2009 01:33 AM
Re: vgimport to vPar from VM guest
I do remember long back once I did dd first 1 MB and used vgcfgrestore, it was working fine..
* Never play with customers data disk :P
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2009 04:56 PM
11-20-2009 04:56 PM
Re: vgimport to vPar from VM guest
Shibin