LizardFS Handbook
latest
  • Introduction to LizardFS
  • LizardFS QuickStart on Debian
  • LizardFS Administration Guide
  • LizardFS Developers Guide
  • Dummy-Technical-TOC
  • LizardFS Frequently Asked Questions
    • General Questions
    • Server related
    • Dummy-Clients
    • Dummy-Platforms
    • Networking
    • High Availability
  • LizardFS’ers CookBook
  • Glossary
  • Release Notes
  • Resources
  • Commercial Support
  • References
  • Authors
LizardFS Handbook
  • Docs »
  • LizardFS Frequently Asked Questions »
  • Server related
  • View page source

Server relatedΒΆ

How do I completely reset a cluster ?

The simplest way is to create a new metadata file. Go to your metadata directory on your current master server (look at the DATA_PATH in the mfsmaster.cfg file), than stop the master and create a new empty metadata file by executing:

echo -n "MFSM NEW" > metadata.mfs

Start the master and your cluster will be clear, all remaining chunks will be deleted.

How do I create a full backup of all my metadata (in case of recreating a master etc...)

Copy your data directory somewhere safe (default path: /var/lib/mfs).

Files you should be interested in keeping are primarily:

  • metadata.mfs - your metadata set in binary form. This file is updated hourly + on master server shutdown. You can also trigger a metadata dump with lizardfs-admin save-metadata HOST PORT, but an admin password needs to be set in the mfsmater.cfg first.
  • sessions.mfs - additional information on user sessions.
  • changelog*.mfs - changes to metadata that weren’t dumped to metadata.mfs yet.
How do I speed up/slow down the main chunk loop execution during which chunks are checked if they need replication/deletion/rebalance/etc

Adjust the following settings in the master server configuration file:

CHUNKS_LOOP_PERIOD
    Time in milliseconds between chunks loop execution (default is 1000).

CHUNKS_LOOP_MAX_CPU
    Hard limit on CPU usage by chunks loop (percentage value, default is 60).
Next Previous

© Copyright 2016,2017 by Skytechnology Sp. z o.o.. and is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License except for documents where explicitly stated differently..

Built with Sphinx using a theme provided by Read the Docs.
Other Versions v: master
Branches
3.10.6
3.11
master