Partial mirrored issue with the LV:
mohisrv# lslv -m mohilv
mohilv:/mohifs
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0064 hdisk2 0079 hdisk8
0002 0065 hdisk2 0080 hdisk8
0003 0066 hdisk2 0081 hdisk8
0004 0067 hdisk2
0005 0068 hdisk2
0006 0069 hdisk2
0007 0070 hdisk2
0008 0071 hdisk2
0009 0026 hdisk2
mohisrv# lsvg -l mohivg
mohivg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv02 jfs2log 1 1 1 open/syncd N/A
0516-1147 : Warning - logical volume fslv58 may be partially mirrored.
mohilv jfs2 9 12 3 open/syncd /mohifs
mohisrv# rmlvcopy mohilv 1 hdisk8
0516-022 lquerypv: Illegal parameter or structure value.
0516-304 getlvodm: Unable to find device id 0000000000000000 in the Device
Configuration Database.
0516-848 rmlvcopy: Failure on physical volume 0000000000000000, it may be missing
or removed.
mohisrv# mklvcopy mohilv 2 hdisk3
0516-1509 mklvcopy: VGDA corruption: physical partition info for this LV is invalid.
0516-842 mklvcopy: Unable to make logical partition copies for
logical volume.
0516-1199 mirrorvg: Failed to create logical partition copies
for logical volume bblv.
0516-1200 mirrorvg: Failed to mirror the volume group.
How to remove the partial mirrored copied from hdisk8?
We need to use low-level command lreducelv (becareful)
Syntax:
lreducelv -l -s
cat /tmp/file.txt
00c2545ba95e1e32 0079 0001
00c2545ba95e1e32 0080 0002
00c2545ba95e1e32 0081 0003
Preparation:
LV ID: 00c2545b00004c000000010ccff96e80.29
No of LPs: 3 (wc -l /tmp/file.txt)
Text file: /tmp/file.txt
Now the time to correct it!
lreducelv -l 00c2545b00004c000000010ccff96e80.29 -s 3 /tmp/file.txt
Now the lvm deallocates all PP's of your partially mirror from hdisk8
Note: After these, lslv -m will show correct output, but LVCB or VGDA could still show this wrongly
odmget -q name=mohilv CuAt | grep -p copies --> Command to check
Hence it is safer if we update both LVCB and VGDA with the correct value
putlvodm -c 1 00c2545b00004c000000010ccff96e80.29
putlvcb -c 1 mohilv
Syntax:
putlvodm -c COPYNUM LV ID
putlvcb -c COPYNUM LV NAME
Thats it we resolved the partial mirror issue of the mohilv
mohisrv# lslv -m mohilv
mohilv:/mohifs
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0064 hdisk2 0079 hdisk8
0002 0065 hdisk2 0080 hdisk8
0003 0066 hdisk2 0081 hdisk8
0004 0067 hdisk2
0005 0068 hdisk2
0006 0069 hdisk2
0007 0070 hdisk2
0008 0071 hdisk2
0009 0026 hdisk2
mohisrv# lsvg -l mohivg
mohivg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv02 jfs2log 1 1 1 open/syncd N/A
0516-1147 : Warning - logical volume fslv58 may be partially mirrored.
mohilv jfs2 9 12 3 open/syncd /mohifs
mohisrv# rmlvcopy mohilv 1 hdisk8
0516-022 lquerypv: Illegal parameter or structure value.
0516-304 getlvodm: Unable to find device id 0000000000000000 in the Device
Configuration Database.
0516-848 rmlvcopy: Failure on physical volume 0000000000000000, it may be missing
or removed.
mohisrv# mklvcopy mohilv 2 hdisk3
0516-1509 mklvcopy: VGDA corruption: physical partition info for this LV is invalid.
0516-842 mklvcopy: Unable to make logical partition copies for
logical volume.
0516-1199 mirrorvg: Failed to create logical partition copies
for logical volume bblv.
0516-1200 mirrorvg: Failed to mirror the volume group.
How to remove the partial mirrored copied from hdisk8?
We need to use low-level command lreducelv (becareful)
Syntax:
lreducelv -l
cat /tmp/file.txt
00c2545ba95e1e32 0079 0001
00c2545ba95e1e32 0080 0002
00c2545ba95e1e32 0081 0003
Preparation:
LV ID: 00c2545b00004c000000010ccff96e80.29
No of LPs: 3 (wc -l /tmp/file.txt)
Text file: /tmp/file.txt
Now the time to correct it!
lreducelv -l 00c2545b00004c000000010ccff96e80.29 -s 3 /tmp/file.txt
Now the lvm deallocates all PP's of your partially mirror from hdisk8
Note: After these, lslv -m will show correct output, but LVCB or VGDA could still show this wrongly
odmget -q name=mohilv CuAt | grep -p copies --> Command to check
Hence it is safer if we update both LVCB and VGDA with the correct value
putlvodm -c 1 00c2545b00004c000000010ccff96e80.29
putlvcb -c 1 mohilv
Syntax:
putlvodm -c COPYNUM LV ID
putlvcb -c COPYNUM LV NAME
Thats it we resolved the partial mirror issue of the mohilv
No comments:
Post a Comment