GPFS (General Parallel File System) list, config, stop, start and status

iKnow-IT banner

GPFS (General Parallel File System)

The General Parallel File System (GPFS) is a high-performance shared-disk clustered file system

The default path of GPFS commands is: /usr/lpp/mmfs/bin GPFS status

#mmgetstate -a

 

 Node number  Node name        GPFS state
------------------------------------------
       1      <node 1>         active
       2      <node 2>         active
       3      <node 3>         active
       4      <node 4>        active
       5      <node 5>         active
       6      <node 6>         active

 

#mmgetstate -a -L

 Node number  Node name       Quorum  Nodes up  Total nodes  GPFS state  Remarks   
------------------------------------------------------------------------------------
       1      <node 1>          1*        2          6       active      quorum node
       2      <node 2>          1*        2          6       active      quorum node
       3      <node 3>          1*        2          6       active     
       4      <node 4>          1*        2          6       active     
       5      <node 5>          1*        2          6       active     
       6      <node 6>          1*        2          6       active     

 

After a start, the GPFS state can be “arbitrating” after a minute the status becomes “active” like above

#mmgetstate -a -L

 Node number  Node name       Quorum  Nodes up  Total nodes  GPFS state  Remarks   
------------------------------------------------------------------------------------
       1      <node 1>          1*        0          6       arbitrating     quorum node
       2      <node 2>          1*        0          6       arbitrating     quorum node
       3      <node 3>          1*        0          6       arbitrating    
       4      <node 4>          1*        0          6       arbitrating    
       5      <node 5>          1*        0          6       arbitrating    
       6      <node 6>          1*        0          6       arbitrating    

GPFS start all nodes

#mmstartup -a

GPFS start local nodes

#mmstartup

GPFS stop all nodes

#mmshutdown -a  

GPFS stop local nodes

#mmshutdown

 

GPFS logging:

# tail -f /var/adm/ras/mmfs.log.latest

List active mounts:

# mmlsmount all
File system gpfstestlv is mounted on 6 nodes.

List Storage Pools:

# mmlsfs all -P
File system attributes for /dev/gpfstestlv:
===========================================
flag                value                    description
------------------- ------------------------ -----------------------------------
 -P                 system                   Disk storage pools in file system

List Disks in each filesystem

# mmlsfs all -d

File system attributes for /dev/gpfstestlv:
===========================================
flag                value                    description
------------------- ------------------------ -----------------------------------
 -d                 gpfs7nsd;gpfs8nsd        Disks in file system

List current NSD (Network shared disks)

# mmlsnsd -M

 Disk name    NSD volume ID      Device         Node name                Remarks
---------------------------------------------------------------------------------------
 gpfs1nsd     0A158E144FC88AFB   /dev/hdisk8    <node 1>
 gpfs1nsd     0A158E144FC88AFB   /dev/hdisk8    <node 2>
 gpfs1nsd     0A158E144FC88AFB   /dev/hdisk5    <node 3>
 ..
 gpfs2nsd     0A158E144FC88AFC   /dev/hdisk9    <node 6>
 ..

List filesystem manager node(s)

# mmlsmgr
file system      manager node
---------------- ------------------
gpfstestlv       10.21.148.30 (<node 1>)

Cluster manager node: 10.21.148.30 (<node 1>)