Operating System - HP-UX
1833757 Members
2986 Online
110063 Solutions
New Discussion

Re: How to make a mirror on an existing volume group..

 
M Dijsselbloem
Occasional Contributor

How to make a mirror on an existing volume group..

Hi,

Currently I have a volume group on one machine, but I want to make a mirror on an other machine for it.

On machine A I???ve made a volume group calles /vgtest which is made over 2 luns.
Vgdisplay ???v /dev/vgtest shows te following:

/dev/dsk/c43t2d1
/dev/dsk/c33t2d1 Alternate Link

/dev/dsk/c33t2d2
/dev/dsk/c43t2d2 Alternate Link

On machine B I???ve made 1 lun with the following device files:
/dev/rdsk/c59t4d1
/dev/rdsk/c60t4d1 Alternate Link

I???ve added the following lines in the /etc/lvmpvg file:
VG /dev/vgtest
PVG room1
/dev/dsk/c43t2d1
/dev/dsk/ c33t2d2
PVG room2
/dev/dsk/ c59t4d1

vgextend ???g room1 /dev/vgtest /dev/dsk/c59t4d1

lvchange ???s g /dev/vgtest/lvol1

lvextend ???m 1 /dev/vgtest/lvol1 /dev/dsk/ c59t4d1

Is this te right way to do this?? This is quite new for me.

Thanx in advance,

Mark
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: How to make a mirror on an existing volume group..

Hi Mark:

If my "machine" you mean two physically distinct servers, then you cannot do this. MirrorDisk/UX mirrors logical volumes of a volume group within a server.

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: How to make a mirror on an existing volume group..

Martin Johnson
Honored Contributor

Re: How to make a mirror on an existing volume group..

What you are looking for is Remote Mirroring. Veritas offers products that do Remote Mirroring and other High Availability options:

http://veritas.com/products/category/ProductCategory.jhtml?categoryId=2018&baseId=2016

HTH
Marty
Ian Dennison_1
Honored Contributor

Re: How to make a mirror on an existing volume group..

Another possibility to achieve what you want (remote copy of data on another machine) is to use the extended features of the Application that this data belongs to.

Is it a database? Many databases have replication functionality, oracles is especially good.

Is the data dynamic enough to justify the expense and admin overhead in duplicating it? If it is read only, or is only required to be within 1 day of current data, you can schedule a nightly backup and restore.

Hope this helps, share and enjoy! Ian
Building a dumber user
Kevin Wright
Honored Contributor

Re: How to make a mirror on an existing volume group..

You can't mirror a VG to a disk that the system isn't connected to.

dev/dsk/c59t4d1 needs to be a device file known to machine A.
twang
Honored Contributor

Re: How to make a mirror on an existing volume group..

I think you cannot directly mirror a disk to another machine using MirrorDisk/UX.
If the machine A and B are using disk space from a "concentrated disks", such as SAN, then you may think about mirroring on SAN side.