Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mirrorvg 1

Status
Not open for further replies.

mrn

MIS
Apr 27, 2001
3,993
GB
I'm in the process of planning to migrate from borrowed SAN disk to New SAN on a few of my server, I've though about serveral options available to me.

1. SAN Tools - Non Avaialble.
2. Multiple Copies in Parallel - A nightmare.
3. Migratepv / Replacepv - Horrible if it goes wrong.
4. mklvcopy / syncvg - Again hundreds of lv's time consuming
5. snapshot / restore - maybe
6. Point in time copy - takes too long.

7. mirrorvg - my prefered option but.....

We have the following

all belong to datavg

Old Disk New Disk
hdisk4 - 22204 MB hdisk9 - 22204 MB
hdisk5 - 1024 MB hdisk10 - 1024 MB
hdisk6 - 46000 MB hdisk11 -46000 MB
hdisk7 - 22204 MB hdisk12 -22204 MB
hdisk8 - 18234 MB hdisk13 -18234 MB

I want to keep volume strictness so everything that is currently on hdisk4 ends up on hdisk9 and so on. Would -m allow me to control this?

mirrorvg -m datavg hdisk4 hdisk9 ...

or I'm I going to have to use mklvcopy / syncvg

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Mike,

mirrorvg -m is your best option I would assume, but also use -s flag to turn off the syncvg phase, so that a) you can verify if all maps were rightly chosen and b) you can start synchronizing in the wee hours and not impact daytime performance.



HTH,

p5wizard
 
Hi Mike (long time no see!),

IMHO -m is your option according to this:

Code:
-m exact map Allows mirroring of logical volumes in the exact physical partition order that the original copy is ordered. This option requires you to specify a PhysicalVolume(s) where the exact map copy should be placed. If the space is insufficient for an exact mapping, then the command will fail. You should add new drives or pick a different set of drives that will satisfy an exact logical volume mapping of the entire volume group. The designated disks must be equal to or exceed the size of the drives which are to be exactly mirrored, regardless of if the entire disk is used. Also, if any logical volume to be mirrored is already mirrored, this command will fail.


Regards,
Khalid
 
8 mins difference p5 :) I should have refereshed the page b4 submitting :)

Regards,
Khalid
 
Thanks Guys

The thing that's putting doubt in my mind is...

on hdisk4 & hdisk6 I have datalv, the new disks are hdisk9 and hdisk11.

The examples on the man page show

mirrorvg -s -m hdisk4 hdisk9

which is clear enough.

but I want to do

mirrorvg -s -m hdisk4 hdisk5 hdisk6 hdisk7 hdisk8 hdisk9 hdisk10 hdisk11 hdisk12 hdisk13

or would it be

mirrorvg -s -m hdisk4 hdisk9 -m hdisk5 hdisk10 -m hdisk6 hdisk11 -m hdisk7 hdisk12 -m hdisk8 hdisk13

or

mirrorvg -s -m hdisk4 hdisk9
mirrorvg -s -m hdisk5 hdisk10
mirrorvg -s -m hdisk6 hdisk11
mirrorvg -s -m hdisk7 hdisk12
mirrorvg -s -m hdisk8 hdisk13

?



Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
I think it should be

Code:
mirrorvg -s -m datavg hdisk4 hdisk9
mirrorvg -s -m datavg hdisk5 hdisk10
mirrorvg -s -m datavg hdisk6 hdisk11
mirrorvg -s -m datavg hdisk7 hdisk12
mirrorvg -s -m datavg hdisk8 hdisk13

Regards,
Khalid
 
hmm i have a feeling that this command

Code:
mirrorvg -s -m datavg

will just do all of the above!

Regards,
Khali
 
Just specify the target (empty) PVs all in one go and mirrorvg will pair them to the filled PVs based on their sizes.

In any case, with -m and -s flag you can start over with no harm done if not satisfied with the result.


HTH,

p5wizard
 
Cool Thanks guys



Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top