Install and configure a GPFS cluster on AIX
Install and configure a GPFS cluster on AIX
AIX
Objectives
Verify the system environment
Create a GPFS cluster
Define NSD's
Create a GPFS file system
At least 4 hdisks
# cp $HOME/.ssh/id_rsa.pub $HOME/.ssh/authorized_keys
10. From node1 copy the $HOME/.ssh/id_rsa.pub file from node2 to /tmp/id_rsa.pub
11. Add the public key from node2 to the authorized_keys file on node1
13. To test your ssh configuration ssh as root from node 1 to node1 and node1 to node2
until you are no longer prompted for a password or for addition to the known_hosts file.
# touch $HOME/.hushlogin
For this lab you should have 4 disks available for use hdiskw-hdiskz.
1. Use lspv to verify the disks exist
2. Ensure you see 4 unused disks besides the existing rootvg disks and/or other volume
groups.
Step 2: Install the GPFS software
On node1
1. Locate the GPFS software in /yourdir/gpfs/base/
# cd /yourdir/gpfs/base/
2. Run the inutoc command to create the table of contents, if not done already
# inutoc .
# cd /yourdir/gpfs/fixes/
5. Run the inutoc command to create the table of contents, if not done already
# inutoc .
7. Repeat Steps 1-7 on node2. On node1 and node2 confirm GPFS is installed using the
lslpp command
# lslpp -L gpfs.\*
the output should look similar to this
Fileset Level State Type Description
(Uninstaller)
------------------------------------------------------------
----------------
gpfs.base 4.1.0.3 A F GPFS File
Manager
gpfs.docs.data 4.1.0.1 A F GPFS Server
Manpages and Documentation
gpfs.gskit 4.1.0.3 A F GPFS GSKit
Cryptography Runtime
gpfs.msg.en_US 4.1.0.3 A F GPFS Server
Messages U.S. English
Note 1: The above example is from GPFS V4.1 Express Edition. The important part is the
base, docs and msg filesets are present.
If you have GPFS Standard Edition, you should also have the following:
gpfs.ext 4.1.0.3 A F GPFS
Extended Features
If you have GPFS Advanced Edition, in addition to gpfs.ext, you should also have
the following entry:
Note2: The gpfs.gnr fileset is used by the Power 775 HPC cluster only and there is no
need to install this fileset on any other AIX cluster. This fileset does not ship on the V4.1
media.
8. Confirm the GPFS binaries are in your $PATH using the mmlscluster command
9. # mmlscluster
10. mmlscluster: This node does not belong to a GPFS cluster.
mmlscluster: Command failed. Examine previous error
messages to determine cause.
Note: The path to the GPFS binaries is: /usr/lpp/mmfs/bin
6. Run the mmlscluster command again to see that the cluster was created
7. # mmlscluster
8.
9. ============================================================
===================
10. | Warning:
|
11. | This cluster contains nodes that do not have a proper
GPFS license |
12. | designation. This violates the terms of the GPFS
licensing agreement. |
13. | Use the mmchlicense command and assign the appropriate
GPFS licenses |
14. | to each of the nodes in the cluster. For more
information about GPFS |
15. | license designation, see the Concepts, Planning, and
Installation Guide. |
16. ============================================================
===================
17.
18. GPFS cluster information
19. ========================
20.
21. GPFS cluster name: node1.ibm.com
22. GPFS cluster id: 13882390374179224464
23. GPFS UID domain: node1.ibm.com
24. Remote shell command: /usr/bin/ssh
25. Remote file copy command: /usr/bin/scp
26.
27. GPFS cluster configuration servers:
28. -----------------------------------
29.
30. Primary server: node1.ibm.com
31. Secondary server: (none)
32.
33. Node Daemon node name IP address Admin node
name Designation
34. ------------------------------------------------------------
-----------------------------------
1 node1.lab.ibm.com 10.0.0.1
node1.ibm.com quorum-manager
35. Set the license mode for the node using the mmchlicense command. Use a server
license for this node.
36. # mmchlicense server --accept -N node1
37.
38. The following nodes will be designated as possessing GPFS
server licenses:
39. node1.ibm.com
mmchlicense: Command successfully completed
Step 4: Start GPFS and verify the status of all nodes
1. Start GPFS on all the nodes in the GPFS cluster using the mmstartup command
# mmstartup -a
# mmaddnode -N node2
2. Confirm the node was added to the cluster using the mmlscluster command
# mmlscluster
3. Use the mmchcluster command to set node2 as the secondary configuration server
# mmchcluster -s node2
4. Set the license mode for the node using the mmchlicense command. Use a server
license for this node.
# mmstartup -N node2
6. Use the mmgetstate command to verify that both nodes are in the active state
# mmgetstate -a
Step 6: Collect information about the cluster
Now we will take a moment to check a few things about the cluster. Examine the cluster
configuration using the mmlscluster command
mmcrnsd -F /yourdir/data/diskdesc.txt
Note: hdisk numbers will vary per system.
# mmcrnsd -F /yourdir/data/diskdesc.txt
1. What mmlsnsd flag do you use to see the operating system device (/dev/hdisk?)
associated with an NSD? _______
2. Verify the file system was created correctly using the mmlsfs command
# mmlsfs fs1
Will the file system automatically mounted when GPFS starts? _________________
# mmmount all -a
14. Use the mmdf command to get information on the file system.
# mmdf fs1