Operating System - HP-UX
1834926 Members
2297 Online
110071 Solutions
New Discussion

Re: cannot recover a file-system

 
Damle Yogesh
Occasional Contributor

cannot recover a file-system

All,
Here is what i am getting when I try to fsck a LV.

useo0020/ # fsck -F vxfs -o full /dev/vg01/lv_u06
vxfs fsck: file system had I/O error(s) on meta-data.
vxfs fsck: error reading device inode 8
vxfs fsck: invalid device config entry found
log replay in progress
vxfs fsck: fsck read failure bno = 104, off = 0, len = 32768
full file system check required, exiting ...
useo0020/ #

Is their a way I can recover this file-systems?
6 REPLIES 6
Fred Ruffet
Honored Contributor

Re: cannot recover a file-system

have a look on fsck man page about "-o full" option. Seems you'd better use -n first then -y.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
RAC_1
Honored Contributor

Re: cannot recover a file-system

Looks like problem with disk.
Try following
dd if=/dev/vgxx/lvolx od=/dev/null bs=4k

Check if it is returning any error or not.
Also do you have backups of this FS??

If dd fails, it most probablly a hardware(disk) problem and fsck will not help.

Let us try getting some data from lvol.

mount -F vxfs -o ro /dev/vgxx/lvolx /mount_point. If it mounts, try copying the data somewhere else. If this fails, you options would be doing a newfs on lvol and restoring a faily recent backup.

Anil
There is no substitute to HARDWORK
Damle Yogesh
Occasional Contributor

Re: cannot recover a file-system

This is how far it go me:

useo0020/ # fsck -F vxfs -o full,nolog /dev/vg01/lv_u06
vxfs fsck: file system had I/O error(s) on meta-data.
vxfs fsck: invalid device config entry found
pass0 - checking structural files
fileset 1 primarfailed validation clear? (ynq)y
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
fileset 999 primary-ilist inode 8877 unreferenced file, reconnect? (ynq)y
vxfs fsck: fsck read failure bno = 13, off = 0, len = 8192
file system check failure, aborting ...
useo0020/ #
Robert-Jan Goossens
Honored Contributor

Re: cannot recover a file-system

Hi,

I would follow RAC's advice and check your disk.

# lvdisplay -v /dev/vg01/lv_u06
will give you the disk
# dd if=/dev/rdsk/cxtydz of=/dev/null bs=1024k
check for any errors.

Best regards,
Robert-Jan
Fred Ruffet
Honored Contributor

Re: cannot recover a file-system

dd should give you the anser rapidly, wether it's a hardware problem or not... But, unfortunately, it seems to.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Sanjay_6
Honored Contributor

Re: cannot recover a file-system

Hi,

Doesn't look like this filesystem can be recovered. Make sure you have the latest vxfs patches on the system. If that doesn't solve the problem, then you can try to mount the filesystem ro and try and recover whatever data you can and then recreate the filesystem.

Hope this helps.

Regds