Showing posts with label INSTALLATION. Show all posts
Showing posts with label INSTALLATION. Show all posts

Saturday, April 7, 2018

How to migrate GPFS from 3.5 to 4.2 in AIX?

How to Migrate GPFS version from 3.5 to 4.2 in AIX?


How to upgrade GPFS version from 3.5 to 4.2 in AIX?


The GPFS is a high-performance clustered file system that can be deployed in shared-disk. GPFS provides concurrent high-speed file access to the applications executing on multiple nodes of clusters which can be used with AIX5L, Linux, and Windows platforms.

Note: We didn't see anywhere for the specific step by step document for upgrading the gpfs from 3.5 to 4.2. Myself and my Boss spent much time to prepare these steps for upgrade the gpfs. Hope it is helpful.


1.   Ground work:

mmgetstate                  To displays the state of the GPFS daemon on one or more nodes
lslpp -l gpfs                  To list the current gpfs version details
mmdf                           To check the gpfs file system size
mmlsfs all                      To check all GPFS file systems
mmlscluster                 To displays GPFS cluster configuration information
mmlsconfig                   To displays the configuration data for a GPFS cluster
mmlsmgr                      To displays the file system manager node
mmlsmgr  -c                 To view the GPFS manager
mmlsnsd                       To list NSD disks
mmlsnsd -M                  To view the detailed NSD disks
mmlsdisk -d                  To view the disk information
mmlslicense                 To view the GPFS license
mmlsmgr                      To check the cluster Manager and File Manager
lspv                              To get the disk details of the server.
installp -s                     To check any filesets are in applied state
installp -c all                To commit all the filesets if anything is on the applied state.
prtconf                         To get the basic information about the server.


2.   Stop GPFS cluster and uninstall the current version

Stop all user activity in the file systems.
#mmexportfs all –o /var/tmp/exporDataFile     To export the current cluster configuration
#mmshutdown –a                                  To Stop GPFS on all nodes in the cluster.
#lslpp –l|grep –I gpfs                             To identify the current level of the gpfs 3.5
#Installp –u gpfs                                    To uninstall the gpfs on all the nodes.
#lslpp –l|grep –I gpfs                             To confirm the gpfs is completely uninstall on servers.
#shutdown –Fr                                     For each node, initiate the reboot of the servers.


3.   Upgrade to GPFS 4.2 (Spectrum Scale)

#lslpp –l|grep –I gpfs               To identify the current level of the gpfs
#cd /var/tmp/gpfs_4.2             To go the particular dir where we keep the 4.2 filesets.
#smitty update_all                   Do the preview first and commit next, perform same on all the nodes.
#lslpp –l|grep –I gpfs                To confirm the gpfs 4.2 has been installed on all the nodes.
#mmgetstate –a                       To check the gpfs cluster status after 4.2 installation
#mmstartup –a                         To start the gpfs cluster
#mmgetstate –a                       To check the gpfs cluster status after 4.2 installation
#df –gt  /data/test                    To confirm the gpfs filesytem mounted automatically (if not, follow the below)
#mmimportfs all –I /var/tmp/exportDataFile   To import the gpfs filesytem configuration details.
#mmmount /dev/testlv –a         To manually mount the gpfs filesytem
#df –gt /data/test                     To confirm the gpfs filesytem mounted all the nodes.
#shutdown –Fr                         To reboot all the nodes.


4.   Validation

#mmgetstate –a                         To confirm the cluster service is active on all the nodes.
#df –gt/data/test                       To confirm the cluster filesystem mounted on all the nodes.
#lslpp –l |grep –I gpfs              To confirm the latest level of gpfs is in commited state.
Ask application team to peform the technical checks out of the servers and confirm all is OK at their end.


5. Post migration tasks to the new level of spectrum scale

#mmlscconfig                                              At the moment, the filesytem configuration still shows as 3.5
#mmchconfig release=LATEST                     To migrate the cluster configuration data and enable new functionality throughout the cluster
#mmchconfig release=LATEST --accept-empty-cipherlist-security  To execute this command only if the above mmchconfig command failed.
#mmlslicense -L                                          To get GPFS license is for each of the nodes in the cluster
#mmchlicense server -N NodeList               To assign a GPFS client license to the nodes that require it
#mmchfs <FileSystem> -V compat              To enable backward-compatible format changes
(or)
#mmchfs FileSystem -V full                        To migrate all file systems to the latest metadata format changes

Note:
If you issue mmchfs -V compat, only changes that are backward compatible with GPFS 3.5 will be enabled. Nodes in remote clusters that are running GPFS 3.5 will still be able to mount the file system.

If you issue mmchfs -V full, all new functions that require different on-disk data structures will be enabled. Nodes in remote clusters running an older GPFS version will no longer be able to mount the file system


6. Backout steps for the gpfs from 4.2 to 3.5

#mmexportfs all –o /tmp/exporDataFile  To export the current cluster configuration
#lslpp –l|grep –I gpfs                           To check the current level of the gpfs
Installp –u gpfs                                    To uninstall the current 4.2 gpfs on all the nodes.
#lslpp –l|grep –I gpfs                           To confirm the gpfs 4.2 is completely uninstall on servers.
#shutdown –Fr                                    To reboot all the nodes.
#cd /var/tmp/gpfs_3.5                        To go the particular dir where we keep the 3.5 filesets.
#smitty update_all                              Do the preview first and commit next, perform the same on all the nodes.
#lslpp –l|grep –I gpfs                             To confirm the gpfs 3.5 has been installed on all the nodes.
#mmgetstate –a                                    To check the gpfs cluster status after 3.5 installation
#mmstartup –a                                      To start the gpfs cluster
#mmgetstate –a                                    To check the gpfs cluster status after 3.5 installation
#df –gt  /data/test                                To confirm the gpfs filesytem mounted automatically (if not, follow the below)
#mmimportfs all –I /tmp/exportDataFile   To import the gpfs filesytem configuration details.
#mmmount /dev/testlv –a                     To manually mount the gpfs filesytem
#df –gt /data/test                                  To confirm the gpfs filesytem mounted all the nodes.
#shutdown –Fr                                      To reboot all the nodes.
Ask application team to perform the technical checks out and get confirmation that all is OK 

Friday, February 3, 2017

How to check the apar installed in aix?

How to check the particular apar is installed in aix?


Many times we are in the position to check or install the specific apar in aix.

Below is the way to check whether the particular apar is already installed or not.

Example: APAR IZ97457


syntax: #instfix -ik <apar_name>

#instfix -ik IZ97457

All filesets for IZ97457 were found.

The above output shows that the APAR IZ97457 is already installed on the server.



Suppose if the apar is not installed on the server then we have to get the apar first and then installed it.

To list of fixes/apar that are on a directory or CD, then we can use the following:
# instfix -Td <directory>     (or)   # instfix -Td /dev/cd0

once you find out then installed the fix with the below command
# instfix -k <fix> -d <directory>
# instfix -k IZ97457 -d /export/filesets      (or) use # smitty update_by_fix





Tuesday, January 19, 2016

How to install Instfix,APAR,PTF,TL in aix?

How to install Instfix,APAR,PTF,TL in aix?


Instfix/APAR

# instfix -k <fix> -d <directory>


To install filesets

#installp -acgx -d <directory>
or
#smitty installp


To install PTF

#smitty install_all


INPUT device / directory for software               <PTF dir> 
  SOFTWARE to install                                [ all ] 
  PREVIEW only? (install operation will NOT occur)    no 
  COMMIT software updates?                            yes 
  SAVE replaced files?                                no 
  AUTOMATICALLY install requisite software?           yes 
  EXTEND file systems if space needed?                yes 
  OVERWRITE same or newer versions?                   no 
  VERIFY install and check file sizes?                no 
  DETAILED output?                                    no 
  Process multiple volumes?                           yes 
  ACCEPT new license agreements?                      no 
  Preview new LICENSE agreements?                     no 


To upgrade Technology level

#smitty update_all



If you find the above content useful, Please leave your comments and reactions below.

How to deal with Instfix in aix?

How to deal with Instfix in aix?


Check the current technology level
instfix -i | grep ML
Determine the missing filesets
instfix -icqk <ML LEVEL> | grep :-: 
To check particular APAR installed
instfix -ik <fix>
To check more info about particular APAR installed
instfix -aik <fix>
To see a list of fix on a directory
instfix -Td <directory path>
To see a list of filesets included in a APAR
instfix -ivk <fix>
To find out the APAR through filesets
instfix –aiv | grep –p <fileset>:<level>
To install a fix from a directory
instfix -k <fix> -d <directory>
To install a fix using smitty
smitty update_by_fix


if you happy with the above content, please leave your comments / reactions below.


Wednesday, August 5, 2015

How to install filesets/software in aix?

How to install filesets/software in aix?



To install the fileset from the cd:
First create the directory (mount point)   #mkdir cdmnt
Mount the cdrom    #mount –v cdrfs –o ro /dev/cd0 /cdmnt
Then go to /cdmnt folder  #cd cdmnt
To find the file set using command:  #installp –Ld /dev/cd0|grep bos.perf*
To install the fileset using #installp –agxpd /dev/cd0   (for preview)
To install the fileset using #installp –agxd /dev/cd0    (for installation)
To install the fileset in commit : #installp –acgXd /dev/cd0   filesetname  (important)

To install the filesets with options:
#installp –agxpd /dev/cd0   (to install)
 #installp –rg filesetname (to reject the applied fileset)
#installp –cgx filesetname (to commit the applied fileset (permanent installation)
#installp –ugp filesetname ( to remove the fileset)
#installp -s         --> check if any os filesets in applied mode
#installp –C (to clear the broken fileset)

Flags:
a –  Applied the fileset, 
r-    Reject the fileset,   
c-   Commit the fileset,  
C - To clear the broken filesets
f -  Files available
w-  Find which fileset,
h-  History,
u-  Remove.


lppchk and lslpp functionality

#lppchk –v filesetname ( to check the consistency of the fileset.)(verify the installed fileset)
#lppchk –vm3      --> check currently installed filesets are consistent
#lslpp –f filesetname (what are the files available in fileset)
#lslpp –w /usr/bin/ls (To find the file, which is installed from which fileset)
#lslpp –h filesetname ( to find the history of the fileset and findout the level of the OS)


If you happy with the above topic, please leave your reactions and comments.

Tuesday, January 22, 2013

How to install openssl and openssh in AIX?

How to install openssl and openssh in AIX?

Here are the instructions to download and install openssh 5.0 

Please follow the steps below to remove current version of openssh and install the 5.0 version  ( make sure connected through telnet or on console): 

1. Make a copy current /etc/ssh directory 
# cp -r /etc/ssh /etc/ssh.backup 

2. Remove current version of openssh 
# installp -u openssh.* 

3. Remove all existing versions of openssl using smitty(installp as above)or even rpm 

# rpm -qa | grep -i ssl 
# rpm -e <openssl label> 


OR 

# installp -u openssl* 

4. Download latest version of openssl and openssh 

Please download and install latest OpenSSL 61ssl98m.tar.Z from: 

https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=aixbp 

The latest OpenSSH openssh_5.4p1.tar.Z from: 
http://sourceforge.net/projects/openssh-aix/ 

5. Install openssl and openssh 
Both openssl and openssh are installp images. 

Use smitty to install openssl first and then openssh. 

Here are the detailed installation instructions: 

a) Inside the directory where the installp images reside, run 'inutoc' to create table of content file 
# inutoc . 

b) Use this fast path to access smitty install menu: 
# smitty install_selectable_all 

- Enter the directory where the files reside and hit Return key 
- At the next screen, you are prompted for "software to install" 
-- Hit F4 key to display a list of files to install 
-- Select all relevant files and hit Return key 
-- Change "accept new license agreement" from no to yes 
-- Continue with install 

After a successful installation of openssh, the sshd daemon will be active and you will have a working ssh server. 


Thursday, January 10, 2013

How to install and configure the telnet on rhel/linux?

How to install and configure the telnet on RHEL/Linux?


Steps:

* Install "telnet-server" using "yum install telnet-server"     (Install the telnet-server rpm)

* Edit the file "/etc/xinetd.d/telnet" & change "disable yes" to "disable no"   (Enable the telnet service)

* Execute /etc/init.d/xinetd restart [or] service xinetd restart  (port 23 will be open....)

* chkconfig telnet on   (we can use chkconfig for add xinetd to startup services.)

* telnet localhost 23     (Make sure you can telnet with your local host)