Issue: REAR recover error

This issue is also opened in REAR GitHub: write_protected_candidate_device called for '/sys/block/nvme0c0n1' but '/dev/nvme0c0n1' is no block device · Issue #3085 · rear/rear · GitHub

Description of the issue:

write_protected_candidate_device called for ‘/sys/block/nvme0c0n1’ but ‘/dev/nvme0c0n1’ is no block device

  • ReaR version (“/usr/sbin/rear -V”): Relax-and-Recover 2.7 / 2022-07-13
  • If your ReaR version is not the current version, explain why you can’t upgrade: Latest version with distribution
  • OS version (“cat /etc/os-release” or “lsb_release -a” or “cat /etc/rear/os.conf”):
    NAME=“SLES”
    VERSION=“15-SP5”
    VERSION_ID=“15.5”
    PRETTY_NAME=“SUSE Linux Enterprise Server 15 SP5”
    ID=“sles”
    ID_LIKE=“suse”
    ANSI_COLOR=“0;32”
    CPE_NAME=“cpe:/o:suse:sles:15:sp5”
  • ReaR configuration files (“cat /etc/rear/local.conf”):
    BACKUP=NETFS
    OUTPUT=ISO
    BACKUP_URL=nfs://172.17.3.1/rear
    BACKUP_OPTIONS=
    NETFS_KEEP_OLD_BACKUP_COPY=yes
    USE_DHCLIENT=
    MODULES_LOAD=( )
    #BACKUP_PROG_INCLUDE=(“{BACKUP_PROG_INCLUDE[@]}” ‘/boot/grub2/i386-pc’ ‘/boot/grub2/x86_64-efi’ ‘/home’ ‘/opt’ ‘/root’ ‘/srv’ ‘/hana/shared’ ‘/usr’ ‘/var’)
    BACKUP_PROG_EXCLUDE=(“{BACKUP_PROG_EXCLUDE[@]}” ‘/hana/backup’ ‘/hana/data’ ‘/hana/log’ ‘/hana/shared/HSP/HDB05/backup’ ‘/hana/shared/NSP/HDB50/backup’ ‘/opt/dpsapps/agentsvc/dbs’ ‘/opt/dpsapps/agentsvc/logs’ ‘/tmp’)
    POST_RECOVERY_SCRIPT=(‘if snapper --no-dbus -r $TARGET_FS_ROOT get-config | grep -q “^QGROUP.*[0-9]/[0-9]” ; then snapper --no-dbus -r $TARGET_FS_ROOT set-config QGROUP= ; snapper --no-dbus -r $TARGET_FS_ROOT setup-quota && echo snapper setup-quota done || echo snapper setup-quota failed ; else echo snapper setup-quota not used ; fi’)
    REQUIRED_PROGS=(snapper chattr lsattr ${REQUIRED_PROGS[@]})
    COPY_AS_IS=(/usr/lib/snapper/installation-helper /etc/snapper/config-templates/default ${COPY_AS_IS[@]})
    EXCLUDE_MOUNTPOINTS=(“/mnt”)
    ISO_MKISOFS_BIN=/usr/bin/ebiso
  • Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR):
    DELL PowerEdge R860
  • System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):
    x86_64
  • Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):
    BIOS Version 1.5.6
    grub2-x86_64-efi-2.06-150500.29.8.1
  • Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):
    NVMe in RAID configuration

Backplane 1 on Connector 0 of RAID Controller in SL 1
DeviceDescription Backplane 1 on Connector 0 of RAID Controller in SL 1
DeviceType PCIeSSDBackPlane
FirmwareVersion 7.10
FQDD Enclosure.Internal.0-1:RAID.SL.1-1
InstanceID Enclosure.Internal.0-1:RAID.SL.1-1
MediaType Solid State Drive
PCIExpressGeneration Gen 4
ProductName BP_PSV 0:1
RollupStatus OK
SlotCount 8
WiredOrder 1

Backplane 2 on Connector 0 of RAID Controller in SL 4
DeviceDescription Backplane 2 on Connector 0 of RAID Controller in SL 4
DeviceType PCIeSSDBackPlane
FirmwareVersion 7.10
FQDD Enclosure.Internal.0-2:RAID.SL.4-1
InstanceID Enclosure.Internal.0-2:RAID.SL.4-1
MediaType Solid State Drive
PCIExpressGeneration Gen 4
ProductName BP_PSV 0:2
RollupStatus OK
SlotCount 8
WiredOrder 2

  • Storage layout (“lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,LABEL,SIZE,MOUNTPOINT”):
    NAME KNAME PKNAME TRAN TYPE FSTYPE LABEL SIZE MOUNTPOINT
    /dev/sda /dev/sda disk LVM2_member 23.3T
    |-/dev/mapper/vghana-lvusrsap /dev/dm-2 /dev/sda lvm xfs 150G /usr/sap
    |-/dev/mapper/vghana-lvdata /dev/dm-3 /dev/sda lvm xfs 6T /hana/data
    |-/dev/mapper/vghana-lvshared /dev/dm-4 /dev/sda lvm xfs 2T /hana/shared
    |-/dev/mapper/vghana-lvlog /dev/dm-5 /dev/sda lvm xfs 4T /hana/log
    '-/dev/mapper/vghana-lvbackup /dev/dm-6 /dev/sda lvm xfs 2T /hana/backup
    /dev/sdb /dev/sdb iscsi disk 100M
    /dev/sdc /dev/sdc iscsi disk 100M
    /dev/sdd /dev/sdd iscsi disk 1G
    /dev/nvme0n1 /dev/nvme0n1 nvme disk 447.1G
    |-/dev/nvme0n1p1 /dev/nvme0n1p1 /dev/nvme0n1 nvme part vfat ESP 250M /boot/efi
    |-/dev/nvme0n1p2 /dev/nvme0n1p2 /dev/nvme0n1 nvme part vfat OS 2G /boot
    '-/dev/nvme0n1p3 /dev/nvme0n1p3 /dev/nvme0n1 nvme part LVM2_member 444.8G
    |-/dev/mapper/vgroot-root /dev/dm-0 /dev/nvme0n1p3 lvm btrfs 442.8G /var
    '-/dev/mapper/vgroot-swap /dev/dm-1 /dev/nvme0n1p3 lvm swap 2G [SWAP]
  • Description of the issue (ideally so that others can reproduce it):
    When running rear recover we get this error:
    image
  • Workaround, if any:
    None