1834293 Members
2233 Online
110066 Solutions
New Discussion

Wrong PV Move ????

 
SOLVED
Go to solution
kumar.s
Advisor

Wrong PV Move ????

Hello All ,

Recenly there was a disk replace ment in our setup ,
for the disk c10t2d0

-------------
PVG Under the VG ( VG05 )
--- Physical volume groups ---
PVG Name vg05p
PV Name /dev/dsk/c10t0d0
PV Name /dev/dsk/c10t1d0
PV Name /dev/dsk/c10t2d0
PV Name /dev/dsk/c11t3d0
PV Name /dev/dsk/c10t4d0
PV Name /dev/dsk/c11t5d0
PV Name /dev/dsk/c10t6d0
PV Name /dev/dsk/c11t7d0
PV Name /dev/dsk/c10t8d0
PV Name /dev/dsk/c11t9d0

PVG Name vg05m
PV Name /dev/dsk/c8t0d0
PV Name /dev/dsk/c9t1d0
PV Name /dev/dsk/c8t2d0
PV Name /dev/dsk/c9t3d0
PV Name /dev/dsk/c8t4d0
PV Name /dev/dsk/c9t5d0
PV Name /dev/dsk/c8t6d0
PV Name /dev/dsk/c9t7d0
PV Name /dev/dsk/c8t8d0
PV Name /dev/dsk/c9t9d0


One of our collegue has done a PV move to a another disk considering the disk is in Mirror Volume &
the disk is free
--------------
# pvmove -n /dev/vg05/lvol1 /dev/dsk/c10t2d0 /dev/dsk/c8t0d0
Transferring logical extents of logical volume "/dev/vg05/lvol1"...
pvmove: Couldn't update the contents of logical extent:
I/O error

--------------

After that the LVsync was not working
# lvsync /dev/vg05/lvol1
lvsync: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg05/lvol1".
#

--------------
LVDISPLAY OUTOUT

09773 /dev/dsk/c8t0d0 01093 current PX_NOPV 00000 current
09774 /dev/dsk/c8t0d0 01094 current PX_NOPV 00000 current
09775 /dev/dsk/c8t0d0 01095 current PX_NOPV 00000 current
09776 /dev/dsk/c10t2d0 01096 current /dev/dsk/c8t0d0 01096 stale

From the above output the disk show it is the primary copy and the mirror has PX_NOPV,
and the last line shows it is in the Mirror Copy in stale position

# vgdisplay vg05 |egrep 'Free'
Free PE 43399
#



And this is a production Volume and Data loss will be a Huge impact and Guide me take out of the issue .thanks

Regards
Kumar.S
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: Wrong PV Move ????

Was lvol5 mirrored? I am thinking that it wasn't and as result pvmove did not succeed.

Backup seems to be only option.
There is no substitute to HARDWORK
kumar.s
Advisor

Re: Wrong PV Move ????

RAC ,

The VG05 has only one LV lvol1

and that was mirrored

Will lvreduce (lvreduce -m 0 /dev/vg05/lvol /dev/dsk/c8t0d0) to the disk will work ? ( the disk is also the part of primary copy )

Regards
Kumar .S
RAC_1
Honored Contributor

Re: Wrong PV Move ????

Yes. Try lvreduce. (reduce faulty disk from mirror.) you may need to use -k to reduce it.
There is no substitute to HARDWORK
kumar.s
Advisor

Re: Wrong PV Move ????

Thanks RAC ,



Considering the situation
09776 /dev/dsk/c10t2d0 01096 current /dev/dsk/c8t0d0 01096 stale

if i do a lvreduce to /dev/dsk/c8t0d0 where the disk is in mirror part

what will be the impact to data for below situation where the disk is in primary copy

09774 /dev/dsk/c8t0d0 01094 current PX_NOPV 00000 current
09775 /dev/dsk/c8t0d0 01095 current PX_NOPV 00000 current

There are also some free extents & current extents there
# pvdisplay -v /dev/dsk/c8t0d0 |grep free |wc -l
3243
# pvdisplay -v /dev/dsk/c8t0d0 |grep current |wc -l
1096


Regards
Sathish Kumar

RAC_1
Honored Contributor

Re: Wrong PV Move ????

What I am saying is try to reduce the faulty disk from mirror. But make sure that good copy is there.
There is no substitute to HARDWORK