1834414 Members
1469 Online
110067 Solutions
New Discussion

Error Mirror DISK

 
Daniel Duarte
Frequent Advisor

Error Mirror DISK

All

I had a problem with the primary boot disk, now I need rebuild mirror, but I have the following problem.

[/] # lvlnboot -v
lvlnboot: Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t3d0 (10/0.3.0)
/dev/dsk/c3t4d0 (10/0.4.0)
/dev/dsk/c3t5d0 (10/0.5.0)
/dev/dsk/c4t3d0 (10/8.3.0)
/dev/dsk/c4t4d0 (10/8.4.0) -- Boot Disk
/dev/dsk/c4t5d0 (10/8.5.0)
/dev/dsk/c4t6d0 (10/8.6.0)
Boot: lvol1 on: /dev/dsk/c4t4d0
Root: lvol3 on: /dev/dsk/c4t4d0
Swap: lvol2 on: /dev/dsk/c4t4d0
Dump: lvol7 on: /dev/dsk/c3t5d0, 0

[/] # lvlnboot -R
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 8 disks for "/dev/vg00"; /etc/lvmtab has 7 disks.
Cannot proceed with backup.

[/etc] # strings lvmtab
/dev/vg00
/dev/dsk/c3t3d0
/dev/dsk/c3t4d0
/dev/dsk/c3t5d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0

[/etc] # lvdisplay -v /dev/vg00/lvol1
--- 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) 48
Current LE 12
Allocated PE 24
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/c4t4d0 12 12

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 ??? 00000 stale /dev/dsk/c4t4d0 00000 current
00001 ??? 00001 stale /dev/dsk/c4t4d0 00001 current
00002 ??? 00002 stale /dev/dsk/c4t4d0 00002 current
00003 ??? 00003 stale /dev/dsk/c4t4d0 00003 current
00004 ??? 00004 stale /dev/dsk/c4t4d0 00004 current
00005 ??? 00005 stale /dev/dsk/c4t4d0 00005 current
00006 ??? 00006 stale /dev/dsk/c4t4d0 00006 current
00007 ??? 00007 stale /dev/dsk/c4t4d0 00007 current
00008 ??? 00008 stale /dev/dsk/c4t4d0 00008 current
00009 ??? 00009 stale /dev/dsk/c4t4d0 00009 current
00010 ??? 00010 stale /dev/dsk/c4t4d0 00010 current
00011 ??? 00011 stale /dev/dsk/c4t4d0 00011 current

How could I fix this ?

Thanks..

Daniel
7 REPLIES 7
RAC_1
Honored Contributor

Re: Error Mirror DISK

lvreduce -m 0 -k /dev/vg00/lvolx
Do this for all lvols. Then move the /etc/lvmtab and do vgscan -a

Replace the disk and follow the mirror procedure.

Anil
There is no substitute to HARDWORK
Thayanidhi
Honored Contributor

Re: Error Mirror DISK

Run diskinfo /dev/rdsk/... for all the disks in vg00. I feel one of the disk where lvol1 lies have problem. If all disks returns valid value then run pvdisplay for all disks.

May be you need re-create the mirror

Regds
TT
Attitude (not aptitude) determines altitude.
Uday_S_Ankolekar
Honored Contributor

Re: Error Mirror DISK

You may have a bad disk out there. Once you replace it you can work on mirroring.

-USA..
Good Luck..
Daniel Duarte
Frequent Advisor

Re: Error Mirror DISK

[/] # lvreduce -m 0 -k /dev/vg00/lvol1
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol1".
-----------------------------------------
We have no problem with diskinfo to disks.
-----------------------------------------
Daniel Duarte
Frequent Advisor

Re: Error Mirror DISK

The disk with problem has changed, I need to rebuild the mirror.

Daniel
Thayanidhi
Honored Contributor

Re: Error Mirror DISK

The replaced disk is in same position? (same device file)?
pvdisplay of each PV will give idea of the layout.
If it's already replced try vgcfgrestore.

Regds
TT
Attitude (not aptitude) determines altitude.
Thayanidhi
Honored Contributor

Re: Error Mirror DISK

Please post "vgdisplay -v" if it's not able to query some disks you can reduce them by running "vgreduce -f"(provided if there is extend on the disk). Refer to the man pages.
Attitude (not aptitude) determines altitude.