Differences

This shows you the differences between the selected revision and the current version of the page.

moosefs 2012/05/30 19:49 moosefs 2012/05/30 19:51 current
Line 1: Line 1:
====== How to set up a MooseFS chunkserver on Ubuntu ====== ====== How to set up a MooseFS chunkserver on Ubuntu ======
-  * Add the IP to the current mfsmaster in /etc/hosts:+* Add the IP to the current mfsmaster in /etc/hosts:
  sudo bash -c "echo 193.157.115.26  mfsmaster >> /etc/hosts"   sudo bash -c "echo 193.157.115.26  mfsmaster >> /etc/hosts"
-  * Download and extract the latest version of MooseFS:+* Download and extract the latest version of MooseFS:
  mkdir -p ~/download ~/utpakk   mkdir -p ~/download ~/utpakk
Line 14: Line 14:
  cd mfs-1.6.25   cd mfs-1.6.25
-  * Install development packages and build MooseFS+* Install development packages and build MooseFS
  sudo aptitude install libfuse-dev   sudo aptitude install libfuse-dev
  fakeroot dpkg-buildpackage   fakeroot dpkg-buildpackage
   
-  * Install MooseFS+* Install MooseFS
  cd ..   cd ..
  sudo dpkg -i mfs*.deb   sudo dpkg -i mfs*.deb
-  * Clean up+* Clean up
  rm mfs*.*.*.*   rm mfs*.*.*.*
  rm -r mfs-1.6.25   rm -r mfs-1.6.25
-  * Configure MooseFS+* Configure MooseFS
  sudo cp /etc/mfschunkserver.cfg.dist /etc/mfschunkserver.cfg   sudo cp /etc/mfschunkserver.cfg.dist /etc/mfschunkserver.cfg
  sudo bash -c "echo /media/disk0 > /etc/mfshdd.cfg"   sudo bash -c "echo /media/disk0 > /etc/mfshdd.cfg"
-  * Set up a 100GB disk file (or a different size, check that there is space first with ''df / -h'')+* Set up a 100GB disk file (or a different size, check that there is space first with ''df / -h'')
  sudo mkdir -p /data   sudo mkdir -p /data
Line 40: Line 40:
  sudo mkfs.ext4 /data/disk0   sudo mkfs.ext4 /data/disk0
   
-  * Answer "y"+* Answer "y"
-  * Add two lines to /etc/fstab+* Add two lines to /etc/fstab
  sudo bash -c "echo \# MooseFS chunkserver >> /etc/fstab"   sudo bash -c "echo \# MooseFS chunkserver >> /etc/fstab"
  sudo bash -c "echo /data/disk0 /media/disk0 ext4 defaults,noatime,owner 0 0 >> /etc/fstab"   sudo bash -c "echo /data/disk0 /media/disk0 ext4 defaults,noatime,owner 0 0 >> /etc/fstab"
-  * Mount /media/disk0+* Mount /media/disk0
  sudo mkdir -p /media/disk0   sudo mkdir -p /media/disk0
  sudo mount /media/disk0   sudo mount /media/disk0
-  * Change ownership to the mfs user+* Change ownership to the mfs user
  sudo chown mfs:mfs /media/disk0   sudo chown mfs:mfs /media/disk0
-  * Make the chunkserver start at boot+* Make the chunkserver start at boot
  sudo sed -i 's:=false:=true:' /etc/default/mfs-chunkserver   sudo sed -i 's:=false:=true:' /etc/default/mfs-chunkserver
-  * Start the chunkserver+* Start the chunkserver
  sudo /etc/init.d/mfs-chunkserver start   sudo /etc/init.d/mfs-chunkserver start
-  * Check that it is up and running by visiting the mfscgi website at the mfsmaster:+* Check that it is up and running by visiting the mfscgi website at the mfsmaster:
  http://kalinka.ping.uio.no:9425/mfs.cgi   http://kalinka.ping.uio.no:9425/mfs.cgi
That's it! :) That's it! :)
 
moosefs.txt · Last modified: 2012/05/30 19:51 by xyproto
 
Wiki Syntax