#3010 Issue open: Auto-Resizing Extended Partitions Fails

Labels: support / question

pantaray opened issue at 2023-06-09 09:42:

  • ReaR version ("/usr/sbin/rear -V"): Relax-and-Recover 2.7-git.5183.29f51855.master / 2023-06-06

  • If your ReaR version is not the current version, explain why you can't upgrade: N/A

  • OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"):

    OS_VENDOR=RedHatEnterpriseServer
    OS_VERSION=8.1
    
  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
    We don't use a site.conf, here's the contents of our local.conf:

    # This file etc/rear/local.conf is intended for the user's
    # manual configuration of Relax-and-Recover (ReaR).
    # For configuration through packages and other automated means
    # we recommend a separated file named site.conf next to this file
    # and leave local.conf as is (ReaR upstream will never ship a site.conf).
    # The default OUTPUT=ISO creates the ReaR rescue medium as ISO image.
    # You need to specify your particular backup and restore method for your data
    # as the default BACKUP=REQUESTRESTORE does not really do that (see "man rear").
    # Configuration variables are documented in /usr/share/rear/conf/default.conf
    # and the examples in /usr/share/rear/conf/examples/ can be used as templates.
    # ReaR reads the configuration files via the bash builtin command 'source'
    # so bash syntax like VARIABLE="value" (no spaces at '=') is mandatory.
    # Because 'source' executes the content as bash scripts you can run commands
    # within your configuration files, in particular commands to set different
    # configuration values depending on certain conditions as you need like
    # CONDITION_COMMAND && VARIABLE="special_value" || VARIABLE="usual_value"
    # but that means CONDITION_COMMAND gets always executed when 'rear' is run
    # so ensure nothing can go wrong if you run commands in configuration files.
    
    OUTPUT=ISO
    OUTPUT=RAMDISK
    OUTPUT_URL="nfs://1x.1xx.x.1xx/mnt/rear/backup"
    
    BACKUP=NETFS
    BACKUP_OPTIONS="nfsvers=3"
    BACKUP_URL="nfs://1x.1xx.x.1xx/mnt/rear/backup"
    
    AUTOEXCLUDE_MULTIPATH=n
    BOOT_OVER_SAN=y
    AUTORESIZE_PARTITIONS=true
    
    AUTOEXCLUDE_DISKS=y
    
  • Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR):
    PowerVM LPAR

  • System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):
    PPC64LE

  • Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):
    IBM HMC with GRUB bootloader

  • Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):
    SAN FC with multipath DM

  • Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,LABEL,SIZE,MOUNTPOINT"):
    Original layout of the machine:

    NAME                    KNAME     PKNAME    TRAN TYPE  FSTYPE       LABEL  SIZE MOUNTPOINT
    /dev/sda                /dev/sda                 disk  mpath_member        100G
    `-/dev/mapper/mpatha    /dev/dm-0 /dev/sda       mpath                     100G
      |-/dev/mapper/mpatha1 /dev/dm-1 /dev/dm-0      part                        4M
      |-/dev/mapper/mpatha2 /dev/dm-2 /dev/dm-0      part  xfs                   1G /boot
      |-/dev/mapper/mpatha3 /dev/dm-3 /dev/dm-0      part  swap                  8G [SWAP]
      |-/dev/mapper/mpatha4 /dev/dm-4 /dev/dm-0      part                        1K
      |-/dev/mapper/mpatha5 /dev/dm-5 /dev/dm-0      part  xfs                  50G /
      `-/dev/mapper/mpatha6 /dev/dm-6 /dev/dm-0      part  xfs                  41G /home
    /dev/sdb                /dev/sdb                 disk  mpath_member        100G
    `-/dev/mapper/mpatha    /dev/dm-0 /dev/sdb       mpath                     100G
      |-/dev/mapper/mpatha1 /dev/dm-1 /dev/dm-0      part                        4M
      |-/dev/mapper/mpatha2 /dev/dm-2 /dev/dm-0      part  xfs                   1G /boot
      |-/dev/mapper/mpatha3 /dev/dm-3 /dev/dm-0      part  swap                  8G [SWAP]
      |-/dev/mapper/mpatha4 /dev/dm-4 /dev/dm-0      part                        1K
      |-/dev/mapper/mpatha5 /dev/dm-5 /dev/dm-0      part  xfs                  50G /
      `-/dev/mapper/mpatha6 /dev/dm-6 /dev/dm-0      part  xfs                  41G /home
    /dev/sdc                /dev/sdc                 disk  mpath_member        100G
    `-/dev/mapper/mpatha    /dev/dm-0 /dev/sdc       mpath                     100G
      |-/dev/mapper/mpatha1 /dev/dm-1 /dev/dm-0      part                        4M
      |-/dev/mapper/mpatha2 /dev/dm-2 /dev/dm-0      part  xfs                   1G /boot
      |-/dev/mapper/mpatha3 /dev/dm-3 /dev/dm-0      part  swap                  8G [SWAP]
      |-/dev/mapper/mpatha4 /dev/dm-4 /dev/dm-0      part                        1K
      |-/dev/mapper/mpatha5 /dev/dm-5 /dev/dm-0      part  xfs                  50G /
      `-/dev/mapper/mpatha6 /dev/dm-6 /dev/dm-0      part  xfs                  41G /home
    /dev/sdd                /dev/sdd                 disk  mpath_member        100G
    `-/dev/mapper/mpatha    /dev/dm-0 /dev/sdd       mpath                     100G
      |-/dev/mapper/mpatha1 /dev/dm-1 /dev/dm-0      part                        4M
      |-/dev/mapper/mpatha2 /dev/dm-2 /dev/dm-0      part  xfs                   1G /boot
      |-/dev/mapper/mpatha3 /dev/dm-3 /dev/dm-0      part  swap                  8G [SWAP]
      |-/dev/mapper/mpatha4 /dev/dm-4 /dev/dm-0      part                        1K
      |-/dev/mapper/mpatha5 /dev/dm-5 /dev/dm-0      part  xfs                  50G /
      `-/dev/mapper/mpatha6 /dev/dm-6 /dev/dm-0      part  xfs                  41G /home
    
  • Description of the issue (ideally so that others can reproduce it):
    We initiated a backup of the system using

    rear -v mkbackup
    

    with the settings given above (NFS backup target). We created an LPAR with a smaller backing device (going from 100GB with 10GB used space to 20GB total), then booted from the backed up ISO and started the recover process:

    RESCUE hostname:~ # rear -v recover
    
    ...
    
    # Disk layout dated 20230606195041 (YYYYmmddHHMMSS)
    # NAME                    KNAME     PKNAME    TRAN TYPE  FSTYPE       LABEL  SIZE MOUNTPOINT UUID                                 WWN
    # /dev/sda                /dev/sda                 disk  mpath_member        100G                                                 0x600a098000d2e26600008e735e452553
    # `-/dev/mapper/mpathb    /dev/dm-0 /dev/sda       mpath                     100G
    #   |-/dev/mapper/mpathb1 /dev/dm-1 /dev/dm-0      part                        4M
    #   |-/dev/mapper/mpathb2 /dev/dm-2 /dev/dm-0      part  xfs                   1G /boot      808ae050-103f-424b-b648-5a5b5cdf1826
    #   |-/dev/mapper/mpathb3 /dev/dm-3 /dev/dm-0      part  swap                  8G [SWAP]     8644d3f1-b037-4a05-8237-d8aa461628f6
    #   |-/dev/mapper/mpathb4 /dev/dm-4 /dev/dm-0      part                        1K
    #   |-/dev/mapper/mpathb5 /dev/dm-5 /dev/dm-0      part  xfs                  50G /          9d1c54a0-2ab5-4c6c-b9e0-c790661773c0
    #   `-/dev/mapper/mpathb6 /dev/dm-6 /dev/dm-0      part  xfs                  41G /home      dad16105-df3b-4d8d-973f-6ceeb2e4e803
    # /dev/sdb                /dev/sdb                 disk  mpath_member        100G                                                 0x600a098000d2e26600008e735e452553
    
    ...
    
    # Format: multipath <devname> <size(bytes)> <partition label type> <slaves>
    sdd
    part /dev/mapper/mpathb 4194304 1048576 primary boot,prep /dev/mapper/mpathb1
    part /dev/mapper/mpathb 1073741824 5242880 primary none /dev/mapper/mpathb2
    part /dev/mapper/mpathb 8621391872 1078984704 primary none /dev/mapper/mpathb3
    part /dev/mapper/mpathb 53687091200 9701425152 logical none /dev/mapper/mpathb5
    
    my_udevsettle
    create_disk_partition "/dev/mapper/mpathb" "primary" 2 6295552 1080037375
    create_disk_partition "/dev/mapper/mpathb" "primary" 3 1080041472 9701433343
    create_disk_partition "/dev/mapper/mpathb" "extended" 4 9701437440 21474836479
    create_disk_partition "/dev/mapper/mpathb" "logical" 5 107375247360 21474836479
    create_disk_partition "/dev/mapper/mpathb" "logical" 6 161062342656 21474836479
    

    Looking at the start-/end-blocks, the extended partition is created correctly, however, the logical partitions are not. The partition layout of the original machine looks like this:

    [root@hostname ~]# parted /dev/mapper/mpatha
    GNU Parted 3.2
    Using /dev/mapper/mpatha
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print
    Model: Linux device-mapper (multipath) (dm)
    Disk /dev/mapper/mpatha: 107GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: msdos
    Disk Flags:
    
    Number  Start   End     Size    Type      File system     Flags
    1      1049kB  5243kB  4194kB  primary                   boot, prep
    2      5243kB  1079MB  1074MB  primary   xfs
    3      1079MB  9700MB  8621MB  primary   linux-swap(v1)
    4      9700MB  107GB   97.7GB  extended
    5      9701MB  63.4GB  53.7GB  logical   xfs
    6      63.4GB  107GB   44.0GB  logical   xfs
    

    The partition table auto-created by REAR does not contain the logical partitions:

    RESCUE esi-svftp001:/var/lib/rear/layout # parted /dev/mapper/mpathb
    GNU Parted 3.2
    Using /dev/mapper/mpathb
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) p
    Model: Linux device-mapper (multipath) (dm)
    Disk /dev/mapper/mpathb: 21.5GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:
    
    Number  Start   End     Size    Type      File system  Flags
    1      2097kB  6291kB  4194kB  primary                boot, prep
    2      6296kB  1080MB  1074MB  primary
    3      1080MB  9701MB  8621MB  primary
    4      9701MB  21.5GB  11.8GB  extended               lba
    
  • Workaround, if any:
    Manually editing the the create_disk_partition calls fixes the problem.
    Changing this

    create_disk_partition "/dev/mapper/mpathb" "primary" 3   1080041472  9701433343
    create_disk_partition "/dev/mapper/mpathb" "extended" 4  9701437440 21474836479
    create_disk_partition "/dev/mapper/mpathb" "logical" 5 107375247360 21474836479
    create_disk_partition "/dev/mapper/mpathb" "logical" 6 161062342656 21474836479
    

    to that

    create_disk_partition "/dev/mapper/mpathb" "primary" 3   1080041472  9701433343
    create_disk_partition "/dev/mapper/mpathb" "extended" 4  9701437440 21474836479
    create_disk_partition "/dev/mapper/mpathb" "logical" 5   9701441537 17588141056
    create_disk_partition "/dev/mapper/mpathb" "logical" 6  17588145153 2147483647
    

    fixes the resizing and system recovery works

    Failed to wipe first  1024 bytes of /dev/dm-4 ('dd if=/dev/zero of=/dev/dm-4 count= 1024 iflag=count_bytes' failed)
    Start system layout restoration.
    Disk '/dev/mapper/mpathb': creating 'msdos' partition table
    Disk '/dev/mapper/mpathb': creating partition number 1 with name 'primary'
    Disk '/dev/mapper/mpathb': creating partition number 2 with name 'primary'
    Disk '/dev/mapper/mpathb': creating partition number 3 with name 'primary'
    Disk '/dev/mapper/mpathb': creating partition number 4 with name 'extended'
    Disk '/dev/mapper/mpathb': creating partition number 5 with name 'logical'
    Disk '/dev/mapper/mpathb': creating partition number 6 with name 'logical'
    Creating swap on /dev/mapper/mpathb3
    Creating filesystem of type xfs with mount point / on /dev/mapper/mpathb5.
    Mounting filesystem /
    Creating filesystem of type xfs with mount point /boot on /dev/mapper/mpathb2.
    Mounting filesystem /boot
    Creating filesystem of type xfs with mount point /home on /dev/mapper/mpathb6.
    Mounting filesystem /home
    Disk layout created.
    Recreated storage layout:
    NAME                    KNAME     TRAN TYPE  FSTYPE       LABEL  SIZE MOUNTPOINT
    /dev/sda                /dev/sda       disk  mpath_member         20G
    |-/dev/sda1             /dev/sda1      part  none                  4M
    |-/dev/sda2             /dev/sda2      part  none                  1G
    |-/dev/sda3             /dev/sda3      part  none                  8G
    |-/dev/sda4             /dev/sda4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdb                /dev/sdb       disk  mpath_member         20G
    |-/dev/sdb1             /dev/sdb1      part  none                  4M
    |-/dev/sdb2             /dev/sdb2      part  none                  1G
    |-/dev/sdb3             /dev/sdb3      part  none                  8G
    |-/dev/sdb4             /dev/sdb4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdc                /dev/sdc       disk  mpath_member         20G
    |-/dev/sdc1             /dev/sdc1      part  none                  4M
    |-/dev/sdc2             /dev/sdc2      part  none                  1G
    |-/dev/sdc3             /dev/sdc3      part  none                  8G
    |-/dev/sdc4             /dev/sdc4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdd                /dev/sdd       disk  mpath_member         20G
    |-/dev/sdd1             /dev/sdd1      part  none                  4M
    |-/dev/sdd2             /dev/sdd2      part  none                  1G
    |-/dev/sdd3             /dev/sdd3      part  none                  8G
    |-/dev/sdd4             /dev/sdd4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sde                /dev/sde       disk  mpath_member         20G
    |-/dev/sde1             /dev/sde1      part  none                  4M
    |-/dev/sde2             /dev/sde2      part  none                  1G
    |-/dev/sde3             /dev/sde3      part  none                  8G
    |-/dev/sde4             /dev/sde4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdf                /dev/sdf       disk  mpath_member         20G
    |-/dev/sdf1             /dev/sdf1      part  none                  4M
    |-/dev/sdf2             /dev/sdf2      part  none                  1G
    |-/dev/sdf3             /dev/sdf3      part  none                  8G
    |-/dev/sdf4             /dev/sdf4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdg                /dev/sdg       disk  mpath_member         20G
    |-/dev/sdg1             /dev/sdg1      part  none                  4M
    |-/dev/sdg2             /dev/sdg2      part  none                  1G
    |-/dev/sdg3             /dev/sdg3      part  none                  8G
    |-/dev/sdg4             /dev/sdg4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdh                /dev/sdh       disk  mpath_member         20G
    |-/dev/sdh1             /dev/sdh1      part  none                  4M
    |-/dev/sdh2             /dev/sdh2      part  none                  1G
    |-/dev/sdh3             /dev/sdh3      part  none                  8G
    |-/dev/sdh4             /dev/sdh4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdi                /dev/sdi       disk  mpath_member         20G
    |-/dev/sdi1             /dev/sdi1      part  none                  4M
    |-/dev/sdi2             /dev/sdi2      part  none                  1G
    |-/dev/sdi3             /dev/sdi3      part  none                  8G
    |-/dev/sdi4             /dev/sdi4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdj                /dev/sdj       disk  mpath_member         20G
    |-/dev/sdj1             /dev/sdj1      part  none                  4M
    |-/dev/sdj2             /dev/sdj2      part  none                  1G
    |-/dev/sdj3             /dev/sdj3      part  none                  8G
    |-/dev/sdj4             /dev/sdj4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdk                /dev/sdk       disk  mpath_member         20G
    |-/dev/sdk1             /dev/sdk1      part  none                  4M
    |-/dev/sdk2             /dev/sdk2      part  none                  1G
    |-/dev/sdk3             /dev/sdk3      part  none                  8G
    |-/dev/sdk4             /dev/sdk4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdl                /dev/sdl       disk  mpath_member         20G
    |-/dev/sdl1             /dev/sdl1      part  none                  4M
    |-/dev/sdl2             /dev/sdl2      part  none                  1G
    |-/dev/sdl3             /dev/sdl3      part  none                  8G
    |-/dev/sdl4             /dev/sdl4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdm                /dev/sdm       disk  mpath_member         20G
    |-/dev/sdm1             /dev/sdm1      part  none                  4M
    |-/dev/sdm2             /dev/sdm2      part  none                  1G
    |-/dev/sdm3             /dev/sdm3      part  none                  8G
    |-/dev/sdm4             /dev/sdm4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdn                /dev/sdn       disk  mpath_member         20G
    |-/dev/sdn1             /dev/sdn1      part  none                  4M
    |-/dev/sdn2             /dev/sdn2      part  none                  1G
    |-/dev/sdn3             /dev/sdn3      part  none                  8G
    |-/dev/sdn4             /dev/sdn4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdo                /dev/sdo       disk  mpath_member         20G
    |-/dev/sdo1             /dev/sdo1      part  none                  4M
    |-/dev/sdo2             /dev/sdo2      part  none                  1G
    |-/dev/sdo3             /dev/sdo3      part  none                  8G
    |-/dev/sdo4             /dev/sdo4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    /dev/sdp                /dev/sdp       disk  mpath_member         20G
    |-/dev/sdp1             /dev/sdp1      part  none                  4M
    |-/dev/sdp2             /dev/sdp2      part  none                  1G
    |-/dev/sdp3             /dev/sdp3      part  none                  8G
    |-/dev/sdp4             /dev/sdp4      part  none                  1K
    `-/dev/mapper/mpathb    /dev/dm-0      mpath                      20G
    |-/dev/mapper/mpathb1 /dev/dm-1      part                          4M
    |-/dev/mapper/mpathb2 /dev/dm-2      part  xfs                     1G /mnt/local/boot
    |-/dev/mapper/mpathb3 /dev/dm-3      part  swap                    8G
    |-/dev/mapper/mpathb4 /dev/dm-4      part                          1K
    |-/dev/mapper/mpathb5 /dev/dm-5      part  xfs                   7.4G /mnt/local
    `-/dev/mapper/mpathb6 /dev/dm-6      part  xfs                   3.6G /mnt/local/home
    
  • Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files):
    See output above.

jsmeix commented at 2023-06-12 09:36:

I did not yet look at the details here but in general

AUTORESIZE_PARTITIONS=true

is old functionality that is implemented in
layout/prepare/default/430_autoresize_all_partitions.sh
which does not and never did work properly.

See the description about

# AUTORESIZE_PARTITIONS
# AUTORESIZE_EXCLUDE_PARTITIONS
# AUTOSHRINK_DISK_SIZE_LIMIT_PERCENTAGE
# AUTOINCREASE_DISK_SIZE_THRESHOLD_PERCENTAGE

in usr/share/rear/conf/default.conf
for ReaR 2.7 starting at
https://github.com/rear/rear/blob/rear-2.7/usr/share/rear/conf/default.conf#L475

See also
https://github.com/rear/rear/issues/1731
and
https://github.com/rear/rear/pull/1733


[Export of Github issue for rear/rear.]