1753767 Members
5862 Online
108799 Solutions
New Discussion юеВ

vgimport -m filename

 
blacof
Occasional Advisor

vgimport -m filename

Can folks here tell me as to what is the
format of the file that is to be used for
importing a diskgroup with the -m option .

Im getting this error when I run vgimport

vgimport -m /tmp/mapRtRYWR -f /tmp/pathEMbuhC /dev/changehv

Physical volume "/dev/dsk/c5t0d6" has an unsupported LV
M disk layout.
20 REPLIES 20
Pete Randall
Outstanding Contributor

Re: vgimport -m filename

I don't know that the format is readily available. The map file is supposed to be produced by the vgexport command. Did you do something else to it?


Pete

Pete
Turgay Cavdar
Honored Contributor

Re: vgimport -m filename

Can you give more information? Your LVM version? OS version?

Are you trying to import LVM2.0/2.1 VG to hp-ux 11.23/earlier 11.31?
Pramod M
Regular Advisor

Re: vgimport -m filename




Export the Volume Group /dev/vg01 into mapfile vg01.mapfile:
#vgexport -m vg01.mapfile /dev/vg01


Import the Volume Group /dev/vg01 from mapfile vg01.mapfile:
#vgimport -m vg01.mapfile /dev/vg01

Check in /etc/lvmconf/ for the mapfile if you not exported.
James R. Ferguson
Acclaimed Contributor

Re: vgimport -m filename

Hi:

The mapfile (designated with the '-m' argument) is simply a list of the logical volumes and their minor numbers. It will look like:

1 lvolX
2 lvolY
...

The '-f infile' points to a file of physical paths for the volume group. Make sure only one path per line occurs.

All this said, you haven't specified the *volume group* name. You should have something like:

# vgimport -m /tmp/mapRtRYWR /dev/vg01 -f /tmp/pathEMbuhC

...where '/dev/vg01' may be what you meant for '/dev/changehv'.

Regards!

...JRF...
blacof
Occasional Advisor

Re: vgimport -m filename

Im using a 2.1 VG. Does the command line order matter I have specified /dev/changehv as the name of my vg.
Turgay Cavdar
Honored Contributor

Re: vgimport -m filename

LVM 2.1 is supported with release September 2008 of hp-ux 11iv3. You cannot import v2.1 VGs before September 2008 release of 11.31.
James R. Ferguson
Acclaimed Contributor

Re: vgimport -m filename

Hi (again):

> Im using a 2.1 VG. Does the command line order matter I have specified /dev/changehv as the name of my vg.

No, your command was correct and I was wrong. The manpages do show:

# vgimport [-m mapfile] [-p] [-v] [-f infile] vg_name

I think turgay may be correct. What's your operating system (OS) release and from where (what OS) does the physical disk come?

Regards!

...JRF...
blacof
Occasional Advisor

Re: vgimport -m filename

Im using Sep 09 . Does the hvname and vg name have to be the same while importing as it was when it was exported ?
Pete Randall
Outstanding Contributor

Re: vgimport -m filename

No, the names may be different, but you have to create the group file:

mkdir /dev/vgNN
mknod /dev/vgNN/group c64 0xNN0000

then vgimport.


Pete

Pete