Idenitfying current ext3 journal mode.
I got a server supplied to me with the filesystem on sda1 drive created by datacentre techs.
I created the filesystems on md0 md1 and sdc1 myself. When these are mounted in /var/log/messages I see the current journal type like these below. Jan 21 01:20:38 kernel: EXT3 FS on dm-2, internal journal Jan 21 01:20:38 kernel: EXT3-fs: mounted filesystem with ordered data mode However this is what I see for sda1 Jan 19 16:45:06 kernel: EXT3 FS on sda1, internal journal Thats it, no journal type information. tune2fs -l shows this Default mount options: (none) No help either. Ordered data mode is the default, I suspect my sda1 is using writeback mode or maybe no journaling at all, if my sda1 is using ordered then why doesnt it say so like all my other drives. Thanks in advance. |
AFAIR the mount mode is determined in "/etc/fstab". To make sure
Code:
man mount |
Have read all them before I even made the post they dont answer my question.
fstab tells me its ext3 but no other info. If the partition is formatted as ext3 with all default settings then journal is enabled in ordered mode as evident in my new drives. However I didnt format sda1 so I dont know if default settings were used, all I know is it is ext3. Fstab can overide these default settings but isnt, so all I know is that sda1 is been mounted using the settings that were defined on the format. So you have pointed me to man files that dont help. All they do is tell me how to overide the defaults (I not asking how to do this), tell me how fstab works (already know this), and how to change current settings on the device, however sda1 is my boot device so I cant unmount it and the only useable tune2fs command I can run on it is tune2fs -l /dev/sda1 which I have already done and it does 'not' tell me the journal configuration as I stated in my first post. /dev/sda1 / ext3 errors=remount-ro 0 1 |
Quote:
Code:
-o [^]mount-option[,...] |
I was asking how to "view" not "set" the current journal settings.
If I understand you right it seems there is no answer and the only thing I can do is just set a new default setting so I will do that. |
Quote:
Funny, that this should be possible at all, I mean your machine must handle the file system without defaults now?!? I have never seen the output from "tune2fs -l" the way you posted it, normally tune2fs seems rather garrulous. Is this the latest version of tune2fs? Maybe "dump2fs" or "debugfs" could help but I never tried, so there is no experience here... |
Quote:
|
Here is an excerpt form the ext3 FAQ:
Quote:
Code:
Default mount options: journal_data_writeback |
Answer to original question: dmesg
As the original question, how to read/view the settings, was not answered I am adding to this old post.
dmesg | grep ext3 or dmesg | grep sda If you want to get additional information, use 'dmesg | less' then search for your drive. Things like "ordered data" will show up nearby. |
Quote:
sudo tune2fs -l | grep features if has_journal is listed, it's there, otherwise not. |
Thanks for coming back and clarifying things. Nice to learn this even when I've long since switched to ext4. It is just good to know anyhow :).
|
All times are GMT -5. The time now is 02:04 PM. |