@DdarkX
Только начинаю путь в админстве

Moosefs, dump meta на мастере?

Доброго всем, что за окном.

Достался в наследство кластер на moosefs. Состоит из нескольких серверов и одного мастера. Пока я разбирался, то увидел, что мастер делает копию мета каждый час, но стоит например делать каждые 20 мин или еще чаще.
Перечитав интернеты, так и ненашел, как принудительно заставить его делать дамп мета.

Помогите пожалуйста.
Спасибо
  • Вопрос задан
  • 1102 просмотра
Пригласить эксперта
Ответы на вопрос 1
icCE
@icCE
youtube.com/channel/UC66N_jRyZiotlmV95QPBZfA
moosefs не использую, но беглый взгляд по документации дал понимание, что уменьшить или увеличить интервал нельзя.
Есть рекомендация в промежутки интервала делать копию метаданных любым удобным способом.

Yes, it is highly recommended to make additional backup of the metadata file. This provides a
worst case recovery option if, for some reason, the metalogger data is not useable for restoring
the master server (for example the metalogger server is also destroyed).
The master server flushes metadata kept in RAM to the metadata.mfs.back binary file every
hour on the hour (xx:00). So a good time to copy the metadata file is every hour on the half
hour (30 minutes after the dump)
. This would limit the amount of data loss to about 1.5h of
data. Backing up the file can be done using any conventional method of copying the metadata
file – cp, scp, rsync, etc
.
After restoring the system based on this backed up metadata file the most recently created files
will have been lost. Additionally files, that were appended to, would have their previous size,
86
which they had at the time of the metadata backup. Files that were deleted would exist again.
And files that were renamed or moved would be back to their previous names (and locations).
But still you would have all of data for the files created in the X past years before the crash
occurred.
In MooseFS Pro version, master followers flush metadata from RAM to the hard disk once an
hour. The leader master downloads saved metadata from followers once a day.


https://moosefs.com/Content/Downloads/moosefs-user...
www.it-recipes.com/articles/blog/122
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы