Operating System - HP-UX
1752815 Members
5867 Online
108789 Solutions
New Discussion юеВ

Re: Can I split a mirrored LV and then import the split LV on another server?

 
marvik
Regular Advisor

Re: Can I split a mirrored LV and then import the split LV on another server?

Hi Tim,

Can u pls update if you are able to get this task done and how u did that?I think Rita's idea was good ,You faced any issues with that

Cheers!
Marvik
Timothy Czarnik
Esteemed Contributor

Re: Can I split a mirrored LV and then import the split LV on another server?

Hey all,

I've had no luck with this unfortunately. This is the message that I am getting:

/root # vgimport -v -m /root/mapfile -f /root/vgdisk /dev/vg02

Beginning the import process on Volume Group "/dev/vg02".

vgimport: Warning: Volume Group belongs to different CPU ID.

Can not determine if Volume Group is in use on another system. Continuing.

Logical Volume is not defined on any physical volume.

"/dev/vg02/lvol1_copy" is missing Physical Volumes.

Volume group "/dev/vg02" has been successfully created.

Warning: A backup of this volume group may not exist on this machine.

Please remember to take a backup using the vgcfgbackup command after activating the volume group.


It says the vg is created but it's not.

Any ideas?

Tim

Hey! Who turned out the lights!
Timothy Czarnik
Esteemed Contributor

Re: Can I split a mirrored LV and then import the split LV on another server?

I believe I need to do a combination of Rita's and Sandman's responses. It looks like the vgchgid is the command I'll need to get around the "Volume Group belongs to different CPU ID" message. Heading back to play around a bit...

Tim
Hey! Who turned out the lights!
Sandman!
Honored Contributor

Re: Can I split a mirrored LV and then import the split LV on another server?

Timothy Czarnik
Esteemed Contributor

Re: Can I split a mirrored LV and then import the split LV on another server?

Well I was able to do this, however the imported volume group still created the old logical volumes even though I didn't import their disks in the disk file or include them in the mapfile.

Bottom line is I believe this can be done but probably shouldn't be done with disks that contain data of any importance. It is extremely easy to get your LVM out of whack.

In the end, I will still mirror the data that needs to move onto disks at the remote location and on the day of the move I'll remove the mirror copy from the local disks so the data remains on the disks at the remote location.

Thanks for the help everyone!

Tim
Hey! Who turned out the lights!