📄 reiserfstune.8
字号:
.\" -*- nroff -*-.\" Copyright 1996-2004 Hans Reiser..\" .TH REISERFSTUNE 8 "February 2004" "Reiserfsprogs-3.6.19".SH NAMEreiserfstune \- The tunning tool for the ReiserFS filesystem..SH SYNOPSIS.B reiserfstune[ \fB-f\fR ][ \fB-j\fR | \fB--journal-device\fR \fIFILE\fR ][ \fB--no-journal-available\fR ][ \fB--journal-new-device\fR \fIFILE\fR ] [ \fB--make-journal-standard\fR ][ \fB-s\fR | \fB--journal-new-size\fR \fIN\fR ][ \fB-o\fR | \fB--journal-new-offset\fR \fIN\fR ][ \fB-t\fR | \fB--max-transaction-size\fR \fIN\fR ][ \fB-b\fR | \fB--add-badblocks\fR \fIfile\fR ][ \fB-B\fR | \fB--badblocks\fR \fIfile\fR ][ \fB-u\fR | \fB--uuid \fIUUID\fR ][ \fB-l\fR | \fB--label \fILABEL\fR ].I device.SH DESCRIPTION\fBreiserfstune\fR is used for tuning the ReiserFS. It can change two journal parameters (the journal size and the maximum transaction size), and it can move the journal's location to a new specified block device. (The old ReiserFS's journal may be kept unused, or discarded at the user's option.) Besides that\fBreiserfstune\fR can store the bad block list to the ReiserFS and set UUIDand LABEL.Note: At the time of writing the relocated journal was implemented for a special release of ReiserFS, and was not expected to be put into the mainstream kerneluntil approximately Linux 2.5. This means that if you have the stock kernel you must apply a special patch. Without this patch the kernel will refuse to mount the newly modified file system. We will charge $25 to explain this to you if you ask us why it doesn't work..PPPerhaps the most interesting application of this code is to put thejournal on a solid state disk..TP\fIdeviceis the special file corresponding to the newly specified block device (e.g/dev/hdXX for IDE disk partition or /dev/sdXX for the SCSI disk partition)..SH OPTIONS.TP\fB-j\fR | \fB--journal-device\fR \fIFILE\fIFILE\fR is the file name of the block device the file system hasthe current journal (the one prior to running reiserfstune) on. This option is required when the journal isalready on a separate device from the main data device (although itcan be avoided with \fB--no-journal-available\fR). If you don'tspecify journal device by this option, reiserfstune suppose thatjournal is on main device..TP\fB--no-journal-availableallows \fBreiserfstune\fR to continue when the current journal's blockdevice is no longer available. This might happen if a disk goes badand you remove it (and run fsck)..TP\fB--journal-new-device \fIFILE\fIFILE\fR is the file name of the block device which will contain thenew journal for the file system. If you don't specify this,reiserfstune supposes that journal device remains the same. .TP \fB \-s\fR | \fB\--journal-new-size \fIN\fIN\fR is the size parameter for the new journal. When journal is tobe on a separate device - its size defaults to number of blocks thatdevice has. When journal is to be on the same device as the filesytem - its size defaultsto amount of blocks allocated for journal by \fImkreiserfs\fR when itcreated the filesystem. Minimum is 513 forboth cases..TP\fB \-o\fR | \fB\--journal-new-offset \fIN\fIN\fR is an offset in blocks where journal will starts from when journal is tobe on a separate device. Default is 0. Has no effect when journal isto be on the same device as the filesystem. Most users have no needto use this feature. It can be used when you want the journals frommultiple filesystems to reside on the same device, and you don't wantto or cannot partition that device..TP\fB \-t\fR | \fB\--maximal-transaction-size \fIN\fIN\fR is the maximum transaction size parameter for the newjournal. The default, and max possible, value is 1024 blocks. Itshould be less than half the size of the journal. If specifedincorrectly, it will be adjusted..TP\fB \-b\fR | \fB\--add-badblocks\fR \fIfile\fR\fIFile\fR is the file name of the file that contains the list of blocks to be marked as bad on the fs. The list is added to the fs list of bad blocks..TP\fB \-B\fR | \fB\--badblocks\fR \fIfile\fR\fIFile\fR is the file name of the file that contains the list of blocks to be marked as bad on the fs. The bad block list on the fs is cleared before the list specified in the \fIFile\fR is added to the fs..TP\fB\-f\fR | \fB--force\fR Normally \fBreiserfstune\fR will refuse to change a journal of afile system that was created before this journal relocation code. Thisis because if you change the journal, you cannot go back (without specialoption \fB--make-journal-standard\fR) to an old kernel that lacks this feature and be able to use your filesytem. This option forces it to do that. Specified morethan once it allows to avoid asking for confirmation..TP\fB--make-journal-standard\fR As it was mentioned above, if your file system has non-standard journal, it can not be mounted on the kernel without journal relocationcode. The thing can be changed, the only condition is that there is reservedarea on main device of the standard journal size 8193 blocks (it will be so forinstance if you convert standard journal to non-standard). Just specify this option when you relocate journal back, or without relocationif you already have it on main device..TP\fB-u\fR | \fB--uuid \fIUUID\fRSet the universally unique identifier (\fB UUID \fR) of the filesystem to\fIUUID\fR (see also \fBuuidgen(8)\fR). The format of the UUID is aseries of hex digits separated by hypthens, like this:"c1b9d5a2-f162-11cf-9ece-0020afc76f16"..TP\fB-l\fR | \fB--label \fILABEL\fRSet the volume label of the filesystem. \fILABEL\fR can be at most 16characters long; if it is longer than 16 characters, reiserfstune will truncate it..SH POSSIBLE SCENARIOS OF USING REISERFSTUNE:1. You have ReiserFS on /dev/hda1, and you wish to haveit working with its journal on the device /dev/journal.nf.IPboot kernel patched with special "relocatable journal support" patchreiserfstune /dev/hda1 --journal-new-device /dev/journal -fmount /dev/hda1 and use.You would like to change max transaction size to 512 blocksreiserfstune -t 512 /dev/hda1You would like to use your file system on another kernel that doesn't contain relocatable journal support.umount /dev/hda1reiserfstune /dev/hda1 -j /dev/journal --journal-new-device /dev/hda1 --make-journal-standardmount /dev/hda1 and use..LP2. You would like to have ReiserFS on /dev/hda1 and to be able toswitch between different journals including journal located on thedevice containing the filesystem..nf.IPboot kernel patched with special "relocatable journal support" patchmkreiserfs /dev/hda1you got solid state disk (perhaps /dev/sda, they typically look like scsi disks)reiserfstune --journal-new-device /dev/sda1 -f /dev/hda1Your scsi device dies, it is three in the morning, you have an extra IDE devicelying aroundreiserfsck --no-journal-available /dev/hda1orreiserfsck --rebuild-tree --no-journal-available /dev/hda1reiserfstune --no-journal-available --journal-new-device /dev/hda1 /dev/hda1using /dev/hda1 under patched kernel.SH AUTHORThis version of \fBreiserfstune\fR has been written by VladimirDemidov <vova@namesys.com> and Edward Shishkin <edward@namesys.com>..SH BUGSPlease report bugs to the ReiserFS developers <reiserfs-dev@namesys.com>, providingas much information as possible--your hardware, kernel, patches, settings, all printedmessages; check the syslog file for any related information..SH SEE ALSO.BR reiserfsck (8),.BR debugreiserfs (8),.BR mkreiserfs (8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -