Saturday, November 29, 2014

GPFS on Linux

Obtain and Install GPFS RPMs from product media. (example for x86_64 Linux)

Build the Portability layer
cd /usr/lpp/mmfs/src
make Autoconfig
make World
make InstallImages
# Cut and paste version
cd /usr/lpp/mmfs/src; make Autoconfig; make World; make InstallImages

Create the cluster

mmcrcluster -N node01:quorum-manager,node02:quorum-manager -r /usr/bin/ssh -R /usr/bin/scp

Add license
mmchlicense server --accept -N node01,node02

Start cluster
mmstartup -a

Create NSD file
%nsd: device=DiskName
                  nsd=NsdName
                  servers=ServerList
                  usage={dataOnly | metadataOnly | dataAndMetadata | descOnly}
                  failureGroup=FailureGroup
                  pool=StoragePool

%nsd:
  device=/dev/sdc
  nsd=mynsd1
  usage=dataAndMetadata
%nsd:
  device=/dev/sdd
  nsd=mynsd2
  usage=dataAndMetadata

Create NSD file : 2nd option
/dev/sdb:node01::dataAndMetadata:101:DMD_NSD01:
/dev/sdb:node02::dataAndMetadata:102:DMD_NSD02:

Create NSD
mmcrnsd -F stanza.txt

List NSD

Create a filesystem using the NSD's you just created using the mmcrfs command:
mmcrfs gpfs1 -F stanza.txt -A yes -T /gpfs

Mount the file system on all nodes using the mmmount command:
mmmount gpfs1 -a

Adding node to GPFS

  1. Create a file(for e.g. client-all.txt) with client nodename listed one per line. Following is example to add four client nodes, with nodenames listed one per line.
    #cat client-all.txt
    node10
    node11
    node12
    node13

mmaddnode -N client-all.txt

  1. Run the GPFS client license using the mmchlicense command.

  1. Start GPFS on the newly added client nodes using the mmstartup command.
    mmstartup -N client-all.txt


  1. Verify the state of GPFS on all nodes in the cluster using the mmgetstate command. Ensure GPFS is in "active" state.
    mmgetstate -a
  2. You can list all of the nodes that have a GPFS file system mounted using themmlsmount command.
    mmlsmount all -L

No comments:

Post a Comment