mfsmetarestore(8)

NAME

mfsmetarestore - 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 the -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. The master data directory can be specified using -d ‘DIRECTORY’ option.

mfsmetarestore -g with path to metadata files, prints the 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), lizardfs(7)