- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Importing volume from one host to another
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-07-2006 04:06 AM
04-07-2006 04:06 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 04:14 AM
04-07-2006 04:14 AM
Re: Importing volume from one host to another
First, on your other server run the mknod comamnd for configuring the disks.
Then run pvcreate command
Then you can import the volume group contents using the vgimport command (FROM man on vgimport) -
Import the volume group /dev/vg01 that is located in the map file
vgimport -v -m /tmp/vgsap01.map /dev/vgsap01 /dev/dsk/c0t5d0 /dev/dsk/c0t7d0
Activate the volume group following a successful import:
vgchange -a y vgsap01
Hope this helps. Post the errors if you still get any.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 04:16 AM
04-07-2006 04:16 AM
Re: Importing volume from one host to another
Yes, you do need to pvcreate a disk to place it under LVM control.
You have created the /dev/vg, mknod the group file in the directory. Do a vgcreate to actually create the VG. After that you can add logical volumes.
At this point you should have no trouble doing the vgexport command you have specified above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 04:24 AM
04-07-2006 04:24 AM
Re: Importing volume from one host to another
/dev/dsk/c9t0d0 /dev/dsk/c9t0d1 etc....
I received the following error:
The physical device /dev/dsk/c9t0d0 is not part of a volume group
for all 16 devices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 04:30 AM
04-07-2006 04:30 AM
Re: Importing volume from one host to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 04:30 AM
04-07-2006 04:30 AM
Re: Importing volume from one host to another
I'm assuming this is an *existing* VG on host1 that you want visible on host2. If this is the case then you should use the -s parm of vgexport/vgimport - as follows:
vgexport -m /tmp/vgsap01.smap -s -p -v /dev/vgsap01
Then ftp the map file over to host2 & run
vgimport -m /tmp/vgsap01.smap -s -v /dev/vgsap01
The -s causes LVM so search for the unique VGID on the disks so you don't have to specify the devices.
And NO - if the VG is in use already on host1 then running pvcreate on either host1 or host2 will destroy the data.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 04:35 AM
04-07-2006 04:35 AM
Re: Importing volume from one host to another
vgcreate /dev/vgsap01 /dev/dsk/c9t0d0 /dev/dsk/c9t0d1 and so on
then run the vgchange -a y /dev/vgsap01
Then run vgimport.. hopefully it should work this time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 05:00 AM
04-07-2006 05:00 AM
Re: Importing volume from one host to another
volume group "/dev/vgsap01" already exists in the "/etc/lvmtab" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 05:15 AM
04-07-2006 05:15 AM
Re: Importing volume from one host to another
Don't run vgcreate ahead of the vgimport.
Just create the /dev/vg_name dir & group file.
The vgimport command will add it to the lvmtab.
You'll have to vgexport the VG on host2 & then recreate the dir & group file.
THEN run the vgimport.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 10:19 PM
04-07-2006 10:19 PM
Re: Importing volume from one host to another
I understand the Vg u r talking abt is on the shared storage so both host will have different device file names for the same disk. while exporting the vg from host1 u have to use the following command:
# vgexport -v -s -m /tmp/vgsap.map /dev/vgname
this will create the map file and also the VGID for this vg.
>>copy this map file to host2 in /tmp
On host2 u have to create only group file and directory for the vg then execute the following command:
#vgimport -v -s -m /tmp/vgsap.map
this will update the lvmtab, this command will scan all the disks on the storage for the VGID and will update the lvmtab file accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 10:32 AM
04-09-2006 10:32 AM
Re: Importing volume from one host to another
1. vgexport -p -v -s -m /tmp/vgsap01.map vgsap01
2. ftp the map file to the second node.
On the host where u need to import:
1. mkdir /dev/vgsap01
2. mknod /dev/vgsap01/group c 64
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 05:26 AM
04-10-2006 05:26 AM
Re: Importing volume from one host to another
Hope this clears things up a bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 03:28 AM
04-12-2006 03:28 AM
Re: Importing volume from one host to another
I ran vgexport -p -v -s -m /tmp/vgsap01.map vgsap01 on the host where the VG is activated. I then ftp'd the mape file to the second node. One the second node I did mkdir /dev/vgsap01 and mknod /dev/vgsap01/group c 64
Couldn't access the list of physical volumes for volume group "/dev/vgsap01".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 03:37 AM
04-12-2006 03:37 AM
Re: Importing volume from one host to another
on hostb do a vgimport naming the disk that you want to belong to the volume group
ex: vgimport -v /dev/vgsap01 /dev/dsk/c1t2d0 dev/dsk/c1t2d1 and so on
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 03:38 AM
04-12-2006 03:38 AM
Re: Importing volume from one host to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 03:44 AM
04-12-2006 03:44 AM
Re: Importing volume from one host to another
vgimport -v -m /etc/lvmconf/vgsap01.map /dev/vgsap01 /dev/dsk/c1t2d0 /dev/dsk/c1t2d1
if i correct all you are looking for is the lvol structure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 03:57 AM
04-12-2006 03:57 AM
Re: Importing volume from one host to another
Have you verified this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 04:00 AM
04-12-2006 04:00 AM
Re: Importing volume from one host to another
I ran vgimport -v -m /tmp/vgsap01.map /dev/vgsap01
- and received the following error:
The physical volumes specified on the command line do not belong to the sam volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 04:03 AM
04-12-2006 04:03 AM
Re: Importing volume from one host to another
The hosts are connected to an entirely different set of disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 04:18 AM
04-12-2006 04:18 AM
Re: Importing volume from one host to another
do a pvcreate on the disk and then run the vgimport command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 04:19 AM
04-12-2006 04:19 AM
Re: Importing volume from one host to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 04:23 AM
04-12-2006 04:23 AM
Re: Importing volume from one host to another
I just did that then ran the vgimport command again naming all the physical volumes and received the following error:
Volume group "/dev/vgsap01" already exists in the "/etc/lvmtab" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 05:58 AM
04-12-2006 05:58 AM
Solution"What I'm trying to do is to restore hosta's configuration onto hostb. I start with an ignite tape created with the entire vg00 volume group and ignite hostb. I then want to configure disks attached to hostb with the volume group config for the disks attached to hosta using vgimport. NOTE: The disks on hosta and hostb are completely different not the same with different device id on each server.
Hope this clears things up a bit."
Yes, this clears things up.
2 options:
1) Do a make_tape_recovery with -x inc_entire=vgsap01 and restore choosing advance options, in this way you can define your new vgsap01 on these new disks.
2) Manually create vgsap01 and its lvols and do a restore from tape (or remote copy or whatever).
vgimport / vgexport are supposed to work on the SAME disks. They work with vgid written on disk.
From man:
"vgimport assumes that the volume group information has already been created on the physical volumes"
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2006 01:09 AM
04-13-2006 01:09 AM