Solved

fifsystem inconsitencies and ufs logging

Posted on 2004-08-04
4
333 Views
Last Modified: 2013-12-27
Hi

I know is that when ever there is abrupt shutdown of the system
there is filesystem inconsistencies.
Can you please ellaborate filesystem inconsistencies .

And also how does UFS logging help in minimissing
filesystem inconsistencies.

Regards


Sagar
0
Comment
Question by:sagar24
4 Comments
 

Accepted Solution

by:
timf04 earned 38 total points
ID: 11726920
The incosistencies are with "files" within the filesystem not having the correct  information in the inode.  Each file and directory is considered a "file" in Unix, and they all have an inode that stores information regarding the "file", such as name owner, perms, size and pointers to the data.  If you have a busy filesystem then if you don't shutdown properly the filesystem will be corrupted more times than not.

The UFS filesystem can be setup to be a journaled filesystem that will track changes and upon reboot make sure all the outstanding changes are applied.  This action reduces the possibility of corruption in the filesystem.
0
 
LVL 10

Assisted Solution

by:Nukfror
Nukfror earned 37 total points
ID: 11732835
To add a little more specific information here, UFS logging protects the file system metadata - its does not protect file contents.  So the file system makes end up coming back very quickly but you could possibly still lose data in files.

There isn't anyway to enable file content protection in UFS logging - it would heavily increase disk IO.  VxFS does have this feature but its disabled by default.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question