Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does only the metadata get journalled in ext3 or does the data get journalled too?

share|improve this question

migrated from stackoverflow.com Mar 25 '11 at 9:12

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers

up vote 2 down vote accepted

From the mount manpage:

data={journal|ordered|writeback}
Specifies the journalling mode for file data. Metadata is always journaled. To use modes other than ordered on the root filesystem, pass the mode to the kernel as boot parameter, e.g. rootflags=data=journal.
journal
All data is committed into the journal prior to being written into the main filesystem.
ordered
This is the default mode. All data is forced directly out to the main file system prior to its metadata being committed to the journal.
writeback
Data ordering is not preserved - data may be written into the main filesystem after its metadata has been committed to the journal. This is rumoured to be the highest-throughput option. It guarantees internal filesystem integrity, however it can allow old data to appear in files after a crash and journal recovery.

share|improve this answer
add comment

By default only metadata, with the data=journal mount option, both data and metadata.

share|improve this answer
add comment

You get to choose, with a mount option. By default, it is metadata only.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.