|
NAMEmogadm - MogileFS admin tool SYNOPSIS$ mogadm [config options] <argument(s)> [argument options] $ mogadm .... (prints contextual help, if missing command/arguments) ... OPTIONS
ARGUMENTS
HOST OPTIONS
DEVICE OPTIONS
CLASS OPTIONS
FSCK OPTIONS
EXAMPLESHost manipulation: $ mogadm host list
$ mogadm host add foo.local
$ mogadm host add foo.local --status=down --ip=10.0.0.34 --port=7900
$ mogadm host mark foo.local down
$ mogadm host modify foo.local --port=7500
$ mogadm host delete foo.local
Device manipulation: $ mogadm device list
$ mogadm device summary
$ mogadm device summary --status=dead,down
$ mogadm device next
$ mogadm device add foo.local 16
$ mogadm device add foo.local 17 --status=alive
$ mogadm device mark foo.local 17 down
$ mogadm device modify foo.local 17 --status=alive --weight=10
$ mogadm device delete foo.local 17
Domain manipulation: $ mogadm domain list
$ mogadm domain add first.domain
$ mogadm domain delete first.domain
Class manipulation $ mogadm class list
$ mogadm class add first.domain my.class
$ mogadm class add first.domain my.class --mindevcount=3
$ mogadm class add first.domain my.class --replpolicy="MultipleHosts(3)"
$ mogadm class modify first.domain my.class --mindevcount=2
$ mogadm class modify first.domain my.class --replpolicy="MultipleHosts(3)"
$ mogadm class delete first.domain my.class
Check the status of your entire MogileFS system: $ mogadm check Check every file in the entire MogileFS system: $ mogadm fsck reset
$ mogadm fsck start
$ mogadm fsck status
$ mogadm fsck printlog
See all the things mogadm can do: $ mogadm Get help on a sub-command: $ mogadm device CONFIGURATIONIt is recommended that you create a configuration file such as "/etc/mogilefs/mogilefs.conf" (or at "~/.mogilefs.conf") to be used for configuration information. Basically all you need is something like: trackers = 10.0.0.23:7001, 10.0.0.15:7001
# if MogileFS::Admin files aren't installed in standard places:
lib = /home/mogilefs/cgi-bin
Note that these can also be specified on the command line, as per above. AUTHORBrad Fitzpatrick <brad@danga.com> Mark Smith <junior@danga.com> Leon Brocard <acme@astray.com>, open sourced permissions from Foxtons Ltd. Robin H. Johnson <robbat2@orbis-terrarum.net> BUGSPlease report any on the MogileFS mailing list: <http://groups.google.com/group/mogile/>. LICENSELicensed for use and redistribution under the same terms as Perl itself.
|