Saturday, July 16, 2016

How to create a filesystem in hacmp cluster in aix?

How to create a filesystem in hacmp cluster in aix?


1. Ground work:

#lslpp -l|grep -i cluster.es.server.rte     --> To check the current version of the cluster
#clRGinfo                            --> Check if the RG is online status.
#cllsvg               --> check the cluster volume group names
#lsvg -o              --> check the active volume group.
#lsvg <volume group>    --> To check the free space of the VG where you create FS.
#lsrsrc -ls clstrmgrES     --> To check the cluster is stable on both nodes.


2. Implementation steps

#smitty hacmp
     system management (c-spoc)
         HACMP logical volume management
             shared filesystem
                Enhance journal file systems
                  Add an Enhanced journal file systems
                     (Select the VG where we need to create a filesystem)
                        (update the name of the FS (like abcdFS) and size of theFS)
                                    Press Enter

Note: The filesystem get mounted once it gets created
#lsvg -l <volume group>      --> Check and confirm the filesystem created
The filesystem will be added by hacmp on the secondary node
Check the directory on the secondary node:  #ls -ld /abcdFS

3. Validation

#df -gt /abcdFS    --> To confirm the version has been upgraded.