1832831 Members
3171 Online
110047 Solutions
New Discussion

Re: Splitting LV Mirrors

 
Bryan V Hardwick_1
Occasional Contributor

Splitting LV Mirrors

I am using lvsplit as a backup facility, I split off the mirror and allow the main LV to have the End-of-Day batch run. Then lvmerge the split mirror back into the main LV.

My problem is the 2 mirrors are on different LUNs (one RAID5 and one RAID1/0) and I want to define which of the LUNs contains the split mirror. Currently the wrong contains the mirror that splits off?

Hope this makes sense.

Cheers,
Bryan Hardwick
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: Splitting LV Mirrors

Hi Bryan,

Yep. Define the LUNs that you want the split mirrors on in a seperate PVG and use it in the command line argument with your lvsplit.

For ex.,

lvsplit -g splitgrp /dev/vg01/lvol1

Look at the man page of 'lvmpvg', 'vgextend' and 'lvsplit' for more information.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bryan V Hardwick_1
Occasional Contributor

Re: Splitting LV Mirrors

Sri

I may have omitted to say, this is an HP-UX 10.20 system. I looked for the -g option and it doesn't seem to exist in the man page. Is it a un-documented feature or only available in 11 or above?

Cheers,
Bryan.
Sridhar Bhaskarla
Honored Contributor

Re: Splitting LV Mirrors

Hi Bryan,

It's quite sometime back I worked on 10.20. You might already know that 10.20 is obsoleted.

I am not sure if this is a man page issue. I don't have a 10.20 to verify it. However, 10.20 did have PVGs as the LVM Patch PHCO_23437 does talk about it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: Splitting LV Mirrors

Hi Bryan,

Check the lvplit 10.2 man page on docs.hp.com - here:

http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90129/B2355-90129_top.html&con=/hpux/onlinedocs/B2355-90129/00/01/176-con.html&toc=/hpux/onlinedocs/B2355-90129/00/01/176-toc.html&searchterms=lvsplit&queryid=20040618-083654

It shows -g in it.
I always check that site because you can see all man pages back to 10.2 Then you can compare to see when a parm or feature appeared.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Bryan V Hardwick_1
Occasional Contributor

Re: Splitting LV Mirrors

Jeff/Sri

Yes I know, our client has been "cap in hand" to HP to have extended support for the second year now!

I cannot have the last release of 10.20, here is the error message from lvsplit if I try the "-g" option: -

Usage: lvsplit
. [-A Autobackup]
. [-s suffix]
. SourceLogicalVolumePath...
"g": Illegal option.

Thanks for the help. Any other ideas out there? I guess there could be a patch/upgrade to LVM.

Cheers,
Bryan.
Sridhar Bhaskarla
Honored Contributor

Re: Splitting LV Mirrors

Bryan,

I wonder the patch levels of your 10.20 systems.

Try installing LVM patch that I indicated above.

Make sure you have a make_tape_recovery tape.

This is a commands patch only. So, it won't require a reboot.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try