1833467 Members
3446 Online
110052 Solutions
New Discussion

Error while running fsck

 
Sawant
Occasional Advisor

Error while running fsck

Dear Experts,

We are facing file system check failure error while executing below command on /dev/vol11/lvol3

Please find the error logs below:

fileset 999 primary-ilist inode 99016 dup block
extent start 11630848 offset 39 continue? (ynq)y
fileset 999 primary-ilist inode 99016 dup/bad blocks found clear? (ynq)y
vxfs fsck: malloc failed, add more swap space
file system check failure, aborting ...

Please suggest how to mount the filesytem in this situation.
8 REPLIES 8
g3jza
Esteemed Contributor

Re: Error while running fsck

Hi,
I've found a similar thread matching your problem:

http://h30499.www3.hp.com/t5/System-Administration/Business-Copy-fsck-Problem-on-Backup-Server/m-p/2824203#M87266


---------------------------------------------
Emmanuelle
Oct 15, 2002 12:59:16 GMT

fsck -F vxfs -o full ....
malloc failed! add more swap space

swapinfo -t .... is ok

increased maxdsiz from 64mb to 128mb solved the problem

bye
Emmanuelle
---------------------------------------------

Matti_Kurkela
Honored Contributor

Re: Error while running fsck

You might be able to mount the filesystem in read-only mode without checking it first.

mount -o ro /dev/vol11/lvol3

The messages you posted indicate the filesystem contains errors: before mounting the filesystem in normal read/write mode, it is recommended (or sometimes it might be even required) to successfully complete a filesystem check first.

The error message already told you how to allow fsck to proceed: "add more swap space".

First, you probably should run "swapon -a" before re-running the filesystem check, to ensure all the configured swap areas are activated. If that is not enough, do you have unallocated disk space you could use for creating a new swap LV? Or do you have free disk space on some other filesystem you could use for temporary filesystem swap?

Run "man 1m swapon" for instructions on activating new LVs as swap, or on creating a filesystem swap area.

MK
MK
Sawant
Occasional Advisor

Re: Error while running fsck

Thanks... Although I am able to mount the file system but it is in read only mode.

If I want to use the filesystem, I need to change it to read write mode which can only be done using "mount -F vxfs -o rw /dev/vol11/lvol3 /volume". For this we need to unmount it first. Mounting command gives corrupt filesystem for which we need to give fsck command which is again giving the same error.

Kindly suggest how to make the file system in readwrite mode.
g3jza
Esteemed Contributor

Re: Error while running fsck

Did you try to increase the value of the kernel parameter maxdsiz / maxdsiz_64bit as suggested?

What OS release do you have?
Sawant
Occasional Advisor

Re: Error while running fsck

HP-UX B.11.11 U is the version.

Details for swapinfo as below. It got 4 GB of memory

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 752 -752
memory 3230 1524 1706 47%
total 11422 2276 5050 20% - 0 -
g3jza
Esteemed Contributor

Re: Error while running fsck

so try to adjust the kernel parameter as suggested. Although it's not a dynamic parameter, so you would need to reboot....
Sawant
Occasional Advisor

Re: Error while running fsck

Kindly suggest the steps/syntax for the same.
g3jza
Esteemed Contributor

Re: Error while running fsck

The easiest way for you to do this if you don't like command line is via SAM. It's a GUI/TUI . You need to go to Kernel configuration --> Configurable parameters . Modify those 2 parameters accordingly and then in the Actions tab --> Process new Kernel. It's going to reboot the system afterwards.

#man kmtune for CLI