Operating System - HP-UX
1754021 Members
7919 Online
108811 Solutions
New Discussion юеВ

Re: lvol mirroring in HP 11iV3

 
vjta
Regular Advisor

lvol mirroring in HP 11iV3

Dear All,
pls suggest ,as i m new on this platform,
I have created 1 pv & 1 vg, in this VG ,i created 2 LVs now pls tell me can i mirrored these 2 LVs with each other or i have to mirror each across other PV.

Thanks in Advance.

regards
vjta

Vijeta Bhedi
5 REPLIES 5
Shrikant Lavhate
Esteemed Contributor

Re: lvol mirroring in HP 11iV3

Hi,

Mirroring is done to save data from disk disasters. So logically you have to mirror lvols on other physical disk. That means you need to have one more PV in this case.

For mirroring LV to other specific PV you can use lvextend command:
#lvextend -m 1 /dev/vg00/lvolX /dev/dsk/cXtYdZ

Where, -m denotes number of mirror copies

-=ShRi=-
Will it remain a personal, if I broadcast it here!
James R. Ferguson
Acclaimed Contributor

Re: lvol mirroring in HP 11iV3

Hi:

Mirroring is used for high-availablity. Hence you never would want to mirror a logical volume that resides one physical volume to the somewhere else on the same physical volume! This defeats the whole intent.

LVM enforces this with the 'strict' property. You establsh this (by default) when you create a logical volume. See the manpages for 'lvcreate' and for 'lvextend'.

Regards!

...JRF...
Sajjad Sahir
Honored Contributor

Re: lvol mirroring in HP 11iV3

Dear Vijeta

for mirroring u need more than one physical volume(1 pv + 1 pv)

then u can use lvextend -m command for doing it


ok
thanks

sajjad
Ramesh S
Esteemed Contributor

Re: lvol mirroring in HP 11iV3

Hi

As all mentioned, mirroring is for redundancy. So, there is n meaning to mirror a lvol onto a same disk.

Still, you can mirror a lvol within a PV by making lvol as Non-Strict policy

#lvcreate / lvchange -s n

Best Regards,
Ramesh
vjta
Regular Advisor

Re: lvol mirroring in HP 11iV3

Dear All,
Thanks for ur valuable reply.now my doubt is cleared.

regards
Vjta
Vijeta Bhedi