diff --git a/docs/usage/disk.en.md b/docs/usage/disk.en.md index 6ca3fe1b..1f367770 100644 --- a/docs/usage/disk.en.md +++ b/docs/usage/disk.en.md @@ -102,8 +102,9 @@ checks the device cache status on start and tries to disable cache for SATA/SAS If it doesn't succeed it issues a warning in the system log. You can also pass other OSD options here as arguments and they'll be persisted -to the superblock: max_write_iodepth, max_write_iodepth, min_flusher_count, -max_flusher_count, inmemory_metadata, inmemory_journal, journal_sector_buffer_count, +in the superblock: cached_read_data, cached_read_meta, cached_read_journal, +inmemory_metadata, inmemory_journal, max_write_iodepth, +min_flusher_count, max_flusher_count, journal_sector_buffer_count, journal_no_same_sector_overwrites, throttle_small_writes, throttle_target_iops, throttle_target_mbs, throttle_target_parallelism, throttle_threshold_us. See [Runtime OSD Parameters](../config/osd.en.md) for details. diff --git a/docs/usage/disk.ru.md b/docs/usage/disk.ru.md index 274d4fef..7b294c4d 100644 --- a/docs/usage/disk.ru.md +++ b/docs/usage/disk.ru.md @@ -103,8 +103,9 @@ vitastor-disk - инструмент командной строки для уп это не удаётся, в системный журнал выводится предупреждение. Вы можете передать данной команде и некоторые другие опции OSD в качестве аргументов -и они тоже будут сохранены в суперблок: max_write_iodepth, max_write_iodepth, min_flusher_count, -max_flusher_count, inmemory_metadata, inmemory_journal, journal_sector_buffer_count, +и они тоже будут сохранены в суперблок: cached_read_data, cached_read_meta, +cached_read_journal, inmemory_metadata, inmemory_journal, max_write_iodepth, +min_flusher_count, max_flusher_count, journal_sector_buffer_count, journal_no_same_sector_overwrites, throttle_small_writes, throttle_target_iops, throttle_target_mbs, throttle_target_parallelism, throttle_threshold_us. Читайте об этих параметрах подробнее в разделе [Изменяемые параметры OSD](../config/osd.ru.md). diff --git a/src/disk_tool.cpp b/src/disk_tool.cpp index 5d5dcfe9..1ebcb9b0 100644 --- a/src/disk_tool.cpp +++ b/src/disk_tool.cpp @@ -74,8 +74,9 @@ static const char *help_text = " If it doesn't succeed it issues a warning in the system log.\n" " \n" " You can also pass other OSD options here as arguments and they'll be persisted\n" - " to the superblock: max_write_iodepth, max_write_iodepth, min_flusher_count,\n" - " max_flusher_count, inmemory_metadata, inmemory_journal, journal_sector_buffer_count,\n" + " in the superblock: cached_read_data, cached_read_meta, cached_read_journal,\n" + " inmemory_metadata, inmemory_journal, max_write_iodepth,\n" + " min_flusher_count, max_flusher_count, journal_sector_buffer_count,\n" " journal_no_same_sector_overwrites, throttle_small_writes, throttle_target_iops,\n" " throttle_target_mbs, throttle_target_parallelism, throttle_threshold_us.\n" "\n" diff --git a/src/disk_tool_prepare.cpp b/src/disk_tool_prepare.cpp index 3fe18818..b05e94d3 100644 --- a/src/disk_tool_prepare.cpp +++ b/src/disk_tool_prepare.cpp @@ -8,6 +8,9 @@ int disk_tool_t::prepare_one(std::map options, int is_hdd) { static const char *allow_additional_params[] = { + "cached_read_data", + "cached_read_meta", + "cached_read_journal", "max_write_iodepth", "max_write_iodepth", "min_flusher_count",