Solved

fifsystem inconsitencies and ufs logging

Posted on 2004-08-04
4
335 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

740 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