Build Doc - adaley0518/Tech_Journal GitHub Wiki

Network build

  • set gateway to 10.0.5.2, DNS to 10.0.5.5
  • Will need 4 Ubuntu VM's, could use more depending on build
    • all connected to LAN
    • each chunk has 2 disks
    • client will have web server
  • Client Server: 10.0.5.90
  • Master Server: 10.0.5.91
  • Chunk 1 Server: 10.0.5.93
  • Chuck 2 Server: 10.0.5.94

Master Server

  • apt-get install lizardfs-master
  • cd /usr/share/doc/lizardfs-master/examples
  • ls (check for config files)
  • cp mfsmaster.cfg /etc/lizardfs/mfsmaster.cfg
  • cp mfsexports.cfg /etc/lizardfs/mfsexports.cfg
  • _cd ~_
  • cd /etc/lizardfs/
    • add the following mfsexports config
  • cp /var/lib/lizardfs/metadata.mfs.empty /var/lib/lizardfs/metadata.mfs
  • systemctl enable lizardfs=master
  • service lizardfs-master start

Client Server

  • apt-get install lizardfs-client
  • vi /etc/hosts
  • 10.0.5.91 master-group14
  • mkdir /mnt/lizardfs
  • mfsmount /mnt/lizardfs
  • CGI installation

Chunk Server

  • apt-get install lizardfs-chunkserver
  • cd /usr/share/doc/lizardfs-chunkserver/examples
  • ls (see cfg files)
  • cp mfshdd.cfg /etc/lizardfs/mfshhd.cfg
  • _cd ~_
  • cd /etc/lizardfs/
  • _vi mfshdd.cfg mfshhd file
  • vi mfschunkserver.cfg

chunkserver conf

  • vi /etc/hosts/
  • 10.0.5.91 master-group14
  • mkdir /mnt/disk1
  • mkdir /mnt/disk2
  • chown -R lizardfs:lizardfs /mnt/disk1
  • chown -R lizardfs:lizardfs /mnt/disk2
  • systemctl enable lizardfs-chunkserver
  • service lizardfs-chunkserver start