1826975 Members
3163 Online
109705 Solutions
New Discussion

Data replication and LVM

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

Data replication and LVM

Guys,

I never got a chance to have a look how hpux would react when I have a bcv'ed or flashed copy of disks available on the same node. i.e.

I have nodeA which has vg01 on disk1,disk2 which got copied track-by-track (EMC or ESS at hardware level) to disk3,disk4. If i need to import disk3 and disk4's VG on the same node, What do I have to do.

Here in aix hv a command which would change the pvid's and i can import a new VG out of this . But curious to know how it is done in hpux. Read some where about changing the VG id , but can someone please explain how detail please.

Regds,

Kaps
Nothing is impossible
2 REPLIES 2
Rajeev  Shukla
Honored Contributor
Solution

Re: Data replication and LVM

First change the VGID of both the disks (because disk3 and disk4 are on the same node they will have same VGID as disk1 and disk2)and then create a new volume group and import the disks in that volume group. Have a look at the man pages of vgchgid

vgchgid /dev/rdsk/ /dev/rdsk/
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000
vgimport -v /dev/vg02 /dev/dsk/ /dev/dks/
vgchange -a y /dev/vg02

Cheers
Rajeev

Re: Data replication and LVM

Hello Kapil,
This can be achieved by "timefinder software from EMC" which will do what you are trying to do. Or if you have veritas volume manager you can easily rebuild the diskgroup and all your data is back. Normally BCV copies are meant for doing off host back up that is you take a bcv split then import the dicks on the other host and do the backup.

http://www.emc.com/products/software/timefinder.jsp
Sundar