1846172 Members
3114 Online
110254 Solutions
New Discussion

Re: sync error

 
SOLVED
Go to solution
Michael Dalanek
Advisor

sync error

Ive got some stale extents on an lvol but I cant resync it, get the following error;

lvsync: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vgar04/lvol1".

What can I do to fix it ?
4 REPLIES 4
Stefan Farrelly
Honored Contributor
Solution

Re: sync error


This could be a long answer depending on your situation. Lets go for the easiest possible solution. Is your lvol mirrored ? if so, are the stale extents on the primary disk or the mirror ? use lvdisplay -v /dev/vgXX/lvolYY to see if the stale(s) are on PV1 (Primary) or PV2 (mirror). If theyre on PV2 then your in luck, simply remove the mirror using lvreduce -m 0 /dev/vgXX/lvolYY and that takes care of the stales.

You can then either mirror it to another device, if available, or try extending it back to the same device with lvextend -m 1 /dev/vgXX/vlolYY /dev/dsk/cxxxxx. If it mirrors cleanly then your all fixed. If not you may have to remove PV2 from the volume group using vgreduce /dev/vgXX /dev/dsk/cxxxx and try using pvcreate -f on it then adding it back in and extending the mirror again. If the disk has some i/o errors on it you may have to try using mediainit on it the try adding it in again or replace the disk if you still get errors.
Im from Palmerston North, New Zealand, but somehow ended up in London...
melvyn burnard
Honored Contributor

Re: sync error

sounds like you may have a duff disk as part of the vg.
use the lvdisplay/pvdisplay commands to check out what area this may be on.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ramesh Donti
Frequent Advisor

Re: sync error

Hi,
Try the following:

1. Reduce the mirror and extend the mirror onto the same PV. if this doesn't fix.

2. Try mirroring onto different PV. If this doesn't fix, then you may have to

3. Take backup of filesystem and re-create the LV and filesystem on to the same LV's.

I faced similar problem, which got solved after going through all the above 3 steps. So ur's might be solved by one of the above,, try them in the order.

Always Keep Smiling
Vincente Fernandes
Valued Contributor

Re: sync error

run a dd on the disk or lv.
dd if=/dev/dsk/c?t?d? of=/dev/null bs=4096k
or
dd if=/dev/vg00/lvol? of=/dev/null bs=4096k
if the dd comes out fine without an I/O error then the disk are fine. Try reducing the mirror by using the foll steps.
lvreduce -m 0 /dev/vg??/lvol? /dev/dsk/c?t?d?
vgreduce /dev/vg?? /dev/dsk/c?t?d?
vgextend /dev/vg?? /dev/dsk/c?t?d?
lvextend -m 1 /dev/vg??/lvol? /dev/dsk/c?t?d?
vgsync /dev/vg??
Hope that helps.