How to Build and Simply Use Parallel File Systems

Only    6seat(s) available

Experiment name: How to Build and Simply Use Parallel File Systems of IBM Spectrum Scale Build

Experiment content:
This experiment will lead you to get through the installation and configuration of IBM Spectrum Scale (formerly GPFS) parallel file system to understand the basic concept, architecture and simple use method of this system, letting you get perceptual knowledge of the distributed software-defined storage solution - Spectrum Scale.

Experiment resources:
IBM Spectrum Scale 5.0.1 software
Red Hat Enterprise Linux 7.4 (VM)

How to Build and Simply Use Parallel File Systems of IBM Spectrum Scale Build

The following content is displayed on the same screen for your experiment so that you can make any necessary reference in experiment. Start your experiment now!

  1. Unzip GPFS installation package under the root directory(Duration: 2 min)
    Basic package required for installing GPFS
    Complete the following steps 1-7 on the three testing hosts respectively, i.e. in the three command line windows on the desktop. You may do such operations simultaneously.
    The experiment script document is the same with the experiment steps below, and you may copy and paste commands directly into the putty window.
    # /root/Spectrum_Scale_Protocols_Advanced-
    During the unzipping process, press "1" and the Enter key in turn as per prompting messages to accept the license agreement.
  2. Enter the directory where the GPFS installation package is to be installed(Duration: 1 min)
    # cd /usr/lpp/mmfs/
  3. Use yum to install ksh(Duration: 1 min)
    # yum install ksh
    Press "Y" to confirm the installation.
  4. Install the basic GPFS installation package(Duration: 2 min)
    # rpm -ivh gpfs.base*.rpm gpfs.gpl*.rpm gpfs.msg*.rpm gpfs.gskit*.rpm gpfs.license*.rpm gpfs.ext*.rpm gpfs.compression*.rpm gpfs.crypto*.rpm gpfs.adv*.rpm*.rpm
  5. View the installed GPFS package(Duration: 1 min)
    # rpm -qa |grep gpfs
  6. Enter the directory /usr/lpp/mmfs/src to compile the GPFS installation package(Duration: 1 min)
    # cd /usr/lpp/mmfs/src
    # mmbuildgpl --build-package
    By now, the basic GPFS package has been installed successfully.
    GPFS configuration
    Complete the following steps 8-17 in the gpfs01 window of the first testing host.
  7. Edit a text file and write down the node name and role of GPFS(Duration: 2 min)
    [root@gpfs101 /]# echo "gpfs101:quorum-manager">>/tmp/gpfs.nodes
    [root@gpfs101 /]# echo "gpfs102:quorum-manager">>/tmp/gpfs.nodes
    [root@gpfs101 /]# echo "gpfs103 ">>/tmp/gpfs.nodes
  8. Build GPFS cluster(Duration: 1 min)
    [root@gpfs101 /]# mmcrcluster -N /tmp/gpfs.nodes -p gpfs101 -s gpfs102 -C CSC -U 2018
  9. Accept the license agreement and view the GPFS cluster information(Duration: 2 min)
    [root@gpfs101 /]# mmchlicense server --accept -N "gpfs101,gpfs102,gpfs103"
    [root@gpfs101 /]# mmlscluster
  10. Start the GPFS cluster(Duration: 2 min)
    [root@gpfs101 /]# mmstartup -a
    Wait for 2-3min until the GPFS is started completely.
  11. View the GPFS cluster state(Duration: 2 min)
    [root@gpfs101 /]# mmgetstate -aLs
    If the GPFS state of all the nodes is "active", it indicates that all are started.
    [root@gpfs101 /]# mmhealth cluster show
  12. View the disk information and edit the file containing the GPFS nsd information(Duration: 4 min)
    [root@gpfs101 /]# cat /proc/partitions
    [root@gpfs101 /]# echo "/dev/sdb:gpfs101::dataAndMetadata:-1:nsd_01">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdb:gpfs102::dataAndMetadata:-1:nsd_02">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdb:gpfs103::dataAndMetadata:-1:nsd_03">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdc:gpfs101::dataAndMetadata:-1:nsd_04">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdc:gpfs102::dataAndMetadata:-1:nsd_05">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdc:gpfs103::dataAndMetadata:-1:nsd_06">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdd:gpfs101::dataAndMetadata:-1:nsd_07">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdd:gpfs102::dataAndMetadata:-1:nsd_08">>/tmp/gpfs.nsd
    [root@gpfs101 /]# echo "/dev/sdd:gpfs103::dataAndMetadata:-1:nsd_09">>/tmp/gpfs.nsd
  13. Build nsd disk for the GPFS cluster and view nsd disk(Duration: 2 min)
    [root@gpfs101 /]# mmcrnsd -F /tmp/gpfs.nsd -v yes
    [root@gpfs101 /]# mmlsnsd -L
  14. Build the GPFS file system on the nsd disk, view its status and mount the file system(Duration: 3 min)
    [root@gpfs101 /]# mmcrfs gpfs -F /tmp/gpfs.nsd -B 512K -m 2 -r 2 -Q yes -T /gpfs
    [root@gpfs101 /]# mmlsfs gpfs
    [root@gpfs101 /]# mmmount /dev/gpfs -a
    [root@gpfs101 /]# df -h
    By now, the GPFS has been configured and the file system is available.
    Next, we will do a simple verification by accessing GPFS via the Samba protocol.
  15. Install the samba shared protocol(Duration: 2 min)
    [root@gpfs101 ~]# cd /usr/lpp/mmfs/
    [root@gpfs101 rhel7]# rpm -ivh gpfs.smb-4.6.14_gpfs_36-1.el7.x86_64.rpm
  16. samba sharing configuration(Duration: 5 min)
    [root@gpfs101 ~]# setenforce 0
    [root@gpfs101 ~]# mkdir -p /gpfs/smb
    [root@gpfs101 ~]# groupadd smb
    [root@gpfs101 ~]# useradd smb -g smb
    [root@gpfs101 ~]# tail /etc/passwd
    [root@gpfs101 ~]# echo "smb:x:1002:1002::/gpfs/smb:/bin/bash">>/etc/passwd
    [root@gpfs101 ~]# chown smb:smb /gpfs/smb
    [root@gpfs101 ~]# chmod 777 -R /gpfs/smb/
    [root@gpfs101 ~]# echo "/gpfs/smb *(insecure,rw,async,fsid=1,no_root_squash)">>/etc/exports
    [root@gpfs101 ~]# exportfs -ra
    [root@gpfs101 ~]# smbpasswd -a smb
    Set the password, e.g. password.
    [root@gpfs101 ~]# systemctl restart smb.service
    Restart samba service.
  17. Verify the access to GPFS on the bastion host(Duration: 1 min)
    Click Start -> Run in turn, type \\ and the username and password (smb/password); after successful logon, you may copy some files for verification.


This experiment needs to be performed on PC side. Please turn to the PC side for experiment.

The resources required are unavailable now, and the estimated waiting time is:

You have just experienced this experiment, and you have to wait for :

before next experiment is allowed