Operating System - HP-UX
1834276 Members
2092 Online
110066 Solutions
New Discussion

how can i force a sync on stale partitions?

 
mobidyc
Trusted Contributor

how can i force a sync on stale partitions?

Hello,

i've replaced a bad disk today but when i try to re-sync those LE/PE, i can't :
# lvsync /dev/vg00/lvol1
lvsync: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol1".

i've tried to remove the disk from the vg for doing on it a pvcreate but it's not possible without restart the server because this disk is seen as used by /dev/vg00/swap_2...and it's not a mirror ;(

is there a way to force the synchronisation ?
maybe by doing a dd command?

thanks for help.

--
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: how can i force a sync on stale partitions?

Hi,

I don't know what steps you did, but the message
"I/O error"
looks like a hardware problem.
BTW, an unmirrored swap is not a good idea ...

Perhaps this document can help you:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
mobidyc
Trusted Contributor

Re: how can i force a sync on stale partitions?

Hello,

i've already seen the document and the first step is to halt lvm access to the disk, a thing i can't because of the non mirrored swap volume.

i know that a no mirored swap volume is a problem, if i had seen it before the problem would be gone.

--
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
Prashanth.D.S
Honored Contributor

Re: how can i force a sync on stale partitions?

Hi Cedrick,

I dont think you have any other choice than reboot, have you checked the disk for any bad blocks ?

Are diskinfo,ioscan and dd commands working fine and are there any error messages ?

Have you tried to check if the disk has been found by lvm using pvdisplay ?

Best Regards,
Prashanth
Andrew Rutter
Honored Contributor

Re: how can i force a sync on stale partitions?

hi,

post the steps you have done so far.

Also what was on the disk? is it a secondary swap disk?


Also?

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

lvol1 should be /stand?

so when are you issuing in this command?

post your lvdisplay if you can, or part of.

Also post ioscan if you can? was the disk replaced a hotplug disk and done while server up and running?

Andy
mobidyc
Trusted Contributor

Re: how can i force a sync on stale partitions?

Hello,

the disk was changed so, i've needed to export the bad/missing disk informations from lvm for doing a pvcreate on the new disk...(that seems to be stupid for me).

by error (or stupidity), the secondary swap space was not mirrored like others lvols but concatened, it was impossible to remove the disk from the vg.

after a reboot and recreate the secondary swap space, all seems to be fine now.

thanks all.
Best regards, Cedrick Gaillard