Operating System - HP-UX
1833776 Members
2308 Online
110063 Solutions
New Discussion

I/O error while mirroring

 
Bill Dillon
New Member

I/O error while mirroring

Hi All:

I'm running into a problem mirroring a lvol. When I run the lvextend, I get an I/O error a couple of minutes in the sync porcess.

Thanks for any help on this.

Bill D
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: I/O error while mirroring

Could be a bad disk...

Find out the dev's of the disks in that volume group...and do a non-destructive dd from them to /dev/null

dd if=/dev/rdsk/cxxxxxx of=/dev/null bs=1024k

If any of them fail - then you have a bad disk...

Before doing the above, do:

What is the exact command you are doing for lvextend? What is the ouput of vgdisplay /dev/vgxx of the volume group?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: I/O error while mirroring

Sounds like a bad disk. Do the syslog errors point to the mirror disk or the original disk? If they point to the original disk and mirroring has not been completed, you'll have to save what you can before replacing the bad disk. If it is the mirror copy, just lvreduce any existing mirrors and replace the disk. Then sync the new disk (requisite shutdowns and power off sequences.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: I/O error while mirroring

Would have been nice if you actually posted in the error.

lvdisplay -v /dev/vg00/lvolname | more

replace vg00 with actual volume group lvolname with actaual logical volume name.

That will give you the status of the mirror. It might have gotten done before the error.

Probably not.

dmesg

vi /var/adm/syslog/syslog.log to look for error messages.

You can use cstm mstm or in X Windows xstm to try and find a bad disk. Bet you will find something wrong somewhere.

Good Luck,

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
T G Manikandan
Honored Contributor

Re: I/O error while mirroring

/var/adm/syslog/syslog.log
is the right place to start.

REvert with messages


Thanks