Operating System - HP-UX
1834643 Members
2894 Online
110069 Solutions
New Discussion

Re: one lvol is corrupted, needs checking.

 
Ketul Joshi
Occasional Advisor

one lvol is corrupted, needs checking.

Kindly help me to resolve the follwing problem:


From last 4-5 days, following error is coming in one of my hp ux server,

mount /dev/vg04/lvol1 /mdslogs
vxfs mount: /dev/vg04/lvol1 is corrupted. needs checking

14 REPLIES 14
Sajjad Sahir
Honored Contributor

Re: one lvol is corrupted, needs checking.

run fsck command
Sajjad Sahir
Honored Contributor

Re: one lvol is corrupted, needs checking.

sorry koshi
I thought u asked file system
if u want to know check the logical volum
i am sending good pdf for u
it is mentioned step by step procedure
Robert-Jan Goossens
Honored Contributor

Re: one lvol is corrupted, needs checking.

Hi,

first try a fsck

# umount /mdslogs

# fsck -F vxfs -y -o full,nolog /dev/vg04/rlvol1

check your syslogt for errors,

If above does not repare the filesystem, try to locate the disk with vgdisplay and lvdisplay.

Test the disk.

# dd if=/dev/rdsk/cxtydz of=/dev/null bs=1024k

Regards,
Robert-Jan
Jeeshan
Honored Contributor

Re: one lvol is corrupted, needs checking.

run fsck to resolve this

umount file system
fsck /dev/vg04/lvol1

then mount the file system
a warrior never quits
Ketul Joshi
Occasional Advisor

Re: one lvol is corrupted, needs checking.

Hi Robert,
First i've run fsck command as given by you, but it doesn't work.

Then I test the disk using below command, which doesn't work.........

# dd if=/dev/rdsk/c0t14d0 of=/dev/null bs=1024k
dd read error: Invalid argument
0+0 records in
0+0 records out

do the needful........
Ketul Joshi
Occasional Advisor

Re: one lvol is corrupted, needs checking.

If i am using lvdisplay command it gives:

# lvdisplay -v /dev/vg04/lvol1 | more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t14d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg04/lvol1
VG Name /dev/vg04
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 10240
Current LE 2560
Allocated PE 2560
Stripes 2
Stripe Size (Kbytes) 4096
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t12d0 1280 1280

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c0t12d0 00000 current
00001 ??? 00000 current
00002 /dev/dsk/c0t12d0 00001 current
00003 ??? 00001 current
00004 /dev/dsk/c0t12d0 00002 current
00005 ??? 00002 current
00006 /dev/dsk/c0t12d0 00003 current
00007 ??? 00003 current
00008 /dev/dsk/c0t12d0 00004 current
00009 ??? 00004 current
00010 /dev/dsk/c0t12d0 00005 current
00011 ??? 00005 current
00012 /dev/dsk/c0t12d0 00006 current
00013 ??? 00006 current
00014 /dev/dsk/c0t12d0 00007 current
00015 ??? 00007 current
00016 /dev/dsk/c0t12d0 00008 current
00017 ??? 00008 current
00018 /dev/dsk/c0t12d0 00009 current
00019 ??? 00009 current
00020 /dev/dsk/c0t12d0 00010 current
00021 ??? 00010 current
00022 /dev/dsk/c0t12d0 00011 current
00023 ??? 00011 current
00024 /dev/dsk/c0t12d0 00012 current
00025 ??? 00012 current
00026 /dev/dsk/c0t12d0 00013 current
00027 ??? 00013 current
00028 /dev/dsk/c0t12d0 00014 current
00029 ??? 00014 current
00030 /dev/dsk/c0t12d0 00015 current
00031 ??? 00015 current
Robert-Jan Goossens
Honored Contributor

Re: one lvol is corrupted, needs checking.

you have lost a disk, you will need to replace this broken disk.

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

Regards,
Robert-Jan
HP-FMS
Frequent Advisor

Re: one lvol is corrupted, needs checking.

Hi,

First you check the HDD is claimed with kernal or not,
# ioscan -fnC disk |grep -i cXtYdZ

# pvdisplay -v /dev/dsk/cXtYdZ

For your case, as per your dd command o/p
it seems your HDD is may be failure....
check the HDD...

Hoping positive response,

Kannan.H
Jeeshan
Honored Contributor

Re: one lvol is corrupted, needs checking.

hi

what is your vgdisplay -v /dev/vg04 output?

Copy the output here.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: one lvol is corrupted, needs checking.

I already send u when good disk go bad pdf
file in there it is mentioned one by one
Mridul Shrivastava
Honored Contributor

Re: one lvol is corrupted, needs checking.

As mentioned above you have lost the disk "/dev/dsk/c0t14d0", however lvdisplay doesn't have the disk information. Could you please check if this disk is present in ioscan -fnC disk o/p?

check /etc/lvmtab as well for this vg04 and locate if this disk is part of this vg ?

If disk is healthy then it is most likely that vg information on this disk has lost. you could try restoring the vg config on the disk after deactivating the vg but this is required if there is no issue with disk and only vg info got corrupted. vgcfgrestore could be used to restore the configuration.


Time has a wonderful way of weeding out the trivial
Ketul Joshi
Occasional Advisor

Re: one lvol is corrupted, needs checking.

Hi to all,

Output of VGDISPLAY & PVDISPLAY......

# vgdisplay -v /dev/vg04
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t14d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg04
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 4342
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4339
Free PE 1
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t14d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg04/lvol1
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 2560
Allocated PE 2560
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t14d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg04/lvol2
LV Status available/syncd
LV Size (Mbytes) 24472
Current LE 6118
Allocated PE 6118
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t12d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t14d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 4340
Free PE 1
Autoswitch On
Proactive Polling On


# pvdisplay -v /dev/dsk/c0t14d0 | more
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t14d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg04".
pvdisplay: Cannot display physical volume "/dev/dsk/c0t14d0".


Ketul Joshi
Occasional Advisor

Re: one lvol is corrupted, needs checking.

Hi Mridul,

# vgcfgrestore -n /dev/vg04 /dev/rdsk/c0t14d0
vgcfgrestore: IO error on Physical Volume device /dev/rdsk/c0t14d0: #

Naveen M
Advisor

Re: one lvol is corrupted, needs checking.

dd not working indicates that you are not able to read from the disk. It is giving read error. Disk replacement is required.