SUSE Enterprise Service Pack Migration

SUSE supports two different upgrade and migration methods one is online and the other is offline. We will go through both the methods. 

A. Take snapper snapshot.
  1. Take snapper snapshot before proceeding to service pack migration using below command #sanpper create --description “Before Service Pack Migration”
B. Method 1: Offline Upgrade and migration
  1. Offline methods usually boot another operating system from which the installed SLES version is upgraded. Examples are: DVD, flash disk & ISO image                                                                              
  2. Download the latest ISO of the respective SUSE Service pack from here.                                                                 
  3. Insert DVD or Attach the ISO through ILO/IDRAC of the SUSE Linux Enterprise 12 SP3 installation medium and boot your machine. A Welcome screen is displayed, followed by the boot screen                                                                                                                                                                    
  4. Press F11 to enter in boot menu.                                                                                                                                                        
  5. Boot system by selecting Upgrade in the boot menu.                                                                     
  6. Accept the license agreement and Proceed with Next                                                                    
  7. It will start updating installer
  8. On the Select for Upgrade screen, select the partition to upgrade and click Next. System mounts the selected partition and displays all repositories that have been found on the partition that you want to upgrade
  9. On the Previously Used Repositories screen, adjust the status of the repositories: enable those you want to include in the upgrade process and disable any repositories that are no longer needed. Proceed with Next.                                                                                                                                  
  10. On the Registration screen, select whether to register the upgraded system now (by entering your registration data and clicking Next) or if to Skip Registration.
  11. Select the add-on product according to the requirement                                                                
  12. Review the Installation Settings for the upgrade, especially the Update Options.                          
  13. Start the installation and removal procedure by clicking Update.                                                   
  14. The system will start upgrading.                                                                                                      
  15. Once the update is completed, system will reboot to the updated service pack.

C. Method 2: Online upgrade and migration

  1. SUSE offers an intuitive graphical and a simple command line tool to upgrade a running system to a new service pack. Before you can start a service pack migration, your system must be registered at the SUSE Customer Center.                                                                                                                                                                                                                                                                                  
  2. Check the system version before upgrade.                                                                                                                                                                                                                                                           
  3. #SUSEConnect -r <REGISTRATION_CODE> -e <EMAILID>                                                        
  4. Install the latest updates:
    #zypper patch                                                                                                                                     
  5. Check the available repositories.
    #zypper repos                                                                                                                                                      
  6. Install the zypper-migration-plugin package and its dependencies:
    #zypper in zypper-migration-plugin                                                                                                 
  7. Run zypper migration.
    #zypper migration                                                                                                                                                         
  8. Review all the changes, especially the packages that are going to be removed. Proceed by typing “y”.                                                                                                                                                        
  9. Select the service pack which you want to install, in my case I have selected service pack 3.                                                                                                                                                              
                                                                                                                                                                                                                                                                                                     
  10. Select yes to continue                                                                                                                                                                                                                                                                             
  11. After successful migration restart your system and check using following commands.
    #cat /etc/Suse-release or lsb-release -d

    #uname -a

create swap partition using swapfile

  1. On the server there is 4GB memory and 4GB swap file on TEST server which is not enough.
  2. Now the existing swap partition is created in lvm and there is no scope to increase the size
    
    
  3. To overcome this problem create a swapfile using dd command with permission 0600
    
  4. Change the file permission to 0600
  5. Set the file as swap area
  6. Test by enabling the swap on swapfile
  7. Make this boot persistent by adding the entry in fstab
  8. Always run mount -a command to check if any error in fstab file
  9. Now disable swap on /swapfile which we have enabled manually and check swap partitions
    
    
  10. Now check boot persistence by swapon command