Operating System - HP-UX
1825782 Members
2134 Online
109687 Solutions
New Discussion

Re: lvxtend - Problem after change of root-mirror

 
SOLVED
Go to solution
AnSi53
Advisor

lvxtend - Problem after change of root-mirror

I know, it's daily business, but
lvextend: couldn't re-synch stale partitions of the logical volumes: I/O error

It happens only on /dev/vg00/lvol1 , 2 and 3
Other LVs can be extended / mirrored.

I did already lvsync on these lvols.
Everything seems to be fine
pvcreate ....
vgextend ...
mkboot
but no synchronize on lvol1 , 2 and 3!!!
grrrrrrrrrrr
Any ideas?
Reboot without mirror? Maybe fsck helps?
Regards
Andreas
17 REPLIES 17
James R. Ferguson
Acclaimed Contributor

Re: lvxtend - Problem after change of root-mirror

Hi Andreas:

It appears that you have a bad disk! Follow the guidelines for replacement found here:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Regards!

...JRF...
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

Hmmm, you would say, the new ( used in another system before ) disk, the replacement of the old mirror-disk, is damaged too?? hmmmm

I tried a dd, there where no errors.

pfffft
Andreas
IT_2007
Honored Contributor

Re: lvxtend - Problem after change of root-mirror

recreate mirror and force it while doing pvcreate.

pvcreate -fB /dev/rdsk/CXXtYYdZZ
mkboot ...
vgextend /dev/vg00 /dev/dsk/...

Make sure that you mirror lvol1, 2 and 3 first and then mirror remaining logical volumes.
Torsten.
Acclaimed Contributor

Re: lvxtend - Problem after change of root-mirror

Hi,

did you vgreduce the disk before vgextend the new one?
What does "strings /etc/lvmtab" and "vgdisplay -v vg00" give?

If dd works, there could be a config problem.

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!   
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

Good morning,

I did all the *normal* tasks and took care of the rules to mirror a root-disk.

Ok, I will put a new VG on the disk and see what happen........

I'll give you response!
Andy
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

Disk is ok! Could create Vg and lvol on whole disk.....
New try:
( see attachment )

Regards
Andy
Stf
Esteemed Contributor

Re: lvxtend - Problem after change of root-mirror

hey,

could you make a lvdisplay -v /dev/vg00/lvol1 and attch the result plz

Stf
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

Here is the result, have fun .....
:-))
Andy
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

What I forgot:
it is a 10.20 machine!
:-)
Stf
Esteemed Contributor

Re: lvxtend - Problem after change of root-mirror

ok, when you pvcreate your new disk try :

pvcreate -f -B /dev/rdsk/c0t5d0

Stf
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

I was hopeful, cause I didn't try both options before.
But ....... grrrrrr same message while lvextend.
lvlnboot gives now both disks as Boot disk.
That was option -B.
Remember, the other lvols can be mirrored, without problems! Is there a problem with the original lvol1 2 and 3 ?? hmmmm.

Andy
Yang Qin_1
Honored Contributor

Re: lvxtend - Problem after change of root-mirror

Did you try with vgsync vg00?
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

I did that all before, reading man-pages and .. and .. and ....

Here the reslut in the attachment!

Andy
Stf
Esteemed Contributor

Re: lvxtend - Problem after change of root-mirror

do you try to unmirror with lvreduce -m 0 all lvs and then remake mirror.

Stf
Yang Qin_1
Honored Contributor
Solution

Re: lvxtend - Problem after change of root-mirror

One of those two disks may have some bad blocks. To identify the problem you may try with cstm -> map -> select path (path of disk) -> info -> li
check both disks. If you cannot use stm or you cannot find errors there try to write on read from whole disk with dd command

dd if=/dev/dsk/c0t5d0 of=/dev/null bs=128k

if no I/O error found, try with the other disk

dd if=/dev/dsk/c0t5d0 of=/dev/null bs=128k

Hope you will find "broken" disk and you may need to replace it.

Yang
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

Problem found!
Sh ....t happens!

dd read error: I/O error on the orig root-disk. Well, mirror-disk gone, orig root problems - have a nice day ......

Thanks to all
Andy
AnSi53
Advisor

Re: lvxtend - Problem after change of root-mirror

Bad blocks on orig root-disk / Replace / Restore from IGNITE
AnSi53