Pros and cons of a Journaled file System


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Pros and cons of a Journaled file System
# 1  
Old 01-26-2012
Pros and cons of a Journaled file System

Hello,
Could anyone please enumerate some of the pros and cons to using a Journaled FileSystem?

---------- Post updated at 02:46 PM ---------- Previous update was at 02:45 PM ----------

I know clearly not losing data during a failed move or copy is a big pro, correct? Let's build off of that.
# 2  
Old 01-26-2012
It's not guaranteed to not lose data. No system can guarantee that when the disks are busy, the power goes out, and all batteries fail. It means that clear records describing the last few operations and the current operation in progress are kept, so if something goes pear-shaped, you'll know at least know what happened where. This makes recovery easier and faster. ext3, for instance, can recover from a hard-power-off without needing fsck when there were no operations in progress -- the journal's clean, therefore there were no operations in progress, therefore the filesystem ought to be still fine.

Downside is more overhead -- the computer has to keep updating the journals.

Last edited by Corona688; 01-26-2012 at 04:55 PM..
# 3  
Old 01-29-2012
To my surprise the Wikipedia on this subject is fairly poor (at the time of writing).
Journaling file system - Wikipedia, the free encyclopedia
As is the entry on Veritas (a popular commercial implementation).
Veritas File System - Wikipedia, the free encyclopedia


Hard discs fail. Mains power fails. Any commercial system designer must take this into account. You must always be in a position to recover from a hard disc failure or a mains power failure. Offsite backups cover you for major disaster (fire, flood etc.) but day-to-day disc failure should not interrupt processing and even a mains power failure should not corrupt your discs.

To cover this eventuality you need a Journalling Filesystem and sufficient RAID or Mirror (or preferably both) disc arrays to cover you against failure.
A half-decent Journalling Filesystem (like Veritas) tries to always maintains the visible (to software) discs in a valid state. This does not mean that you might not have to restore a backup, but that you will not have to rebuild the computer after a failure.

A single disc with Journalling Filesystem comes into the "Chocolate Teapot" category. You always need your data triplicated (or better) such that the Journalling Filesystem software can determine "WHICH IS THE BAD DISC?" and request its replacement. In the ideal world you should be able to keep running 7/24 given an infallable UPS and a 100% sound policy on replacing failed hard discs.

A recent post on this forum showed that all these precautions are worthless unless you have an alert mechanism for failed hard discs and a local process for reacting to alerts such that you immediately replace failed hard discs.

Main advantage of Journalling Filesystems:
It is possible to configure the computer to survive the common occurrence of single hard disc failure. Most importantly it is possible to configure a system to determine which is the "bad disc".

Main disadvantage of Journalling Filesystems:
Budgetary or irrational design restraints can give a wrong expectation of resilience and cause designers to be complacent about Disaster Recovery backups.


Footnote: If I have critical data on a system, the mininum disc configuration is RAID-5 Triple-mirrored. I need to be able to survive the failure of a RAID controller - not just a single disc. There are modern SANs which provide this level of hardware resilience.

Last edited by methyl; 01-29-2012 at 06:11 PM.. Reason: typos and spellin of occurrence
# 4  
Old 01-29-2012
Quote:
Originally Posted by methyl
Main advantage of Journalling Filesystems:
It is possible to configure the computer to survive the common occurrence of single hard disc failure. Most importantly it is possible to configure a system to determine which is the "bad disc".

Main disadvantage of Journalling Filesystems:
Budgetary or irrational design restraints can give a wrong expectation of resilience and cause designers to be complacent about Disaster Recovery backups.
I'm afraid you are confusing journaling file systems and RAID here.
# 5  
Old 01-30-2012
Quote:
I'm afraid you are confusing journaling file systems and RAID here.
Yep, I didn't explain it very well. The mirroring is done with a journalling filesystem which in a triple-mirrored configuration (without hardware RAID) can determine which is the bad disc and can maintain data integrity even if a disc fails. The main purpose of the journal is to record the change before commiting the change to disc.

However for mission-critical data I would also have multiple hardware RAID with hot spare(s) or a decent resilient SAN.

I still haven't explained this very well. You can implement Mirroring (a form of software RAID) without a Journalling File System but the resilience is much improved with the Journalling File System.
It's so long since I didn't use VxFS that I'd almost forgotten the repair work needed after a crash (fsck, lost+found etc.).

Last edited by methyl; 01-30-2012 at 07:34 AM..
# 6  
Old 01-30-2012
Hi.

@methyl -- so did you change your mind about the quality of article Journaling file system - Wikipedia, the free encyclopedia ?

If not, briefly how could it be improved? ... cheers, drl
# 7  
Old 01-30-2012
What is the relationship between RAID and journaling, then, if journalling is not merely a filesystem enhancement but some sort of pseudo-RAID capable of mirroring between multiple disks?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Enable journaled quota

Hi guys, I will truly appreciate your help here. How do you enable journaled quota on rhel6? Thank you so much for the assistance. (2 Replies)
Discussion started by: cjashu
2 Replies

2. Shell Programming and Scripting

Pros and cons for Text User Interface and Curses::UI

Anyone has experience or study with Text User Interface and Curses::UI using Perl? - What is the criteria to decide which method is better for a console based UI? - Which DTL (dialog tag language) is supported by these? The background is that I want to write a wrapper over some UNIX tools... (0 Replies)
Discussion started by: vikrantl
0 Replies

3. Infrastructure Monitoring

PING pros and cons

I have some questions regarding ping a. im planning to add all my servers to nagios for monitoring purposes. since nagios will do "PING" on the IP address (to check if UP or down), will there be affect on all my servers? say resource utilization, memory, etc? Will it add up or slow down the... (3 Replies)
Discussion started by: lhareigh890
3 Replies

4. Cybersecurity

Password Automation pros/cons

folks, I have a security related question, to all you. Please share your comments with me. I have a situation where i was asked to automate the password in my application, which expires every 6 months. In this case i need to generate a random password and set the password on some... (2 Replies)
Discussion started by: sudharma
2 Replies

5. AIX

AIX 5.2/5.3 - rootvg on SAN disk - pros and cons

We are considering a DR strategy of booting AIX 5.3 and 5.3 logical partitions from EMC Symmetrix SAN disks, so that we can replicate via SRDF to a recovery site. Has anyone tried configuring AIX 5.x systems to boot from SAN disk? If so, can you provide any information on the pros and cons of... (6 Replies)
Discussion started by: jjgarrot
6 Replies

6. AIX

Easy question for you pros

I have a folder with about 4000+ files. I would like to compress all these files with one command. When I type "compress *.ext" for example, I get "arg list too long". I tried the following: for k in * do compress *.ext done Still got "The parameter list is too long." How can I compress... (4 Replies)
Discussion started by: bbbngowc
4 Replies

7. AIX

NFS Pros and Cons

Can anyone provide the pros and cons of having an NFS mount on an AIX server. Or direct me to documentation that provides this information. Thanks... (1 Reply)
Discussion started by: mcateriny
1 Replies

8. UNIX for Dummies Questions & Answers

2 simple questions the linux pros will be able to get. Pleese help!

Allright the situation is that i have a dual boot set up with windows xp and red hat 9.0. the problem is that my modem and sound card dont work with linux. I found a driver, and i have to download it with xp. My question is..... How do i actually copy the file to the linux... (4 Replies)
Discussion started by: nregenwether
4 Replies

9. UNIX for Dummies Questions & Answers

Pro's and cons for Linux

Hi there thanks for checking in The I T manager over here wants us to convert 1 branch in our company from Win98 to Linux I would just like to know the types of problems that we will have once this is done. I would also like to know the following. Does Linux come with a Office package... (3 Replies)
Discussion started by: nemex
3 Replies
Login or Register to Ask a Question