Operating System - HP-UX
1753727 Members
4810 Online
108799 Solutions
New Discussion юеВ

vgexport with disks absent?

 
SOLVED
Go to solution
blubrick
Occasional Advisor

vgexport with disks absent?

All,

I made a blunder migrating data from one system to another. The disks are on EMC arrays connected via fibre switches, and the switches are now zoned for the new server. Only thing is, I forgot to vgexport the volume groups I had moved across.

The old system has not been booted since the arrays were removed from it. Is it possible to recover the LVM configuration from the old server without all the devices present and then import it on the new server?

Growing old is unavoidable, growing up is optional.
8 REPLIES 8
RAC_1
Honored Contributor

Re: vgexport with disks absent?

Boot into single user mode and check what disks it used. Look at files in /etc/lvmconf directory.
There is no substitute to HARDWORK
Victor Fridyev
Honored Contributor

Re: vgexport with disks absent?

Hi,

Boot into single user mode,
#>mounnt -a
#>strings /etc/lvmtab

and vgexport all uneeded volume groups

HTH
Entities are not to be multiplied beyond necessity - RTFM
blubrick
Occasional Advisor

Re: vgexport with disks absent?

OK, so I boot into single-user mode.

If I do mount -a and the devices for all VGs except the root vg are absent, do you know if vgexport on those other VGs will still work?

How about if I vgchange -a y each non-root VG?

Or do I really need to recreate the volume groups manually from the output of `strings /etc/lvmtab`?
Growing old is unavoidable, growing up is optional.
RAC_1
Honored Contributor
Solution

Re: vgexport with disks absent?

No need to activate the VGs. Just do vgexport -pvs -m /tmp/vgxx.map /dev/vgxx

Before you use vgexport command, you will have to mount /usr, OR better mount all lvols in vg00.
There is no substitute to HARDWORK
blubrick
Occasional Advisor

Re: vgexport with disks absent?

OK. This looks good.

Now I have to wait for someone half a world away to attach a console, then I can boot this puppy into single user and check it all out.

I will award proper points after I've tried the suggestions.
Growing old is unavoidable, growing up is optional.
Mridul Shrivastava
Honored Contributor

Re: vgexport with disks absent?

I feel the only way is too have output of /etc/lvmtab and recreate the vg on other server. vgexport & vgchange won't work as devices are not connected to the server so none of these commandds will work for that VG.
Time has a wonderful way of weeding out the trivial
Shahul
Esteemed Contributor

Re: vgexport with disks absent?

Hi,

I will try to do these steps.

#vgexport -s -p -m -v /dev/vgxx

Copy the map file to new system, and import there by using vgimport command.

Best of luck
Shahul
blubrick
Occasional Advisor

Re: vgexport with disks absent?

vgexport/vgimport was the correct solution, but I needed to change physical volume names to match the new hardware paths.
Growing old is unavoidable, growing up is optional.