This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

extend boot partition

HI All

    I have a sentinel appliance and test upgrade to new version...when run zypper -v patch.

it show need more 4MB on /boot filesystem

because the parition close another partition (/var partition).

it seem not easy to run resize2fs to extend...

which process could let me decrease /var size to get free space to extend boot partition ?

Thanks!!

Wencheng

How to decrease root partition

Tags:

  • 0

    Hi Wencheng,

    I have seen this before. Now this will be my only reply for the next few weeks, as I will go into my Christmas break, so hopefully below suggestions will address it. They should.

    1)
    You can revert to the recent snapshot which you took before running ‘zypper –v patch’, and free up some space sufficient for upgrade and then run ‘zypper –v patch and zypper up’ again to complete the upgrade.
     
    There are steps to extend /boot partition before upgrade:
    www.suse.com/.../
     
    Can you try these steps to extend boot partition?
     
     
    2)
    Even reverting the snapshot is also not necessary.  Just make sure there is sufficient space available and re-run the ‘zypper –v patch and zypper up’ to complete the upgrade. No problem.
     
    Please run  'uname -a' command and find the files vmlinuz, vmlinux, initrd, symtypes, symvers, etc, in /boot folder matching the version number found on the command output.  By keeping the matching files in /boot folder, move the remaining files to some other folder as backup.
    This will create space in /boot folder.  Then you can go ahead with patching.
     
    For example:
     
    sles15sp2:/opt # uname -a
    Linux sles15sp2 5.3.18-22-default #1 SMP Wed Jun 3 12:16:43 UTC 2020 (720aeba) x86_64 x86_64 x86_64 GNU/Linux
     
    sles15sp2:/opt # ls -l /boot
    total 51964
    -rw-r--r-- 1 root root       65 Jun  7  2020 .vmlinuz-5.3.18-22-default.hmac
    -rw-r--r-- 1 root root  4287514 Jun  6  2020 System.map-5.3.18-22-default
    -rw-r--r-- 1 root root     1725 Jun  6  2020 boot.readme
    -rw-r--r-- 1 root root   210122 Jun  6  2020 config-5.3.18-22-default
    drwxr-xr-x 3 root root    16384 Jan  1  1970 efi
    drwxr-xr-x 6 root root     4096 Oct 28 18:18 grub2
    lrwxrwxrwx 1 root root       24 Oct 28 18:15 initrd -> initrd-5.3.18-22-default
    -rw------- 1 root root 11262412 Oct 28 18:18 initrd-5.3.18-22-default
    -rw------- 1 root root 15483956 Oct 30 14:46 initrd-5.3.18-22-default-kdump
    -rw-r--r-- 1 root root   405812 Jun  6  2020 symvers-5.3.18-22-default.gz
    -rw-r--r-- 1 root root      484 Jun  6  2020 sysctl.conf-5.3.18-22-default
    -rw-r--r-- 1 root root 12996128 Jun  6  2020 vmlinux-5.3.18-22-default.gz
    lrwxrwxrwx 1 root root       25 Oct 28 18:15 vmlinuz -> vmlinuz-5.3.18-22-default
    -rw-r--r-- 1 root root  8515952 Jun  7  2020 vmlinuz-5.3.18-22-default
     
    This output is only for reference.   Do as per the files in your machine.
     
    Note:
    Usually, it will keep multiple version of boot related files in /boot folder.  So, we can cleanup the system and gain the space as per the current version of kernel.


    I hope this helps.


    Thanks,


    Henk Tjalsma