Operating System - HP-UX
1837180 Members
2624 Online
110113 Solutions
New Discussion

Re: Mirroring on not equal in size PVs

 
SOLVED
Go to solution
Jonathan Caplette_1
Super Advisor

Mirroring on not equal in size PVs

Hi guys...

I've got a VG with 2 disks of 100 GB each... I need to migrate the data on the 2 PVs of 100GB to 8 PVs of 25GB each..

Can I use mirror copy to do that... This need to be transparent to the online content?? Is this can be done with a lvextend -m ???

Regards
Jonathan
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: Mirroring on not equal in size PVs

Hi Jonathan:

Mirroring in HP-UX LVM is done at the logical volume level.

You can move physical extents from one physical volume to another within a volume group with 'pvmove'. You could also 'lvreduce' a mirror on one target physical path and 'lvextend' the mirror onto a new physical path if you choose.

Remember that you can have up to two mirror copies or three copies of a logical volume extent at a time.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Mirroring on not equal in size PVs

Shalom,

Yes you can use mirroring to do that, while the users are using it.

Will it be transparent. sort of.

While mirror/ux is making mirror copies i/o use will be high.

You should have a written plan so you don't make any mistakes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jonathan Caplette_1
Super Advisor

Re: Mirroring on not equal in size PVs

OK and on the command line will I do this like that:

lvextend -m 1 /dev/vgXX/lvolX /dev/dsk/cXtXdX /dev/dsk/cXtXdX ...

?
Torsten.
Acclaimed Contributor

Re: Mirroring on not equal in size PVs

Hi,

I would create a file /etc/lvmpvg and use the PVG name as the mirror destination, see

http://docs.hp.com/en/B2355-60105/lvmpvg.4.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jonathan Caplette_1
Super Advisor

Re: Mirroring on not equal in size PVs

Thanks guys!!

I extend in mirror with this command:

lvextend -m 1 /dev/vgXX/lvolX /dev/dsk/cXtXdX /dev/dsk/cXtXdX ...

Jonathan