L.2.1 Resizing /var/TKLC/ Directory

Resizing is required in the following scenarios, when a 5.4G iso is attempting to copy to a directory that has an average 3.5G of free space, which results in upgrade failure in locating or opening .iso file in /var/TKLC/upgrade/ directory:

  • When the 5.4G DSR-9.0.2 iso file is copied by the ISO deployment from /var/TKLC/db/filemgmt directory to the /var/TKLC/db/filemgmt/isos/ directory.
  • When running the beginning of the majorUpgrade.sh script, during OL8 upgrade attempts to copy the 1.5G TPD.install-8.0 DIU iso to /var/TKLC/upgrade/ directory.

In some cases, resizing /var/TKLC/ by adding 8G is required. Increasing the /var/TKLC/ directory (/dev/mapper/vgroot-plat_var_tklc) from 3.9G to 11.9G allows room for the 5.4G DSR-9.01 iso file and 1.5G TPD.install-8.0 DIU iso. The DSR-9.0.2 upgrade allows resizing the /var/TKLC/ directory for 7.8G.

Perform the following procedure to resize /var/TKLC/ directory:

  1. To confirm enough free space exists, run the following command to verify there is free PE / Size: with the following command to increase /var/TKLC/ by 8G
    sudo vgdisplay
    Output:
    [admusr@MP-2 ~]$ sudo vgdisplay
      --- Volume group ---
      VG Name               vgroot
      System ID             
      Format                lvm2
      Metadata Areas        2
      Metadata Sequence No  27
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                12
      Open LV               12
      Max PV                0
      Cur PV                2
      Act PV                2
      VG Size               105.44 GiB
      PE Size               32.00 MiB
      Total PE              3374
      Alloc PE / Size       1825 / 57.03 GiB
      Free  PE / Size       1549 / 48.41 GiB
      VG UUID               xydJnb-5LDn-leFp-J2qO-tLrW-gAsn-n1SajJ
  2. Verify /var/TKLC/ directory size, by running the following command:
    [admusr@MP-2 ~]$ df –h /var/TKLC/
    Filesystem                        Size  Used Avail Use% Mounted on
    /dev/mapper/vgroot-plat_var_tklc  3.9G  194M  3.5G   6% /var/TKLC
  3. Use the following commands to increase the /var/TKLC/ directory size:
    sudo lvresize -L +8G /dev/mapper/vgroot-plat_var_tklc
    sudo resize2fs /dev/mapper/vgroot-plat_var_tklc
  4. Verify the free PE / Size after /var/TKLC/ resize, by running the following command:
    [admusr@MP-2 ~]$ sudo vgdisplay
      --- Volume group ---
      VG Name               vgroot
      System ID             
      Format                lvm2
      Metadata Areas        2
      Metadata Sequence No  27
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                12
      Open LV               12
      Max PV                0
      Cur PV                2
      Act PV                2
      VG Size               105.44 GiB
      PE Size               32.00 MiB
      Total PE              3374
      Alloc PE / Size       1825 / 57.03 GiB
      Free  PE / Size       1549 / 40.41 GiB
      VG UUID               xydJnb-5LDn-leFp-J2qO-tLrW-gAsn-n1SajJ
  5. Verify /var/TKLC/ size, by running the following command:
    [admuse@MP-2 ~]$ df -h /var/TKLC 
    Filesystem                        Size  Used Avail Use% Mounted on
    /dev/mapper/vgroot-plat_var_tklc  11.8G  194M 10.2G  2% /var/TKLC