Operating System - HP-UX
1845247 Members
2138 Online
110244 Solutions
New Discussion

repeat question stale mirror condition will not allow vgsync to run

 
Norville Cole
Advisor

repeat question stale mirror condition will not allow vgsync to run

Here is the full error message. I have tried to go to single user mode to fix problem and same problem. I can not split or reduce the mirror due to stale condition. I am afraid to disconnect the drive and rebuild because this is a remote production system and I can not afford any down time. And when I tried this on a local system I had to rebuilt from scratch. Does anyone have a magical solution?
thanks Norville

Resynchronized logical volume “/dev/vg00/lvol1”.
Resynchronized logical volume “/dev/vg00/lvol2”.
vgsync: Couldn’t re-synchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn’t resynchronize logical volume “/dev/vg00/lvol3”.
vgsync: Couldn’t resynchronize volume group “/dev/vg00”

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: repeat question stale mirror condition will not allow vgsync to run

Shalom,

The bad disk needs to be dealt with before you r resynch will work.

There is no magical solution.

If possible, see if lvsplit or lvextend -m 1 will reduce the mirror prior to getting a new disk.

The disk must be reliable before any of these commands will work.

I don't recall reading your prior question so I don't know if this is redundant, nor am I aware of your OS level or any data to the prior thread.

Making that available would be helpful.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Norville Cole
Advisor

Re: repeat question stale mirror condition will not allow vgsync to run

ok the situation is that there was a power outage and the main disk has 1 stale condition that I can not fix. The mirror disks are on the same scsi bus. The system is still running and I can boot of both disk separately. I have the feeling that the cost of downtime is not going to be worth trying to fix this problem, but then again I have this nagging feeling that there is a risk of this problem exculating at any moment.

I will go through the procedure of replacing the disk as soon as posible thanks for your input
Norville
Robert-Jan Goossens
Honored Contributor

Re: repeat question stale mirror condition will not allow vgsync to run

Norville,

Please post your HPUX version and your server model.

Are you sure the disk (/dev/dsk/c0t5d0) is in good working condition?

# dd if=/dev/rdsk/c0t5d0 of=/dev/null bs=1024k
io-errors ?

Second check if you have the OLR (Online Disk Replacement) patches installed (11.11 + 11.23)

Title: HP-UX LVM: LVM Online Disk Replacement (OLR) feature
Document ID: emr_na-c00996338-1

http://www8.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00996338-1

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00996338-1

Regards,
Robert-Jan
Norville Cole
Advisor

Re: repeat question stale mirror condition will not allow vgsync to run

thanks for your response. since this is a high available system I have postponed the disk maintenance until I can get management's approval. In the meantime, the version of my OS is 10.20 and I will run the command you have suggested and soon as I can. Thank you again
Norville
skt_skt
Honored Contributor

Re: repeat question stale mirror condition will not allow vgsync to run

considering a failing disk; i would say to replace the failed disk.

To list and verify the config file

root [/root] vgcfgrestore -n /dev/vg00 -l
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c0t0d0 (Bootable)
/dev/rdsk/c3t0d0 (Bootable)

Pvchange -a n /dev/dsk/c0t0d0
Replace the disk
Ioscan -fnH path
Diskinfo /dev/rdsk/c0t0d0

mkboot /dev/rdsk/c0t0d0

mkboot -b /usr/lib/uxbootlf /dev/dsk/c0t0d0

vgcfgrestore -F -n vg00 /dev/rdsk/c0t0d0
Pvchange -a y /dev/dsk/c0t0d0
vgchange -a y vg00
vgsync vg00

lvlnboot -R

for lif_comp in `lifls /dev/dsk/c3t0d0`
do
/usr/bin/lifcp /dev/dsk/c3t0d0:${lif_comp} /dev/dsk/c0t0d0:${lif_comp}