1753459 Members
4930 Online
108794 Solutions
New Discussion юеВ

vgimport -f

 
SOLVED
Go to solution
Steven Boyer
Advisor

vgimport -f

using HPUX 11.11 lvm with ServiceGuard can I use
vgexport -m -v /tmp/vgname.map -f /tmp/vgname.outfile /dev/vgname

then on a different node use vgimport -v -m /tmp/vgname.map -f /tmp/vgname.outfile /ev/vgname

rather than using vgexport -s -v -m and vgimport -s -v -m
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: vgimport -f

Hi Steven:

You could, with the likely assumption that you would edit your "vgname.outfile" device names to match those on the node where you do the 'vgimport'.

Why, bother, though, when the '-s' switch was designed for this kind situation?

Regards!

...JRF...
Steven Boyer
Advisor

Re: vgimport -f

-s is just taking FOREVER, we have over 48 vg, and trying to find away around it. looks like my only choice is to list each device for a vg.

thanks
Deepak Kr
Respected Contributor

Re: vgimport -f

>>can I use
vgexport -m -v /tmp/vgname.map -f /tmp/vgname.outfile /dev/vgname>>

yes, you can use it.

-f outfile Write the current set of pv_paths for the volume
group to the outfile. The outfile may then be
used as the infile for the vgimport -f option. If
used together with the -p option the volume group
is not exported but the list of pv_paths is still
written to the outfile. This may be useful to
derive a list of pv_paths for the volume group or
to use on another system which is sharing the
volume group and which has an identical
configuration.


We are also using for vgs with large disks set.
"There is always some scope for improvement"
Steven Boyer
Advisor

Re: vgimport -f

but wouldnt this cause you to import the wrong device number. you would be using the device numbers as seen by the exporting host, on the importing host the device numbers would be different?