checkfs (где изменить параметр?)
Модератор: /dev/random
-
gpamozg
- Сообщения: 55
- ОС: directadmin
checkfs
Каждые 20 монтирований и запускается checkfs. Где изменить этот параметр т.е вместо 20 поставить 500 к примеру ?
-
trancefer
- Сообщения: 485
- Статус: $>
- ОС: Arch, Slackware, OpenBSD
Re: checkfs
man tune2fs
При условии что используется ext*.
-
pasis
- Сообщения: 22
- ОС: Gentoo Linux
Re: checkfs
ну если reiser - то reiserfstune, параметры -c и -m. аналогичный софт нужно искать из других пакетов.
-
Black
- Сообщения: 1104
- ОС: ArchLinux
Re: checkfs
В reiserfs такого нет.
Компьютер служит для решения тех проблем, которых до изобретения компьютера не существовало
-
pasis
- Сообщения: 22
- ОС: Gentoo Linux
Re: checkfs
нету чего?
Код: Выделить всё
reiserfstune - The tunning tool for the ReiserFS filesystem.
-c | --check-interval interval-in-days
Adjust the maximal time between two filesystem checks. A value of "disable" will disable the time-dependent checking. A value of "default" will restore the compile-time
default.
It is strongly recommended that either -m (mount-count dependent) or -c (time-dependent) checking be enabled to force periodic full fsck.reiserfs(8) checking of the filesys‐
tem. Failure to do so may lead to filesystem corruption (due to bad disks, cables, memory, or kernel bugs) going unnoticed, ultimately resulting in data loss or corruption.
-m | --max-mnt-count max-mount-count
Adjust the number of mounts after which the filesystem will be checked by fsck.reiserfs(8). If max-mount-count is "disable", the number of times the filesystem is mounted
will be disregarded by fsck.reiserfs(8) and the kernel. A value of "default" will restore the compile-time default.
Staggering the mount-counts at which filesystems are forcibly checked will avoid all filesystems being checked at one time when using journaled filesystems.
You should strongly consider the consequences of disabling mount-count-dependent checking entirely. Bad disk drives, cables, memory, and kernel bugs could all
corrupt a filesystem without marking the filesystem dirty or in error. If you are using journaling on your filesystem, your filesystem will never be marked dirty, so it
will not normally be checked. A filesysâ tem error detected by the kernel will still force an fsck on the next reboot, but it may already be too late to prevent data loss at
that point.
This option requires a kernel which supports incrementing the count on each mount. This feature has not been incorporated into kernel versions older than 2.6.25.
See also the -c option for time-dependent checking.Так что может отменяться, но оно есть =)
-
Black
- Сообщения: 1104
- ОС: ArchLinux
Re: checkfs
Код: Выделить всё
%> reiserfstune
reiserfstune: Usage: reiserfstune [options] device [block-count]
Options:
-j | --journal-device file current journal device
--journal-new-device file new journal device
-o | --journal-new-offset N new journal offset in blocks
-s | --journal-new-size N new journal size in blocks
-t | --trans-max-size N new journal max transaction size in blocks
--no-journal-available current journal is not available
--make-journal-standard new journal to be standard
-b | --add-badblocks file add to bad block list
-B | --badblocks file set the bad block list
-u | --uuid UUID|random set new UUID
-l | --label LABEL set new label
-f | --force force tuning, less confirmations
-V print version and exitВ мане тоже нет. Reiserfsprogs-3.6.19-r2. И сколько пользуюсь reiserfs - никогда её там не было, проверял. Так что у кого-то из нас неправильный reiserfs. Или вы про reiser4?
Компьютер служит для решения тех проблем, которых до изобретения компьютера не существовало
-
Torvinson
- Сообщения: 425
- ОС: Gentoo ~amd64
Re: checkfs
Лично я не советовал бы ставить такое большое значение. Тогда следует уменьшить время, через которое осуществляется проверка - тоже с помощью tune2fs. Жесткие диски - ненадежная штука.
-
pasis
- Сообщения: 22
- ОС: Gentoo Linux
Re: checkfs
Black писал(а): ↑30.12.2009 23:17Код: Выделить всё
%> reiserfstune reiserfstune: Usage: reiserfstune [options] device [block-count] Options: -j | --journal-device file current journal device --journal-new-device file new journal device -o | --journal-new-offset N new journal offset in blocks -s | --journal-new-size N new journal size in blocks -t | --trans-max-size N new journal max transaction size in blocks --no-journal-available current journal is not available --make-journal-standard new journal to be standard -b | --add-badblocks file add to bad block list -B | --badblocks file set the bad block list -u | --uuid UUID|random set new UUID -l | --label LABEL set new label -f | --force force tuning, less confirmations -V print version and exit
В мане тоже нет. Reiserfsprogs-3.6.19-r2. И сколько пользуюсь reiserfs - никогда её там не было, проверял. Так что у кого-то из нас неправильный reiserfs. Или вы про reiser4?
Сейчас я уже не за своей машиной, могу предоставить все точные данные с 11-го числа.
У меня reiserfsprogs последней версии из основного дерева портежей и я вам бросил выдержки им моего мана. reiserfsprogs только для 3-й версии ФС, для 4-й там пакет с другим названием. Самой ФС не пользуюсь уже очень давно - слез на ext4, но пока пользовался действительно не видел проверки после определенного кол-ва монтирований.
Вывод: и у кого же все-таки правильный reiserfsprogs? =)