mfsmetarestore - Man Page

replay LizardFS metadata change logs or dump LizardFS metadata image

Synopsis

mfsmetarestore [-z] -m OLDMETADATAFILE -o NEWMETADATAFILE [CHANGELOGFILE...]
mfsmetarestore -m METADATAFILE
mfsmetarestore [-z] -a [-d DIRECTORY]
mfsmetarestore -g -d DIRECTORY
mfsmetarestore -v
mfsmetarestore -?

Description

When mfsmetarestore is called with both -m and -o options, it replays given CHANGELOGFILEs on OLDMETADATAFILE and writes result to NEWMETADATAFILE. Multiple change log files can be given.

mfsmetarestore with just -m METADATAFILE option dumps LizardFS metadata image file in human readable form.

mfsmetarestore called with -a option automatically performs all operations needed to merge change log files. Master data directory can be specified using -d DIRECTORY option.

mfsmetarestore -g with path to metadata files, prints latest metadata version that can be restored from disk. Prints 0 if metadata files are corrupted.

-v

print version information and exit

-?

print version information and exit

-a

autorestore mode (see above)

-d DATAPATH

master data directory (for autorestore mode)

-m METADATAFILE

specify input metadata image file

-o NEWMETADATAFILE

specify output metadata image file

-z

ignore metadata checksum inconsistency while applying changelogs

Files

metadata.mfs

Lizard File System metadata image as read by mfsmaster process

metadata.mfs.back

Lizard File System metadata image as left by killed or crashed mfsmaster process

changelog.*.mfs

Lizard File System metadata change logs

Reporting Bugs

Report bugs to <contact@lizardfs.org>.

See Also

mfsmaster(8), moosefs(7)

Referenced By

mfsmaster(8).

07/18/2024