IBM Support

Offline upgrade for SUSE Linux Enterprise 12 using a hard disk

How To


Summary

In some situations, it's not possible to have an external resource to provide the bootable media and installation repositories that are needed to perform an offline upgrade. External resources like PXE boot, USB drive or DVD can be replaced with a normal partition from the hard disk, the system resides and has enough space to hold the content of the installation ISO image.

Objective

This demo provides step-by-step instructions on how-to perform an offline upgrade from a SLES12 SP4 to SP5 using the server's hard disk without a need to attach any devices (like USB drive or DVD) or use a network source that can provide the installation media.

Environment

Suse Linux Enterprise Server 12 (x86_64)

Steps

Before proceeding with the upgrade steps below, please make sure that you read the prerequisites page here

1- Download the ISO image and mount it then copy the content to some location ( /sp5 directory is used in this demo).
linux-ri87:~ # ls -l /iso/
total 4002816
-rw-r--r-- 1 root root 4098883584 Oct 14 17:37 SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso
linux-ri87:~ # mkdir /sp5
linux-ri87:~ # mount /iso/SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
linux-ri87:~ # cp -a /mnt/* /sp5
2- Copy the kernel (linux) and the installation system (initrd) from the directory /boot/ARCHITECTURE/ on the installation media to the hard disk. Then take a backup of the grub.cfg file and run grub2-mkconfig to create a new grub2 menu entry.
linux-ri87:~ # cp -a /sp5/boot/x86_64/vmlinuz-xen /sp5/boot/x86_64/initrd-xen /boot/
linux-ri87:~ # cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bkp
linux-ri87:~ # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/SLE/theme.txt
Found linux image: /boot/vmlinuz-4.12.14-94.41-default
Found initrd image: /boot/initrd-4.12.14-94.41-default
Found linux image: /boot/vmlinuz-xen
Found initrd image: /boot/initrd-xen
3- Reboot the server, interrupt GRUB2 then select the newly added entry from the previous step.

­­image 6645

image 6646
4- Select "Start Installation"
image 6647
5- Select "Upgrade".
image 6648
6- Choose "Hard disk" and select the partition where the extracted ISO image exists.
image 6649
image 6650
7- Enter the path to the extracted ISO image.
image 6651
8- The Yast installer will start. Follow the below steps to complete the upgrade:
  • From the welcome screen, choose your Language and Keyboard and accept the license agreement, then click `Next`.
    YaST will check your partitions for already installed SUSE Linux Enterprise systems.

  • In the Select for upgrade screen, select the appropriate partition to upgrade then click `Next`.
    YaST mounts the selected partition and displays all repositories that have been found on the partition that you want to upgrade.

  • In 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. When done, click `Next`.

  • Inside the Registration screen, select whether to register the upgraded system now (by entering your registration data and clicking Next). For details on registering your system, see Section 21.8, “Registering Your System”.

  • Review the Installation Settings for the upgrade, specially the update options. Choose between the following options:

    • Only Update Installed Packages, in which case you might miss new features shipped with the latest SUSE Linux Enterprise version.

    • Update with Installation of New Software and Features. Click Select Patterns if you want to enable or disable patterns and packages according to your needs.

  • If all settings are according to your wishes, start the installation and removal procedure by clicking Update.

  • After the upgrade process has finished successfully, perform post-upgrade checks as described in Section 21.5.1, “Post-upgrade Checks”.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SGMV168","label":"SUSE Linux Enterprise Server"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
01 April 2021

UID

ibm16348024