Sample Header Ad - 728x90

Server stuck with Secure Boot error "problem with revocation key (-74)" after online repartitioning

0 votes
0 answers
79 views
I tried to resize partitions on a SLES 15 server by using gdisk. No matter what I try to do, I cant get it to work after rebooting the system. Initial situation: I have a boot partition (/dev/sda1), a / partition (/dev/sda2), a /home partition (/dev/sda3) and swap (/dev/sda4). I want to recreate the /home partition with less space and increase space on the / partition. These are the steps I did: 1.
/home
2. delete and recreate partitions:
SRV01:~ # gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 209715200 sectors, 100.0 GiB
Model: Virtual disk
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): E6F4D731-D49F-4BD7-8AF7-A0EDA544AE8C
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 209715166
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1050623   512.0 MiB   EF00
   2         1050624        84936703   40.0 GiB    8300
   3        84936704       143968255   28.1 GiB    8300
   4       143968256       209715166   31.3 GiB    8200

Command (? for help): d
Partition number (1-4): 4

Command (? for help): d
Partition number (1-3): 3

Command (? for help): d
Partition number (1-2): 2

Command (? for help): n
Partition number (2-128, default 2): 2
First sector (34-209715166, default = 1050624) or {+-}size{KMGTP}:
Last sector (1050624-209715166, default = 209715166) or {+-}size{KMGTP}: +60G
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'

Command (? for help): n
Partition number (3-128, default 3): 3
First sector (34-209715166, default = 126879744) or {+-}size{KMGTP}:
Last sector (126879744-209715166, default = 209715166) or {+-}size{KMGTP}: +8G
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'

Command (? for help): n
Partition number (4-128, default 4): 4
First sector (34-209715166, default = 143656960) or {+-}size{KMGTP}:
Last sector (143656960-209715166, default = 209715166) or {+-}size{KMGTP}:
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300): L
Type search string, or  to show all codes: swap
8200 Linux swap                          a502 FreeBSD swap
a582 Midnight BSD swap                   a901 NetBSD swap
bf02 Solaris swap
Hex code or GUID (L to show codes, Enter = 8300): 8200
Changed type of partition to 'Linux swap'

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
3. read partition table with
4. create filesystem for /home partition:
SRV01:~ # mkfs.xfs /dev/sda3
meta-data=/dev/sda3              isize=512    agcount=4, agsize=524288 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=0
         =                       reflink=0    bigtime=0 inobtcount=0
data     =                       bsize=4096   blocks=2097152, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
Discarding blocks...Done.
5. resize the / filesystem
SRV01:~ # btrfs filesystem resize max /
Resize device id 1 (/dev/sda2) from 40.00GiB to max
6. add new device UUIDs into fstab (device UUID for / partition stays the same, otherwise it would be needed to update it in /boot partition in the grub config as well) 7. mount filesystems with
-a
At this point everything works without any issue. But if I reboot the system the Bootloader opens up and then I get the message
: Problem with revocation key (-74)
How can this be resolved?
Asked by Luke (21 rep)
Jan 16, 2025, 01:42 PM
Last activity: Jan 16, 2025, 07:17 PM