1834130 Members
3320 Online
110064 Solutions
New Discussion

Re: Fsck Query

 
SOLVED
Go to solution
Jim Adamson
Frequent Advisor

Fsck Query

I am have a problem fixing a hfs file system using fsck on hp-ux 10.20. When I run fsck manually on vg01/lvol1 I receive the following error messages -

CANNOT READ BLOCK 70224
CANNOT READ BLOCK 70240
CANNOT READ BLOCK 100336
Phase 5 - BAD CYLINDER GROUPS
Phase 6 - DISK MEDIA PROBLEMS ENCOUNTERED, BAD BLOCKS WERE FOUND ON THE DISK.

Once fsck is finished the file system will still not mount.

I have a full dump of this logical volume. Is there any way to fix this volume without having to delete it, then recreate it and restore the files from back up. Maybe its a disk fault?

Any help will be greatly appreciated
Jim
Oh dear
8 REPLIES 8
Rainer_1
Honored Contributor

Re: Fsck Query

examine the lvol

lvdisplay -v /dev/vg00/lvol1

and look for any stale extents.
Carol Garrett
Trusted Contributor
Solution

Re: Fsck Query


There is no way to recover it. You have bad blocks on it which fsck cannot fix. You need to delete it, re-initialise it and recover what you can.

only thing you could try is create another lvol the exact same size and dd the one you cant fsck to the new one. If the dd works your in luck, you have a copy of your data, if not, your dead. (ie. dd if=/dev/vgXX/rlvolXX of=/dev/vgXX/rvlolXY bs=64k)
Dan Hetzel
Honored Contributor

Re: Fsck Query

Hi Jim,

Good news first: you said you had a full dump of this volume
;-))

Bad news: if fsck claims that there are bad blocks, you'll never be able to mount this volume again, as fsck won't fix anything.
The only solution is a low level format of your disk.
:-((

Good luck

Dan

Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
CHRIS_ANORUO
Honored Contributor

Re: Fsck Query

I will advice that you get a new disk, if you can backup information on this do so and restore on another disk.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
federico_3
Honored Contributor

Re: Fsck Query

I think you have to delete this file system, then recreate it and restore the files from back up.

federico

Paula J Frazer-Campbell
Honored Contributor

Re: Fsck Query

Re: Fsck Query

Hi

lvol1 normally refers to the root. I hope you are running fsck manually in single user mode.

Also I hope you are using the character device file name while doing fsck.

As fsck is pointing that it has bad blocsk on the disk, I would recommend that either you change your disk or recreate the file system.

(You have the backup and the data recovery should not be a problem)

- Bye
Winners Never Give Up
Jim Adamson
Frequent Advisor

Re: Fsck Query

Thanks everyone, its going to be a new disk and restore.

Jim.
Oh dear