Operating System - HP-UX
1751693 Members
4745 Online
108781 Solutions
New Discussion юеВ

Re: 1 stale extent in root volume

 
Dispatching
New Member

1 stale extent in root volume

I have 1 stale extent in /dev/vg00/lvol3 on disk c2t2d0.
This disk is replaced already twice without success. Lvsync doesn't work. Diskinfo and dd don't show (expected) errors. What can I do to fix this? The system doesn't boot from this disk anymore and I'm afraid when I'd try to break the mirror and recreate it, this will cause problems.
lvsync /dev/vg00/lvol3
lvsync: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol3".

#dd if=/dev/dsk/c1t2d0 of=/dev/null bs=1024k
346+0 records in
346+0 records out
root@cdrc4:/root#dd if=/dev/rdsk/c1t2d0 of=/dev/null bs=1024k
17366+1 records in
17366+1 records out
#dd if=/dev/rdsk/c2t2d0 of=/dev/null bs=1024k
17366+1 records in
17366+1 records out

root@cdrc4:/root#diskinfo -v /dev/dsk/c2t2d0
diskinfo: Character device required
root@cdrc4:/root#diskinfo -v /dev/rdsk/c2t2d0
SCSI describe of /dev/rdsk/c2t2d0:
vendor: HP 18.2G
product id: MAN3184MC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
rev level: HP04
blocks per disk: 35566480
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)4e (33)30 (34)31 (35)30 (36)34 (37)32 (38)32 (39)20 (40)20 (41)20 (42)20 (43)46 (44)55 (45)4a (46)49 (47)54 (48)53 (49)55 (50)20 (51)0 (52)0 (53)0 (54)40 (55)b (56)18 (57)1 (58)3c (59)1 (60)9b (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 )
root@cdrc4:/root#diskinfo -v /dev/rdsk/c1t2d0
SCSI describe of /dev/rdsk/c1t2d0:
vendor: HP 18.2G
product id: MAN3184MC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
rev level: HP04
blocks per disk: 35566480
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)4e (33)30 (34)30 (35)31 (36)34 (37)31 (38)32 (39)20 (40)20 (41)20 (42)20 (43)46 (44)55 (45)4a (46)49 (47)54 (48)53 (49)55 (50)20 (51)0 (52)0 (53)0 (54)40 (55)b (56)18 (57)1 (58)3c (59)1 (60)9b (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 )
14 REPLIES 14
Jozef_Novak
Respected Contributor

Re: 1 stale extent in root volume

Hello,

have you followed the correct procedure for replacing disks that are under LVM control ?

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

J.
Steven E. Protter
Exalted Contributor

Re: 1 stale extent in root volume

Shalom,

Break the mirror on all logical volumes with lvsplit or lvextend -m 0


re-mirror your system:
http://www.hpux.ws/?p=21

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
Ganesan R
Honored Contributor

Re: 1 stale extent in root volume

Hi,

I suspect that your primary disks is having statle extends. It is not uncommon that lvdisplay still shows synced but the actual extends has I/O error.

So the only way is break the mirror and check with lvsync on primary then add the secondary disk and extend the mirror. But take the ignite backup before you try anything. Ignite backup may fail if primary copy of lvol3 is having physical error

Be prepared to have recovery from ignite in case of failure.
Best wishes,

Ganesh.
R.K. #
Honored Contributor

Re: 1 stale extent in root volume

HEllo,

Can you find any stale extents in lvol3:
# lvdisplay -v /dev/vg00/lvol3 | grep -i stale

Which disk have stale extents?

Regds,
R.K.
Don't fix what ain't broke
Dispatching
New Member

Re: 1 stale extent in root volume

Hi Guys, thx for your replies, sorry for my late answer
I made a little error. The only stale extent is on my primary disk c1t2d0(lvol3)
00004 /dev/dsk/c1t2d0 00774 stale /dev/dsk/c2t2d0 00537 current
lvdisplay shows : available/stale not synced
Disk c1t2d0 has been replaced twice by our supplier...I suppose in a correct way.
I read the pdf "when good disks go bad" and that's why I already did the dd and diskinfo commands.
With no errors, which is strange because according the pdf there should be.
That's why I'm a bit suspicious. Still go for breaking/recreating mirror ?
R.K. #
Honored Contributor

Re: 1 stale extent in root volume

Hello,

Breaking and re-mirroring, is never an issue.
You can go ahead and try this.

You can also try "lvsync /dev/vg00/lvol3"

Regds,
R.K.
Don't fix what ain't broke
johnsonpk
Honored Contributor

Re: 1 stale extent in root volume

Hi,

00004 /dev/dsk/c1t2d0 00774 stale /dev/dsk/c2t2d0 00537 current

remove the mirror form primary disk and create a mirror again

#lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c1t2d0

#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t2d0

if it is not succeeded you may need to replace the disk again.

Thanks!!
Johnson
Dispatching
New Member

Re: 1 stale extent in root volume

I recreated the mirror on lvol3 without success. There is the exact same exent that remains stale.
#lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c1t2d0
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t2d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
lvextend: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvextend: Couldn't resynchronize logical volume "/dev/vg00/lvol3".
==>
00004 /dev/dsk/c2t2d0 00537 current /dev/dsk/c1t2d0 00774 stale

I will have the disk replaced for a 3th time.(a bad lot of disks last time maybe)
Michal Kapalka (mikap)
Honored Contributor

Re: 1 stale extent in root volume

Hi Dispatching,

sometimes, it is not a disk error but on the disk bay or SCSI card.

mikap