1833682 Members
4749 Online
110062 Solutions
New Discussion

file system corruption

 
Roger Lavender
Frequent Advisor

file system corruption

I have an hfs file system on a logical volume spanning two 4Gb disk. The file system is corrupt and when I do a fsck, I get two sets of "CANNOT READ: BLK..." in phase 1. In phase 5 I get "SUMMARY INFORMATION (INODE FREE) BAD \nBAD CYLINDAR GROUPS\nFIX?". When I type "y", I get file information then "DISK MEDIA PROBLEMS ENCOUNTERED!\nBAD BLOCKS WERE FOUND ON THE DISK.\nFILE SYSTEM IS NOT CLEAN -- DISK MEDIA PROBLEMS ENCOUNTERD". As per HP Tech support a "dd" of each disk to /dev/null was performed with no errors found. HP Tech support says that the drives are not in error. How can I get my data back?
6 REPLIES 6
Steffi Jones_1
Esteemed Contributor

Re: file system corruption

Hi Roger,

if you have a backup then you could perform the following steps:

1) newfs the lvol
2) restore the data

Steffi Jones
Paula J Frazer-Campbell
Honored Contributor

Re: file system corruption

Hi Roger

If you can read any data I suggest that the first thing you do is backup what you can, then start to look at the fsck errors.

Do you have online jfs if so try a defrag it might clear the problem.


Paula
If you can spell SysAdmin then you is one - anon
Bill McNAMARA_1
Honored Contributor

Re: file system corruption

onlinejfs doesn't work with hfs!

You might want to dd the disk to another healhy disk and try to mount your fs from there... or set up lvm mirroring of the lvol to another healthy disk. Split mirror and mount the mirror split.

Later,
Bill
It works for me (tm)
Carsten Krege
Honored Contributor

Re: file system corruption

You don't have a chance to repair a filesytem where fsck gives you "Cannot read block". If the disks are really healthy, you are perhaps dealing with a defective SCSI interface (which is very hard to diagnose and can give you all sort of symptoms).
I agree with Steffi's way to handle it, but would make sure that the filesystem is on a different disk and if possible on a different bus. Bill's suggestion can also work if this is really an underlying hardware failure.

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Paula J Frazer-Campbell
Honored Contributor

Re: file system corruption

Hi Bill

Its a RTFQ for me, I missed the HFS --Ooops.

Sorry Roger I'm typing rubbish.

((:-( Paula

If you can spell SysAdmin then you is one - anon
Bill McNAMARA_1
Honored Contributor

Re: file system corruption

yea, I do that all the time too Paula, especially near the next cap! ;)
There should be a delete answer button!!!

Bill
It works for me (tm)