1834800 Members
2981 Online
110070 Solutions
New Discussion

vgsync fails

 
david d_2
Frequent Advisor

vgsync fails

Hello, after replacing a faulty disk I ran
vgcfgrestore
vgchange
and when I run vgsync and comes back with the following message:
Couldn't resynchronize stale partitons of the logical volume: I/O error

I ran a dd on the disk and it came back clean, also when I do ran an lvdisplay it came back with no stale partitions.
The other strange thing is the output of the vgdisplay shows the Total PE and free PE's to be at 4340.

Next I tried to reduce the mirror to start over and that failed as well.

Any ideas?
3 REPLIES 3
Prashanth.D.S
Honored Contributor

Re: vgsync fails

Hi David,

Can you give me the outputs of the following...

#pvdisplay -v /dev/dsk/ both primary and mirror disk
#vgdisplay -v
#lvdisplay -v /dev/vgXX/lvol*

Best Regards,
Prashanth
david d_2
Frequent Advisor

Re: vgsync fails

OK Here you go..

Output of pvdisplay (new disk)
pvdisplay -v /dev/dsk/c10t10d0 |more
--- Physical volumes ---
PV Name /dev/dsk/c10t10d0
VG Name /dev/oravg04a
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 4340
Free PE 4340
Allocated PE 0
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On


--- Physical extents ---
PE Status LV LE
0000 free 0000
0001 free 0000
0002 free 0000
0003 free 0000
0004 free 0000

Good mirror
--- Physical volumes ---
PV Name /dev/dsk/c11t1d0
VG Name /dev/oravg04a
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 4340
Free PE 2
Allocated PE 4338
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/oravg04a/lv04aoravg04a 4338 4338

--- Physical extents ---
PE Status LV LE
0000 current /dev/oravg04a/lv04aoravg04a 0000
0001 current /dev/oravg04a/lv04aoravg04a 0001
0002 current /dev/oravg04a/lv04aoravg04a 0002
0003 current /dev/oravg04a/lv04aoravg04a 0003

vgdisplay -v /dev/oravg04a
--- Volume groups ---
VG Name /dev/oravg04a
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4342
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 4338
Free PE 4342
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/oravg04a/lv04aoravg04a
LV Status available/syncd
LV Size (Mbytes) 17352
Current LE 4338
Allocated PE 4338
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c10t10d0
PV Status available
Total PE 4340
Free PE 4340
Autoswitch On

PV Name /dev/dsk/c11t1d0
PV Status available
Total PE 4340
Free PE 2
Autoswitch On

--- Logical volumes ---
LV Name /dev/oravg04a/lv04aoravg04a
VG Name /dev/oravg04a
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17352
Current LE 4338
Allocated PE 4338
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c10t10d0 4338 4338
/dev/dsk/c11t1d0 4338 4338

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c11t1d0 00000 current /dev/dsk/c10t10d0 00000 current
00001 /dev/dsk/c11t1d0 00001 current /dev/dsk/c10t10d0 00000 current
00002 /dev/dsk/c11t1d0 00002 current /dev/dsk/c10t10d0 00000 current
00003 /dev/dsk/c11t1d0 00003 current /dev/dsk/c10t10d0 00000 current
00004 /dev/dsk/c11t1d0 00004 current /dev/dsk/c10t10d0 00000 current
00005 /dev/dsk/c11t1d0 00005 current /dev/dsk/c10t10d0 00000 current

Thanks for your help

Dave
david d_2
Frequent Advisor

Re: vgsync fails

Closed this thread and started a new one