LizardFS Distributed FIle System at BBLISA - PowerPoint PPT Presentation

About This Presentation
Title:

LizardFS Distributed FIle System at BBLISA

Description:

The presentation about open source distributed file system for Big Data - LlizardFS – PowerPoint PPT presentation

Number of Views:429
Slides: 17
Provided by: LizardFS
Category:

less

Transcript and Presenter's Notes

Title: LizardFS Distributed FIle System at BBLISA


1
Is the MooseFS distributed filesystem
in your future?
  • Back Bay Large Installation System Administration
  • BBLISA 11th of September 2013
  • MIT E-51, Room 145
  • Peter aNeutrino
  • (LizardFS.org)

2
How many users over the world ?
  • The last release 1.6.27 had more than 4000 unique
    downloads during the first month after it was
    released.
  • We have tracked 7000 downloads during the last 3
    years from sourceforge.net.
  • We are Open Source, so we do not know the exact
    number of users.
  • TOP5 China, USA, Poland, France, Russia

3
What are the use cases ?
  • backup,
  • home directories,
  • virtualization (with loopback block devices),
  • media streaming,
  • microscope images,
  • computation.

4
  • Why dont people use MooseFS?
  • They dont know it exists.
  • They read Jeff Darcys blog
  • http//hekafs.org/index.php/2012/11/trying-out-moo
    sefs/
  • They dont like rare releases.
  • The community is very small.
  • It was too slow for them (they tried lustre
    before).
  • They hate
  • SPOF on metadata server,
  • limit of files 2²? 536 mln,
  • Why do people use MooseFS?
  • They do know it exists.
  • They saw only the chart on Jeff Darcys
    blog...instead of read it.
  • ...i am kidding, there are many 3rd parties blogs
    with positive results
  • http//www.tinkergeek.com/?p150
  • http//blog.opennebula.org/?p1512
  • They love
  • fast easy configuration,
  • snapshots,
  • fast replication
  • build in trash,
  • speed of meta operations,
  • it is for free.

5
Components of the filesystem
6
Communication between components of the filesystem
7
Source code
  • ssh 192.168.122.5 -lroot
  • git clone https//github.com/lizardfs/lizardfs.gi
    t
  • cd lizardfs

8
Lines of code
  • cat (find -name '.h') (find -name '.cc')
    wc -l
  • 53459
  • Please note that this file system has
  • copy on write coherent snapshots,
  • online replication of the data between nodes,
  • build in transparent trash bin,
  • CRC32 checksumming checked on both client and
    chunkserver sites,
  • proactive checking of data integrity,
  • auto-balancing of data,
  • web based UI for monitoring,
  • and was tested in production for 9 years.

9
Demo of installation (.deb)
  • We install tools for building packages
  • apt-get install dpkg-dev autotools-dev
    libfuse-dev pkg-config zlib1g-dev
  • Then we generate configuration
  • time ./autogen.sh 4 seconds
  • We build debs
  • time dpkg-buildpackage 40 seconds
  • ...and we install them
  • cd ..
  • dpkg -i mfs-common mfs-master mfs-cgi mfs-cli
    mfs-chunk
  • We need to enable daemons to start
  • sed -i -e 's/ENABLEfalse/ENABLEtrue/'
    /etc/default/mfs-

10
Demo of installation (MASTER)
  • We copy default config file from template
  • cp /etc/mfs/mfsexports.cfg.dist
    /etc/mfs/mfsexports.cfg
  • We start master daemon
  • /etc/init.d/mfs-master start
  • At this point we could start using filesystem
    just only metadata operations are available. So
    we can mkdir foodir or touch foo or ls,
  • but we cant do echo foo gt foo
  • Lets run web based UI monitoring
  • /etc/init.d/mfs-cgiserv start
  • and go to http//192.168.122.59425/mfs.cgi

11
Demo of installation (mountpoint)
  • We will play with only metadata filesystem,
    mounting it here
  • mkdir /mnt/lizardfs
  • echo 192.168.122.5 mfsmaster gtgt
    /etc/hostsmfsmount -H mfsmaster /mnt/lizardfs
  • Now we create some metadata
  • cd /mnt/lizardfs
  • touch foo
  • mkdir foodir
  • ls
  • stat

12
Demo of installation (chunkserver)
  • We need to have a directory (or mounted disk)
    where we will keep chunks
  • mkdir -p /mnt/hd01 chown mfsmfs -R
    /mnt/hd01echo /mnt/hd01 gtgt /etc/mfs/mfshdd.cfg
  • By default chunkserver daemon will try to connect
    to DNS name mfsmaster
  • /etc/init.d/mfs-chunkserver start
  • Now we are able to create read files with
    content
  • cd /mnt/lizardfs
  • echo foo gtgt foo.txt
  • cat foo.txt

13
copy paste gtgt bblisa_lizardfs.sh
run as root on your test server
time bblisa_lizardfs.sh real 0m59.240suser 0m32.
840ssys 0m2.684s
! /bin/bashMY_IP_ADDRESS192.168.122.5 must be
NOT localhost NOR 127...if ip a grep "inet
MY_IP_ADDRESS/" egrep -v '127(.0-255)3' the
n echo ip ok else echo ERROR wrong ip address.
Please setup MY_IP_ADDRESS exit 1 fi git clone
https//github.com/lizardfs/lizardfs.gitcd
lizardfsWe install tools for building
packagesapt-get install dpkg-dev autotools-dev
libfuse-dev pkg-config zlib1g-devThen we
generate configuration./autogen.sh 4
secondsWe build debsdpkg-buildpackage 40
seconds...and we install themcd ..dpkg -i
mfs-common mfs-master mfs-cgi mfs-cli
mfs-chunkWe need to enable daemons to
startsed -i -e 's/ENABLEfalse/ENABLEtrue/'
/etc/default/mfs-We copy default config file
from templatecp /etc/mfs/mfsexports.cfg.dist
/etc/mfs/mfsexports.cfgWe start master
daemon/etc/init.d/mfs-master startecho Waiting
10 seconds for master server first start...sleep
10At this point we could start using
filesystem just only metadata operations are
available. So we can mkdir foodir or touch foo
or ls, but we cant do echo foo gt fooLets
run monitoring/etc/init.d/mfs-cgiserv start
and go to http//localhost9425/mfs.cgiWe
will play with only metadata filesystem, mounting
it heremkdir /mnt/lizardfsecho MY_IP_ADDRESS
mfsmaster gtgt /etc/hostsmfsmount -H mfsmaster
/mnt/lizardfsNow we create some metadatacd
/mnt/lizardfstouch foo mkdir foodir ls stat
We need to have a directory (or mounted disk)
where we will keep chunksmkdir -p /mnt/hd01
chown mfsmfs -R /mnt/hd01echo /mnt/hd01 gtgt
/etc/mfs/mfshdd.cfgBy default chunkserver daemon
will try to connect to DNS name
mfsmaster/etc/init.d/mfs-chunkserver startNow
we are able to create read files with
contentcd /mnt/lizardfsecho foo gtgt foo.txt
cat foo.txt
14
Why LizardFS ?
  • Lets go to http//lizardfs.org/
  • and discuss it.

15
How make LizardFS the file system of your dreams
???
  • DISCUSSION

16
THANK YOU SO MUCH )
  • and please feel free to contact me
  • http//www.linkedin.com/in/aneutrino
  • aneutrino_at_lizardfs.org
  • Call me if you are in Warsaw
  • 48 602 302 132
  • We will go for a beer or/and
  • talk next to the whiteboard!
Write a Comment
User Comments (0)
About PowerShow.com