1830044 Members
12604 Online
109998 Solutions
New Discussion

Mirror Problem

 
Wilder Mellotto
Frequent Advisor

Mirror Problem

Hi

I have one rp3440 server running hpux 11.11 and I can't create mirror.

vgsync: Couldn t re-synchronize stale partitions of the logical volume:
I/O error

c2t0d0 - installed disk
c3t2d0 - secundary disk

TESTS:
dd if=/dev/rdsk/c2t0d0 of=/dev/null bs=8192k -->passed
dd if=/dev/rdsk/c3t2d0 of=/dev/null bs=8192k --> passed

dd if=/dev/vg00/rlvol1 of=/dev/null --> IO/Error

Can this be possible? When I executed dd on entire c2t0d0 without problem, this indicate a good disk?

dd in rlvol1 returns error, why?

Please, anyone have ideas?
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Mirror Problem

While your test of /dev/rdsk/cXtYdZ is a very good indication that the physical disks are ok, that says nothing about logical i/o with respect to LVM. For example, some of the LVM meta-data might be corrupt so that you are trying to write to block 1 zillion + 3 --- which is an invalid address. I would first do an lvdisplay -v /dev/vg00/rlvol1 and see if all LE's report sync'ed on the "good" disk. If so, you can probably fix this by starting the mirror process over. I assume that you did do a pvcreate -B when you started on this. The -B is essential for any disk that may be a boot disk.
If it ain't broke, I can fix that.
Wilder Mellotto
Frequent Advisor

Re: Mirror Problem

Ok, this server have only one disk (c2t0d0) with hpux. This was my steps to Create mirror:

pvcreate -B /dev/rdsk/c3t2d0 -->success

vgextend vg00 /dev/dsk/c3t2d0 -->success

mkboot /dev/rdsk/c3t2d0 -->success

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t2d0 --> fail IO error

FSCK can fix this problem? Can i run fsck whitout problem on a mounted /stand?
A. Clay Stephenson
Acclaimed Contributor

Re: Mirror Problem

No fsck works at a much higher abstraction level -- the file system --- than where your errors are occurring.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Mirror Problem

I think if I were you, I would start the mirroring process over but first vgreduce the secondary disk out of vg00. You will have to use the -f flag on your new pvcreate to force reuse. Before mirroring, I would repeat you dd operation after vgreducing the secondary disk out of vg00. After reading from the full disk, I would set if=/dev/zero of=/dev/rdsk/c3t2d0 and make sure that you can write to the entire disk. If it passes both of those tests then you should be ok. The one thing that I am concerned about is that you already have stale extents on your original disk. If you have any stale extents on your original disk then you have what is technically referred to as "a mess". Do an lvdisplay -v of each LVOL in /dev/vg00 and confirm that all LE's are current.


If it ain't broke, I can fix that.
Victor Fridyev
Honored Contributor

Re: Mirror Problem

BTW,

Do you have HP-UX Mirror installed ?
Entities are not to be multiplied beyond necessity - RTFM