mogfiledebug man page

mogfiledebug -- Dump gobs of information about a FID

Synopsis

$ mogfiledebug --trackers=host --domain=foo --key=bar
$ mogfiledebug --trackers=host --fid=1234

Description

Utility for troubleshooting problemic files in a mogilefs cluster. Also useful for verification or testing new setups.

Finds as much information about a file as it can. All of the paths, any queues it might be sitting in, etc. Will then test all of the paths, MD5 hash their contents, and check the file lengths. If you see errors about a FID in mogilefsd's logs plugging it through mogfiledebug should illuminate most of the potential issues.

This is also useful information for posting to the mailing list, along with the error you had.

Options

--trackers=host1:7001,host2:7001
Use these MogileFS trackers to negotiate with.
--domain=<domain>
Set the MogileFS domain to use.
--key="<key>"
The key to inspect. Can be an arbitrary string.
--fid=<fid>
A numeric fid to inspect. Provide this as an alternative to a domain/key combination.
--paths=[print|stat|fetch]
Whether to print, stat, or fetch each path. The default is to fetch (and checksum) the contents of all paths.

Author

Dormando <dormando@rydia.net>

Bugs

None known. Could use more helpful prints, or a longer troubleshooting manual.

License

Licensed for use and redistribution under the same terms as Perl itself.

Info

2013-08-08 perl v5.24.0 User Contributed Perl Documentation