1833704 Members
3025 Online
110062 Solutions
New Discussion

/stand will not mirror

 
Thomas Tobiassen
Occasional Contributor

/stand will not mirror

When I try to mirror /stand I get the following error:

# 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".

When I do an lvdisplay only LE 00000 shows that it is stale.

HP replaced the mirror disk which has the stale extent but it still had the same problem. They then thought that the original disk is the one with the problem and replaced that disk. I ignited the server from a tape I made before they replaced the disk. After the server was ignited I tried to mirror the disks and /stand still has the
1 stale extent.

Anyone have any idea how to fix this? Both
disks have been replaced. I can't break the
mirror because it says they are not sync'ed, I can't sync the mirror.

Is it possible to remove a logical volume that is mirrored without breaking the mirror?

I'm thinking about copying the data from /stand to someplace else, and doing a newfs on /stand and then copy the data back or
to try to remove the logical volume and then recreate it and copy the data back.

the output of lvdisplay for some more info:

--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 200
Current LE 50
Allocated PE 100
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c5t6d0 50 50
/dev/dsk/c5t5d0 50 50

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c5t6d0 00000 current /dev/dsk/c5t5d0 00000 stale
00001 /dev/dsk/c5t6d0 00001 current /dev/dsk/c5t5d0 00001 current
00002 /dev/dsk/c5t6d0 00002 current /dev/dsk/c5t5d0 00002 current
00003 /dev/dsk/c5t6d0 00003 current /dev/dsk/c5t5d0 00003 current


4 REPLIES 4
Bharat Katkar
Honored Contributor

Re: /stand will not mirror

I would do this in this way:

# mkdir backup
# cp /stand /backup
# lvreduce -m 0 /dev/vg00/lvol1

Then create new volume on dev/dsk/c5t5d0.
And try mirroring again.
/dev/dsk/c5t6d0 looks Okay.

This should help.

All the best!!!!!


You need to know a lot to actually know how little you know
Tom Dineen_2
Advisor

Re: /stand will not mirror

Do you have have an IGNITE tape for your system ? Before removing things, can you boot from the IGNITE ? This will break you mirror when you come up live. just a thought?
Thomas Tobiassen
Occasional Contributor

Re: /stand will not mirror

I have an ignite tape. I could ignite the
server but that would take about an hour and a half or more so I was trying to avoid
that.

Tom
Geoff Wild
Honored Contributor

Re: /stand will not mirror

Bharat's way should work (do a cp -p -R for the backup part though).

Reduce it out of mirror, then add it back...

Did you try a vgcfgrestore?

vgcfgrestore -R -n /dev/vg00 /dev/rdsk/c5t5d0

do a man vgcfgrestore first...

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.