LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-05-2007, 11:08 PM   #1
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
How can I tune a reiserfs partition's "max-mount-counts"


Is there a way to tune a reiserfs partition's settings such as 'max-mount-counts' or the other standard setting found in tune2fs.

tune2fs says it is for ext2/3, and reiserfstune offers no settings for the standard tunning features.


Thanks,
Jeff

http://howto.wikia.com/wiki/Main_Page
 
Old 10-06-2007, 04:57 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Due to the completely different internal structure, many of the tuning options for ext filesystems would not be appropriate (meaningless, actually) for reiser.

Some of the distros with more useful install/partitioning systems give you options at install time that are useful for tuning. All this stuff does is set up your fstab for you, which is nice, but you could also do it manually.

Assuming that you either have one of the less useful ones and/or you don't want to re-install, the more useful settings are:

noatime - turns off 'access time'. Can be a significant performance boost under some load scenarios, and can be barely measureable in others

notail - stops the fs from storing small files in the end of the tree storing file metadata. A performance reduction in most situations.

nojou - turns off journalling. You may wonder why you might want to use a journalling filesystem with journalling turned off (well, I did at first). But this would allow you to get the performance boost of the tail storage without the overhead of journalling. I would only use this for filesystems like temp or spool for which I wasn't that concerned about data security. Note that I haven't actually tried this, but I just might on a server which had lots of temporary file traffic.

(Note also that I wouldn't bother with any of the journalling filesystems for my boot partition: Plain ext2 should be fine for that, and in some circumstances, reiser causes a real performance loss here; not sure about ext3.)
 
Old 10-06-2007, 08:26 PM   #3
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Original Poster
Rep: Reputation: 15
I have read up on the both options available with reiserfstune and the options available using mount 'type reiserfs', http://www.namesys.com/mount-options.html

I also understand that the journaling systems are different and certainly some setting don't exist or are extra compared with ext3.

But the partition does get checked(fsck.reiserfs) at a certain interval. Probably default 30 mounts. I would assume that this is configurable somewhere. 'Mount' or what ever, somehow knows how many mounts there have been, and when to run a check.

Thanks.....
Jeff
http://howto.wikia.com/wiki/Main_Page


ps.

I partitioned the drives my self, years ago, when installing Gentoo. My fstab is fairly boring. Example....
/dev/hda2 / reiserfs noatime 0 1
/dev/hdd1 /mnt/tentacle reiserfs defaults 0 1
 
Old 10-07-2007, 05:21 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
My understanding is that reiserfsck is run in '--check' mode on every start up. If no errors are found, start up just proceeds normally, but if errors are found then one of the fix modes is invoked (probably --fix-fixable, but maybe --rebuild-tree). The details of what happens beyond the initial 'test partition and see if there are errors' may be distro-specific, with particular patterns of which fix mode to try first and which fix modes being used as a last resort being variable.

I really think that it is inadvisable to skip any of the testing for errors on startup, and it seems even worse to operate with known errors, so you are on your own beyond here...
 
Old 10-07-2007, 01:36 PM   #5
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Original Poster
Rep: Reputation: 15
You are correct that it is checked automatically on 'certain' errors. But see 'man tune2fs', the partitions are also checked on regular intervals, based on time between checks or number of mounts


This is the contents of the journal of a ext3 partition, my /boot, via 'dumpe2fs'

dumpe2fs 1.40.2 (12-Jul-2007)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: d28a7b79-6f63-4081-b578-7824efd2e37c
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: filetype sparse_super
Default mount options: (none)
Filesystem state: not clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 26104
Block count: 104388
Reserved block count: 5219
Free blocks: 81559
Free inodes: 26049
First block: 1
Block size: 1024
Fragment size: 1024
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 2008
Inode blocks per group: 251
Filesystem created: Fri Mar 9 17:01:38 2007
Last mount time: Sun Oct 7 12:17:20 2007
Last write time: Sun Oct 7 12:17:20 2007
Mount count: 5
Maximum mount count: 32
Last checked: Fri Oct 5 18:00:12 2007
Check interval: 15552000 (6 months)
Next check after: Wed Apr 2 18:00:12 2008
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Default directory hash: tea
Directory Hash Seed: 464bd877-8ff3-4193-8404-37b13de527dc
.............
.............
.............
and so on

as you can see the mount count is '5' out of '32', my understanding is on 32 mounts it is forced to be rechecked

Jeff
http://howto.wikia.com/wiki/Main_Page
 
Old 10-07-2007, 02:00 PM   #6
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Original Poster
Rep: Reputation: 15
I have looking into the journal of a reiserfs partition and it seems you are correct. There is no entries for max mount count


debugreiserfs -J /dev/hdd1

debugreiserfs 3.6.19 (2003 www.namesys.com)


Filesystem state: consistency is not checked after last mounting

Reiserfs super block in block 16 on 0x1641 of format 3.6 with standard journal
Count of blocks on the device: 19537040
Number of bitmaps: 597
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 2109793
Root block: 1349665
Filesystem is NOT clean
Tree height: 5
Hash function used to sort names: "r5"
Objectid map size 24, max 972
Journal parameters:
Device [0x0]

Magic [0x31cfad98]
Size 8193 blocks (including 1 for journal header) (first block 18)
Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x0:
sb_version: 2
inode generation number: 396132
UUID: e81e1865-2a7d-4530-bd55-21eaeb716e91
LABEL:
Set flags in SB:
ATTRIBUTES CLEAN
Journal header (block #8210 of /dev/hdd1):
j_last_flush_trans_id 114427
j_first_unflushed_offset 1954
j_mount_id 696
Device [0x0]
Magic [0x31cfad98]
Size 8193 blocks (including 1 for journal header) (first block 18)
Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30

So then what sets/controls the interval of error checking... My system does not crash. I reboot it every day. and about once a month my 300GB HD gets checked. ( i haven't actually timed it, but is seems constant..)


Thanks
Jeff
http://howto.wikia.com/wiki/Main_Page
 
  


Reply



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
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 09:30 PM
"fc5" mount does not recognize "smbfs" file system? bdplays Linux - Networking 6 06-28-2006 11:21 AM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM
Linux 2.6.4 Boot Failure : "hda: max request size" tmc Linux - General 2 07-07-2004 06:40 AM
BT878 "Off Tune" on composite video kbcnetau Linux - Hardware 0 01-05-2004 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:46 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
Open Source Consulting | Domain Registration