Skip to content

dtrudg/vagrant-lustre-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCT - Modified to remove unwanted Ubuntu and CentOS lustre 1.6 clients, and begin work on pacemaker failover functionality.

  • 512MB per VM - 3GB required for entire environment.
  • using virtio paravirtualized network for better performance.
  • 1GB MGT/MDT and 2 * 8GB OSTs

Description

Installs and configures Lustre latest-feature-release server and clients. The configuration is a simplified setup inspired by http://www.dell.com/downloads/global/solutions/200-DELL-CAMBRIDGE-SOLUTIONS-WHITEPAPER-20072010b.pdf

            -----------------------------
            |       MGS/MDS Module      |
            |                           |
            |        -----------        |
            |MGT01 <-|         |->      |
            |MDT01 <-| Shared  |->      |
            |  |     | Storage |     |  |
            |  |     |         |     |  |
            |  |     -----------     |  |
            |  |                     |  |
            | -----------   ----------- |
            | |  MDS01  |   |  MDS02  | |
            | |  Active |   | Standby | |
            | -----------   ----------- |
            -----------------------------
                          | 
-----------               |
|         |               |
| Clients |               |                -----------------------------
|         | -------------------------------|        OSS Module         | 
-----------            NETWORK             |                           |
                                           |        -----------        |
                                           |OST01 <-|         |->      |
                                           |  |   <-| Shared  |-> OST02| 
                                           |  |     | Storage |     |  |
                                           |  |     |         |     |  |
                                           |  |     -----------     |  |
                                           |  |                     |  |
                                           | -----------   ----------- |
                                           | |  OSS01  |   |  OSS02  | |
                                           | |  Active |   |  Active | |
                                           | -----------   ----------- |
                                           -----------------------------

Server supported only on CentOS 6. Clients supported on CentOS 6/7.

For introduction to lustre see https://www.citutor.org/login.php?course=61 "Using the Lustre File System - Cyberinfrastructure Tutor" and https://wiki.hpdd.intel.com/display/PUB


Sample Usage

Assuming you have VirtualBox and Vagrant installed https://www.virtualbox.org/ https://www.vagrantup.com/downloads.html::

    $ git clone https://github.com/marcindulak/vagrant-lustre-tutorial.git
    $ cd vagrant-lustre-tutorial
    $ vagrant plugin install vagrant-reload
    $ vagrant up mds01 mds02 oss01 oss02 centos7  # this takes a couple of hours!

Test the basic funcionality of the lustre filesystem with, e.g.::

    $ vagrant ssh centos7 -c "sudo su -c 'lctl dl'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs osts'"
    $ vagrant ssh centos7 -c "sudo su -c 'dd if=/dev/zero of=/lustre/testfile bs=1M count=512'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs getstripe /lustre'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs find  /lustre -type f -print'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs df -h'"
    $ vagrant ssh centos7 -c "sudo su -c 'rm -f /lustre/testfile'"
    $ vagrant ssh centos7 -c "sudo su -c 'mkdir /lustre/stripe_2'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs setstripe -c 2 /lustre/stripe_2'"
    $ vagrant ssh centos7 -c "sudo su -c 'dd if=/dev/zero of=/lustre/stripe_2/testfile bs=1M count=512'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs getstripe /lustre/stripe_2/testfile'"
    $ vagrant ssh centos7 -c "sudo su -c 'rm -rf /lustre/stripe_2'"

Benchmark with IOR, see http://goo.gl/7AWwQ referenced at http://wiki.opensfs.org/Zero_to_Hero. Testing file-per-process (only one ior process used here) small, random IO, assuming the server has 256MB RAM::

    $ vagrant ssh centos7 -c "sudo su -c 'wget https://github.com/chaos/ior/archive/3.0.1.tar.gz -O ior-3.0.1.tar.gz'"
    $ vagrant ssh centos7 -c "sudo su -c 'tar zxf ior-3.0.1.tar.gz'"
    $ vagrant ssh centos7 -c "sudo su -c 'yum -y install automake'"
    $ vagrant ssh centos7 -c "sudo su -c 'cd ior-3.0.1; sh bootstrap'"
    $ vagrant ssh centos7 -c "sudo su -c 'yum -y install openmpi-devel'"
    $ vagrant ssh centos7 -c "sudo su -c '. /etc/profile.d/modules.sh; module load mpi; cd ior-3.0.1; ./configure'"
    $ vagrant ssh centos7 -c "sudo su -c '. /etc/profile.d/modules.sh; module load mpi; cd ior-3.0.1; make'"
    $ vagrant ssh centos7 -c "sudo su -c '. /etc/profile.d/modules.sh; module load mpi; mpirun -np 1 --bynode ior-3.0.1/src/ior -v -a POSIX -i5 -g -e -w -r 512m -b 4m -o /lustre/testfile -F -C -b 256k -t 4k -O lustreStripeCount=1 -z random'"

Other benchmarks from http://www.opensfs.org/wp-content/uploads/2013/04/LIND_LUG_2013.pdf::

    $ vagrant ssh centos7 -c "sudo su -c 'yum -y install bonnie++'"
    $ vagrant ssh centos7 -c "sudo su -c 'bonnie++ -d /lustre -r 256 -u root'"
    $ vagrant ssh centos7 -c "sudo su -c 'yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm'"
    $ vagrant ssh centos7 -c "sudo su -c 'yum -y install iozone'"
    $ vagrant ssh centos7 -c "sudo su -c 'iozone –w –M –t 1 –s 512m –r 1m -i 0 –i 1 –F /lustre -R'"
    $ vagrant ssh centos7 -c "sudo su -c 'wget http://downloads.sourceforge.net/project/mdtest/mdtest%20latest/mdtest-1.9.3/mdtest-1.9.3.tgz'"
    $ vagrant ssh centos7 -c "sudo su -c 'mkdir mdtest-1.9.3; cd mdtest-1.9.3'"
    $ vagrant ssh centos7 -c "sudo su -c 'cd mdtest-1.9.3; tar zxf ../mdtest-1.9.3.tgz'"
    $ vagrant ssh centos7 -c "sudo su -c 'sed -i \"s/OS=.*/OS=Linux/\" mdtest-1.9.3/Makefile'"
    $ vagrant ssh centos7 -c "sudo su -c 'yum -y install openmpi-devel'"
    $ vagrant ssh centos7 -c "sudo su -c '. /etc/profile.d/modules.sh; module load mpi; cd mdtest-1.9.3; MPI_CC=mpicc make'"
    $ vagrant ssh centos7 -c "sudo su -c '. /etc/profile.d/modules.sh; module load mpi; ./mdtest-1.9.3/mdtest –I 10 –i 5 –z 5 –b 2 –d /lustre'"
    $ vagrant ssh centos7 -c "sudo su -c 'dd if=/dev/zero of=/lustre/testfile bs=1M count=512 oflag=direct conv=fdatasync'"
    $ vagrant ssh centos7 -c "sudo su -c 'rm -f /lustre/testfile'"

Test other clients::

    $ vagrant up centos6
    $ vagrant ssh centos6 -c "sudo su -c 'lfs df -h'"

Test vagrant user access to the filesystem::

    $ vagrant ssh centos6 -c "sudo su -c 'mkdir /lustre/vagrant'"
    $ vagrant ssh centos6 -c "sudo su -c 'chown vagrant.vagrant /lustre/vagrant'"
    $ vagrant ssh centos6 -c "sudo su - vagrant -c 'touch /lustre/vagrant/testfile'"

Note: users' uid/gid on the client must agree with those on mds.

Test (manual) failover of an OST::

    $ vagrant ssh oss02 -c "sudo su -c 'umount /lustre/ost02'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs df -h'"  # this will hang
    $ vagrant ssh oss01 -c "sudo su -c 'echo \"/dev/sdc /lustre/ost02 lustre defaults 0 0\" >> /etc/fstab'"
    $ vagrant ssh oss01 -c "sudo su -c 'mkdir -p /lustre/ost02'"
    $ vagrant ssh oss01 -c "sudo su -c 'mount /lustre/ost02'"
    $ vagrant ssh centos7 -c "sudo su -c 'lfs df -h'"

When done, destroy the test machines with::

    $ vagrant destroy -f

Dependencies

vagrant plugin install vagrant-reload


License

BSD 2-clause


Todo

About

Test setup of the Lustre filesystem: MGS, MDS, 2 OSS + CentOS clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published