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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mirrorvg of nonrootvg to 2 disks 2

Status
Not open for further replies.

billy1

Technical User
Sep 16, 2002
73
IE
I have a volume group which was created over two disks hdisk2 and hdisk3, I need to mirror this volume group and have two free disks for this, hdisk6 and hdisk7. Is the command simply : mirrorvg vgname hdisk6 hdisk7
or do I have to run extendvg of the volume group to both disks and then run mirrorvg of the volume group ?
 
you should extend then mirror the vg.

IE

extendvg vgname hdisk6 hdisk7
mirrorvg vgname

once the above commands are done, you can then do a

lsvg -l vgname

you should see that each logical volume has 2 copies - PVs column should be all 2s.

If you have a dump lv on the disk, you may need to take additional steps to mirror it.

scott
 
Hi, I tried this but got the following error when trying to extendvg :

extendvg datavg01 hdisk6 hdisk7
0516-1254 extendvg: Changing the PVID in the ODM.
0516-1254 extendvg: Changing the PVID in the ODM.
0516-1162 extendvg: Warning, The Physical Partition Size of 64 requires the
creation of 2187 partitions for hdisk6. The limitation for volume group
datavg01 is 1016 physical partitions per physical volume. Use chvg comd
with -t option to attempt to change the maximum Physical Partitions per
Physical volume for this volume group.
0516-1162 extendvg: Warning, The Physical Partition Size of 64 requires the
creation of 2187 partitions for hdisk7. The limitation for volume group
datavg01 is 1016 physical partitions per physical volume. Use chvg comd
with -t option to attempt to change the maximum Physical Partitions per
Physical volume for this volume group.
0516-792 extendvg: Unable to extend volume group
 
Well, the message has the solution:

chvg -t 3 datavg01

From then on, the max number of PVs will go from 32 to 10, but as it has only 2 PVs now, you should be OK.

My guess is, you can mirror current disks 2 and 3 to just one new disk, because it will be at least the size of hdisk2 or hdisk3 put together.

Other option is: get smaller disks for your mirror operation.


HTH,

p5wizard
 
Cheers, I had figured that out, but only after running "chvg -t datavg01" and then "chvg -t 2 datavg01".
extendvg then worked.
mirrorvg is still running (taking a while) but looks like its working - thanks.
 
-t 2 ???

the maximum would then be 1016*2 => 2032 PPs per PV, max 32/2 => 16 PVs

with

chvg -t3

you get 32/3 => 10 PVs of max 1016*3 => 3048 PPs each.

The mirrorvg process is running syncvg to get the extra copy of each LP in sync with the original. May take a while.

Anyway thx for the purple star.


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top