Operating System - HP-UX
1753873 Members
7738 Online
108809 Solutions
New Discussion юеВ

Re: Add disk to new volume group and preserve structures

 
SOLVED
Go to solution
Matthew Pegge_1
Frequent Advisor

Add disk to new volume group and preserve structures

Hi,

I have used business copy to clone a disk in our EVA, and have presented this to the new host. I now need to create a "backup" volume group containing this disk, but normally when you do this you have to pvcreate the disk hence losig the data. Is there way to do this without trashing the existing data and lvm structures on the cloned disk??
6 REPLIES 6
Paul_481
Respected Contributor

Re: Add disk to new volume group and preserve structures

Hi Matthew,

It seems that vgexport/vgimport is your solution.

man vgexport/vgimport for details.

Regards,
Paul
Alex Lavrov.
Honored Contributor

Re: Add disk to new volume group and preserve structures

vgexport will simply remove the volume group from your system, I don't think it's what Matthew wants.

Do you want to backup your vg?


Alex
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Simon Hargrave
Honored Contributor
Solution

Re: Add disk to new volume group and preserve structures

You haven't provided full details so I'm going to assume the disk you have cloned is the entire volume group. You must do this a whole volume group at a time.

On the "source" server, execute: -

vgexport -m vgXX.map -p -v /dev/vgXX

-p switch is VERY important - without this your volume group will be removed on the source!

Now copy the created map file to the "backup" server. Import the volume group with: -

vgimport -m vgXX.map -v /dev/vgXX /dev/dsk/cXtXdX

Of course you'll need to create the /dev/vgXX/group first.
Lee Harris_5
Valued Contributor

Re: Add disk to new volume group and preserve structures

Hi Matt!

Don't know how to help you, but give us some points.
Alex Lavrov.
Honored Contributor

Re: Add disk to new volume group and preserve structures

If Simon Hargrave guessed right about your intentions, then I have two points:

1. Before vgimport be sure that the other host can access that disk (storage configuration)

2. Be carefull so the VG won't be writeable on two servers in the same time (!!!)

I don't give a damn for a man that can only spell a word one way. (M. Twain)
Matthew Pegge_1
Frequent Advisor

Re: Add disk to new volume group and preserve structures

Thanks for help guys!!