1833461 Members
3081 Online
110052 Solutions
New Discussion

fsck Ideas

 
SOLVED
Go to solution
brian_31
Super Advisor

fsck Ideas

I am trying to fsck a filesystem and it fails. i think i am missing something..all disk attached to this lvol are clean from ioscan

vxfs fsck: sanity check: /dev/vg01/lvol1 needs checking
mountall: cannot fsck /dev/vg01/lvol1
mountall: diagnostics from fsck
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
file system check failure, aborting ...
no = 1074912, off = 0, len = 8192
mountall: /dev/vg01/lvol1 failed in fsck
mountall: /dev/vg01/lvol1 cannot be mounted

Please help

Thanks

brian
10 REPLIES 10
brian_31
Super Advisor

Re: fsck Ideas

there are 5 disks connected to this and all are clean. lvdisplay -v reports no stale extents. diskinfo is clean and so is dd. any ideas?

Thanks

brian
A. Clay Stephenson
Acclaimed Contributor

Re: fsck Ideas

Try fsck -F vxfs -o full,nolog /dev/vg01/rlvol1.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: fsck Ideas

Hi Brian:

Try:

# fsck -F vxfs -y -o full /dev/vg01/lvol1

Regards!

...JRF...
Jov
Honored Contributor

Re: fsck Ideas

Hi Brian,

I pretty sure fsch takes raw disks.. thus isn't 'fsck dev/vg01/rlvol1'?

Apologies for the uncertainty as I dont have access to HP-UX or have done any SA for years ;)


Jov
brian_31
Super Advisor

Re: fsck Ideas



# fsck -F vxfs -o full,nolog /dev/vg01/rlvol1
vxfs fsck: file system had I/O error(s) on meta-data.
vxfs fsck: file system had I/O error(s) on user data.
pass0 - checking structural files
pass1 - checking inode sanity and blocks
vxfs fsck: fsck read failure bno = 1074912, off = 0, len = 8192
file system check failure, aborting ...
#

Any Ideas before we give up on this?

Thanks

brian
Asif Sharif
Honored Contributor
Solution

Re: fsck Ideas

Hi Brain,

"vxfs fsck: file system had I/O error(s) on meta-data" means file system corruption as the result of a hardware defect.Run this command to just verify if your disk has any bad sectors or if your disk is completely readable.

dd if= of=/dev/null bs=2048k

Regards,
Asif Sharif
Regards,
Asif Sharif
A. Clay Stephenson
Acclaimed Contributor

Re: fsck Ideas

I was pretty sure that you were toast; fsck cannot correct bad disk sectors.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: fsck Ideas

> vxfs fsck: file system had I/O error(s) on meta-data.
> vxfs fsck: file system had I/O error(s) on user data.

fsck CANNOT fix a broken disk. The word I/O error means that data needed by fsck to make sense out of the directory structures is not available or corrupt. The disk is indeed toast and will have to be replaced. If you have a lot of money and the data is very important, you can contact OnTrack for data recovery services. There are several companies that specialize in data recovery but make absolutely sure they can handle HP-UX disks.


Bill Hassell, sysadmin
A. Clay Stephenson
Acclaimed Contributor

Re: fsck Ideas

Since you did run dd and all reported well, one thing that could account for your problem is that someone reduced the size of the LVOL without first reducing the size of the filesystem --- or this is an 11.0 or earlier without the latest vxfs patches and the filesystem was reduced in size. Earlier versions of fsadm -F vxfs -b smaller_size would almost always corrupt the filesystem. Since dd worked on the LVOL, the filesystem could have block offsets that were once valid but no longer are within the boundaries of the LVOL.
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: fsck Ideas

Shalom,

fsck=file system check

Bad disks are fixed by replacing them.

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