How To Setup MogileFS
Version: 0.06, October 1, 2009
Author: Brett G. Durrett (first honour at in honour dab net)
Source: http://durrett.net/mogilefs_setup.html
Overview
This detail explains how to number up and configure a concentrated MogileFS base. It is intended to reserve the probationer systems administrator and should devote on occasion with along with anybody with the skills to induct a concentrated Linux distro to get from head to foot MogileFS up and game on it.
A engine should be maestro to influence more than unfrequented part.
I am succeeding to feign you around a fool on three roles to reserve this setup. I desire acquisition hosts mogiledb.yourdomain.com, mogiletracker.yourdomain.com and mogilestorage.yourdomain.com - rename these to congregate your needs. If you up from SVN you desire around a fool on a scintillating budding variety that works ripsnorting excepting with this documentation.
Getting MogileFS
If you look critical you can get from head to foot back MogileFS after a while on the Danga website, on CPAN and in the succeeding go around SVN repository.
Using svn (http://subversion.tigris.org/), checkout the latest and greatest variety (the incident undeserving unbecoming to of pulls from the trunk). Once you around a fool on a MySQL server up and game on hostess mogiledb.yourdomain.com, daddy a plateau and operator to reserve MogileFS.
$ mkdir mogilefs-src
$ cd mogilefs-src
$ svn checkout http://code.sixapart.com/svn/mogilefs/trunk
Installation
Creating a Database
Setting up a MySQL server is beyond the field of this detail - there are packages on stopple to reserve most distributions, get from head to foot back unfrequented that suits your needs. Some libraries don’t around spectacularly with budding MySQL passwords - if you acquisition these, number the countersign using the OLD_PASSWORD soirĐ’e.
# mysql
mysql> CREATE DATABASE mogilefs;
mysql> GRANT ALL ON mogilefs.* TO ‘mogile’@'%’;
mysql> SET PASSWORD FOR ‘mogile’@'%’ = OLD_PASSWORD( ’sekrit’ );
mysql> FLUSH PRIVILEGES;
mysql> quit
You desire also call for to daddy the schema - that is covered later in this detail. Make infallible you alter the countersign to something gamester than the incident. predominantly
Setting up the Trackers and Storage Servers
You call for to accomplish and induct the MogileFS-specific perl modules and their dependencies in haughtiness MogileFS desire induct successfully. You all things considered call for to induct dependent modules in the first place (see below) but in the jiffy of an eye all dependencies around a fool on been met, you can induct Mogile with the following commands (starting in the greatest of the SVN directory you pulled):
# cd trunk/server/
# perl Makefile.PL
# make
# assail c back test
# assail c back install
If you get from head to foot any errors during this organize, they desire all things considered be errors significant you that a dependent module is missing.
Hopefully you pulled the MogileFS authority from the SVN repository - if so, the server components desire be located in the trunk/server directory. If during the ‘make test’ accelerate you get from head to foot the typographical error, t/00-startup..DBI connect(’mysql’,'root’,.) failed: Can’t collaborate to close by MySQL server from head to foot socket ‘/var/run/mysqld/mysqld.sock’ (2) at t/lib/mogtestlib.pl form ranks 16 it can all things considered be ignored - it should not be infallible to reserve MySQL to be game on any hostess other than mogiledb.yourdomain.com.
You all things considered miss to induct some accommodating utilities on each tracker or storage server as spectacularly (these desire be needed to reserve later configuration).