Operating System - HP-UX
1836674 Members
3712 Online
110108 Solutions
New Discussion

How to do LVM cross site mirroring.

 
marvik
Regular Advisor

How to do LVM cross site mirroring.

Dear All,
I have to increase a mirrored FS which has got SAN disks allocated

/dev/vgsan02/lvol1 28745728 17561076 10485958 63% /oracle/archivelog_EUP02FMS

Disk Allocated::
/dev/dsk/c30t8d0 ( 20GB)
/dev/dsk/c28t8d0 ( 20GB)

Objective::
Increase the FS by 20GB and ensure that mirroring happens across these 2 disks.Volume group already has other disks with some free PE's in each but I dont want to use them.Only these two new disks.
I have attached the lvdisplay output for info

Pls let know how to ??
Many Thanks for your advices

Rgds
Marvik

5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: How to do LVM cross site mirroring.

To extend the LV you should do:

(Extend to 48 GB)
# lvextend -L 49152 /dev/vgsan02/lvol1 /dev/dsk/c28t8d0 /dev/dsk/c30t8d0

Now do an fsadm (assuming you have online JFS)
# fsadm -b 49152m /oracle/archivelog_EUP02FMS

You can then do an lvdisplay on the LV to make sure everything is correct.
Pete Randall
Outstanding Contributor

Re: How to do LVM cross site mirroring.

I would suggest reviewing the man pages. Here's an excerpt from the examples section:

Mirror a logical volume onto a particular physical volume.

lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t3d0

- and -

Mirror a logical volume onto a particular physical volume.

lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t3d0


Pete

Pete
DCE
Honored Contributor

Re: How to do LVM cross site mirroring.



Mavik

you tell the lvextend command to place the lvol extension on specific disk(s) by using the disk addresses /dev/dsk/c30t8d0 and /dev/dsk/c28t8d0 as the last parameters of the lvextend command

man lvextend

marvik
Regular Advisor

Re: How to do LVM cross site mirroring.

Thanks Patrick,

But How can i extend it to 48GB.I can get max 20GB(in mirrorred) hence I asked for 40GB from SAN team.But if I do lvextend -L that will only add space for mirroring I have to do lvextend -m 1 .Pls advice

# lvextend -L 49152 /dev/vgsan02/lvol1 /dev/dsk/c28t8d0 /dev/dsk/c30t8d0


Sundar_7
Honored Contributor

Re: How to do LVM cross site mirroring.

Marvik,

You have only 20 GB. How are you expecting to mirror a 48 GB LV ?

The LV is currently mirrored to which PV?

Can you post the lvdisplay -v /dev/vgsan02/lvol1 output ? (ofcourse, you dont need to post the complete output, just the top 50 lines will do :-)

Sundar.
Learn What to do ,How to do and more importantly When to do ?