1834108 Members
2381 Online
110063 Solutions
New Discussion

Journaling file system

 
SOLVED
Go to solution
Piotr Kirklewski
Super Advisor

Journaling file system

Hi

In order to perform a complete integrity check of a journaled file system i should firs close all open files and directories:

How do I do that ?

Cheers
Jesus is the King
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: Journaling file system

Hi Piotr:

Unmount the filesystem.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Journaling file system

Shalom,

The command for performing the check is fsck

It must be as JRF points out requires you to umount the filesystem.

If the filesystem is called /myfilesystem

umount /myfilesystem

Note that all processes and file handles must be closed or the umount will faile.

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
Ashish Parashar
Frequent Advisor

Re: Journaling file system

Hello Piotr

You have to unmount the FS and then run

fsck [-F FSType] [-o FSspecific-options] [-s] [-V] /dev/rdsk/lvolname

then mount it.

Cheers

Ashish
A. Clay Stephenson
Acclaimed Contributor

Re: Journaling file system

It would be an extremely rare case where an already mounted filesystem would require an fsck. Before a filesystem is mounted, the filesystem metadata is checked to see if the "is_clean" flag has been set. If so, the filesystem was cleanly unmounted; as soon as the filesystem is mounted "is_clean" is cleared so that the filesystem is now dirty. In the event of a system crash, because the "is_clean" bit is noit set an automatic fsck is initiated and if it fails the filesystem is not mounted.

If you are having filesystem corruption problems after the filesystem has been mounted -- and without system crashes -- then you have very seriopus problems and you better look for patches.
If it ain't broke, I can fix that.
Piotr Kirklewski
Super Advisor

Re: Journaling file system

Cool :)
Jesus is the King