Operating System - HP-UX
1753818 Members
8593 Online
108805 Solutions
New Discussion юеВ

Re: I/O error while mounting, but disk is in good condition.

 
Santhosh.c
Advisor

I/O error while mounting, but disk is in good condition.

Hi LVM experts,

VG01 had 2 mirrored disks. out of that one failed and removed from the system.
Now the problem is not able to mount the filesystems in vg02.
Below is some command outputs for your reference

Note that Used PV =0 for both LV.

Please help for a solution
----------------------------------
root) uname -srm
HP-UX B.10.20 9000/820
---------------------------------------
(root) vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 1024
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 0
Free PE 1296
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 1500
Current LE 375
Allocated PE 375
Used PV 0

LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 1500
Current LE 375
Allocated PE 375
Used PV 0


--- Physical volumes ---
PV Name /dev/dsk/c0t9d0
PV Status available
Total PE 1023
Free PE 1023
--------------------------------------------
root) pvdisplay /dev/dsk/c0t9d0
--- Physical volumes ---
PV Name /dev/dsk/c0t9d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 1023
Free PE 1023
Allocated PE 0
Stale PE 0
IO Timeout (Seconds) default
-----------------------------------------

(root) ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 2 8/4.9.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t9d0 /dev/rdsk/c0t9d0
disk 3 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
(root)
-------------------------------------------

root) diskinfo /dev/rdsk/c0t9d0
SCSI describe of /dev/rdsk/c0t9d0:
vendor: SEAGATE
product id: ST34572WC
type: direct access
size: 4194157 Kbytes
bytes per sector: 512
---------------------------------------

root) dd if=/dev/rdsk/c0t9d0 of=/dev/null bs=1024k count=64
64+0 records in
64+0 records out
-------------------------------------------

Thanks in advance
Santhosh
santhosh
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: I/O error while mounting, but disk is in good condition.

There is something screwy about the vgdisplay command output. Did you notice this

>>> Total PE 1023
>>> Alloc PE 0
>>> Free PE 1296

I am not sure how you can have more free PEs than total PEs. Since all extents are free, there is no data to be lost. So, why don't you take it up from the top and recreate the vg01 ?

pvcreate blah-blah
vgcreate blah-blah
lvcreate blah-blah

if there is a problem with your hardware, you should be able to identify it at the beginning.

Also reading the 64 MB data from the beginning of a 4GB disks, does not warrant saying the disk is good. At this point, all you know is the embedded disk controller is talking to the SCSI interface as a result of the dd command you ran above
________________________________
UNIX because I majored in cryptology...
Santhosh.c
Advisor

Re: I/O error while mounting, but disk is in good condition.

cannot say all extents are free. Its showing free because used pv is 0 in lvol detail. Actually this contain data and this was part of mirror.
santhosh
bibith dathan
Advisor

Re: I/O error while mounting, but disk is in good condition.

hi

what you found for below command ?
lvdisplay -v "lvolumes"

Check LE distribution

/Bibith