LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-26-2007, 05:25 PM   #1
kingpotnoodle
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Rep: Reputation: 0
Ext3 Journaling level on Debian Etch


Ok I installed Debian Etch, finally got my hardware all sorted out! I have a lot of valuable data on the server so I want the maximum/safest journaling level (I formatted with ext3) - data=journal?

Is the Debian Etch default journal, ordered or writeback? (I hope it not writeback!)

fstab currently just has 'defaults' under options.

Thanks
 
Old 06-26-2007, 07:19 PM   #2
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
Code:
cat /var/log/syslog | grep EXT3
Reveals that my Debian (Sid) uses data=ordered, it is likely that your box does too.

Fortunately it is not too hard to change.
 
Old 06-26-2007, 07:39 PM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
In /etc there is a file mkfs something that defines the default options when mkfs.ext3 is called without parameter. Probably during install the same configuration file is used... hopefully.
I don't have access to my machine at the moment, I don't know exactly the name.

Last edited by nx5000; 06-26-2007 at 07:40 PM.
 
Old 06-26-2007, 07:58 PM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
Code:
cat /etc/mke2fs.conf
[defaults]
        base_features = sparse_super,filetype,resize_inode,dir_index
        blocksize = 4096
        inode_ratio = 8192

[fs_types]
        small = {
                blocksize = 1024
                inode_ratio = 4096
        }
        floppy = {
                blocksize = 1024
        }
        news = {
                inode_ratio = 4096
        }
        largefile = {
                inode_ratio = 1048576
        }
        largefile4 = {
                inode_ratio = 4194304
        }
Would that be the one?
 
Old 06-27-2007, 08:18 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Quote:
Originally Posted by Daws
Code:
cat /etc/mke2fs.conf
[defaults]
        base_features = sparse_super,filetype,resize_inode,dir_index
        blocksize = 4096
        inode_ratio = 8192

[fs_types]
        small = {
                blocksize = 1024
                inode_ratio = 4096
        }
        floppy = {
                blocksize = 1024
        }
        news = {
                inode_ratio = 4096
        }
        largefile = {
                inode_ratio = 1048576
        }
        largefile4 = {
                inode_ratio = 4194304
        }
Would that be the one?
Yes! Exactly.
 
Old 06-27-2007, 09:47 AM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I would think tune2fs would be used to alter journal options on a existing file system.
 
Old 06-27-2007, 11:48 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Quote:
Originally Posted by farslayer
I would think tune2fs would be used to alter journal options on a existing file system.
For existing ones, I'm not sure anymore. Looking at the man page is not so clear.
I recall that -o remount can not do a lot of things so I guess you are right, tune2fs has to be used.

"man mount:"
Code:
       -o [^]mount-option[,...]
              Set or clear the indicated default mount options in the filesystem.  Default mount options can be  overridden  by  mount
              options  specified  either in /etc/fstab(5) or on the command line arguments to mount(8).  Older kernels may not support
              this feature; in particular, kernels which predate 2.4.20 will almost certainly ignore the default mount  options  field
              in the superblock.

              More  than  one  mount  option  can be cleared or set by separating features with commas.  Mount options prefixed with a
              caret character (’^’) will be cleared in the filesystem’s superblock; mount options without a prefix character  or  pre‐
              fixed with a plus character (’+’) will be added to the filesystem.

              The following mount options can be set or cleared using tune2fs:

                   debug  Enable debugging code for this filesystem.

                   bsdgroups
                          Emulate  BSD  behaviour  when creating new files: they will take the group-id of the directory in which they
                          were created.  The standard System V behaviour is the default, where newly created files take on  the  fsgid
                          of the current process, unless the directory has the setgid bit set, in which case it takes the gid from the
                          parent directory, and also gets the setgid bit set if it is a directory itself.

                   user_xattr
                          Enable user-specified extended attributes.

                   acl    Enable Posix Access Control Lists.

                   uid16  Disables 32-bit UIDs and GIDs.  This is for interoperability with older kernels which only store and  expect
                          16-bit values.

                   journal_data
                          When  the filesystem is mounted with journalling enabled, all data (not just metadata) is committed into the
                          journal prior to being written into the main filesystem.

                   journal_data_ordered
                          When the filesystem is mounted with journalling enabled, all data is forced directly out to  the  main  file
                          system prior to its metadata being committed to the journal.

                   journal_data_writeback
                          When  the filesystem is mounted with journalling enabled, data may be written into the main filesystem after
                          its metadata has been committed to the journal.  This may increase throughput, however,  it  may  allow  old
                          data to appear in files after a crash and journal recovery.
 
Old 06-27-2007, 03:12 PM   #8
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
Quote:
I recall that -o remount can not do a lot of things so I guess you are right,
You are correct, you cannot change journal mode on a remount.

To change it I would normally add "rootflags=data=journal" as a kernel boot option to the grub menu.lst.
 
Old 06-28-2007, 04:52 AM   #9
kingpotnoodle
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Original Poster
Rep: Reputation: 0
All sorted...

var/log/dmesg revealed that ordered was being used...

ran "tune2fs /dev/hdeX -o data_journal" and rebooted, checking dmesg again showsthe partitions mounted as intended.

 
Old 06-28-2007, 05:42 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
You might also be interested in this from a gentoo forum.
 
Old 06-28-2007, 09:01 AM   #11
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Thanks for the infos.

Digging in my bookmarks.. I have some good articles there:

http://www-128.ibm.com/developerworks/library/l-fs.html
to
http://www-128.ibm.com/developerwork...ry/l-fs11.html


* The benefits of journalling and ReiserFS (Part 1)
* Setting up a ReiserFS system (Part 2)
* Using the tmpfs virtual memory filesystem and bind mounts (Part 3)
* The benefits of devfs, the device management filesystem (Part 4)
* Beginning the conversion to devfs (Part 5)
* Completing the conversion to devfs using an init wrapper (Part 6)
* The benefits of the ext3 filesystem (Part 7)
* An in-depth look at ext3 and the latest kernel updates (Part 8)
* The technology behind XFS (Part 9)

I'll have to reread them..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable journaling on ext3 Andrastus Linux - Hardware 11 02-02-2010 07:08 PM
ReiserFS versus Ext3 journaling options betancoj Suse/Novell 1 02-17-2006 08:54 PM
SUSE - Compare Reiser Ext3 Journaling Options betancoj Linux - Enterprise 0 02-16-2006 09:54 PM
journaling modes in ext3 file system lucky123 Linux - Newbie 2 04-15-2005 12:03 AM
ext3 - what journaling mode do you use? Haldir Linux - Newbie 1 04-07-2002 01:34 AM


All times are GMT -5. The time now is 07:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration