Now, we discuss the mirroring using 3 disks.
bash-3.2# lsvg -p data
data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk4 active 1084 1019 217..152..216..217..217
hdisk3 active 1084 1084 217..217..216..217..217
hdisk5 active 542 542 109..108..108..108..109
bash-3.2# lsvg -p data
data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk4 active 1084 1019 217..152..216..217..217
hdisk3 active 1084 1084 217..217..216..217..217
hdisk5 active 542 542 109..108..108..108..109
hdisk4 : Original Copy.
bash-3.2# mirrorvg -c 3 data hdisk3 hdisk5
0516-1125 mirrorvg: Quorum requirement turned off, varyoff and varyon
volume group for this to take effect.
bash-3.2# lsvg -p data
data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk4 active 1084 1019 217..152..216..217..217
hdisk3 active 1084 1019 217..152..216..217..217
hdisk5 active 542 477 109..43..108..108..109
bash-3.2# lsvg -l data
data:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv01 jfs2log 1 3 3 open/syncd N/A
fslv01 jfs2 64 192 3 open/syncd /data
bash-3.2#
So, as per the command executed. I can say,
hdisk4: Original.
hdisk3: 1st mirror.
hdisk5: 2nd mirror.
Now, will try this.
bash-3.2# lsvg -p data
data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk4 active 1084 1019 217..152..216..217..217
hdisk3 active 1084 1019 217..152..216..217..217
hdisk5 active 542 477 109..43..108..108..109
bash-3.2# unmirrorvg -c 2 data
bash-3.2# lsvg -p data
data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk4 active 1084 1019 217..152..216..217..217
hdisk3 active 1084 1019 217..152..216..217..217
hdisk5 active 542 542 109..108..108..108..109
bash-3.2#
The above command proves that the 2nd copy was in hdisk5 and its removed.
Now we will mirror it back.
bash-3.2# mirrorvg data hdisk5
0516-1118 mirrorvg: No logical volumes in volume group to mirror.
0516-1200 mirrorvg: Failed to mirror the volume group.
bash-3.2# lsvg -l data
data:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv01 jfs2log 1 2 2 open/syncd N/A
fslv01 jfs2 64 128 2 open/syncd /data
The above command failed to mirror. But the command is correct.
But it worked when I executed like this,
bash-3.2# mirrorvg -c 3 data hdisk5
bash-3.2# lsvg -l data
data:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv01 jfs2log 1 3 3 open/syncd N/A
fslv01 jfs2 64 192 3 open/syncd /data
bash-3.2# lsvg -p data
data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk4 active 1084 1019 217..152..216..217..217
hdisk3 active 1084 1019 217..152..216..217..217
hdisk5 active 542 477 109..43..108..108..109
This needs an explanation...
No comments:
Post a Comment