#2614 Issue closed: rear savelayout on Centos 6.10 unknown lsblk parameter -p

Labels: support / question, fixed / solved / done

sibelle-labs opened issue at 2021-05-08 18:48:

Relax-and-Recover (ReaR) Issue Template

Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

  • ReaR version ("/usr/sbin/rear -V"):Relax-and-Recover 2.6 / 2020-06-17

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

  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
    OUTPUT=ISO
    BACKUP=NETFS
    BACKUP_URL="nfs://nfs/rear/"
    AUTORESIZE_PARTITIONS=true
    USE_DHCLIENT="yes"
    SSH_ROOT_PASSWORD="rear"

  • Hardware (PC or PowerNV BareMetal or ARM) or virtual machine (KVM guest or PoverVM LPAR):PC

  • 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):grub

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

  • Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT" or "lsblk" as makeshift):-

  • Description of the issue (ideally so that others can reproduce it):

at "/var/log/rear/rear-ocrs.log"

lsblk: invalid option -- 'p'

  • Workaround, if any:

  • Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files):

To paste verbatim text like command output or file content,
include it between a leading and a closing line of three backticks like

```
rear savelayout
```

OliverO2 commented at 2021-05-10 13:40:

Looks like CentOS 6 has reached support ''end of life'' on November 30, 2020.

jsmeix commented at 2021-05-10 13:43:

@sibelle-labs
probably from layout/save/GNU/Linux/100_create_layout_file.sh

# Have the actual storage layout as header comment in disklayout.conf
# so that it is easier to make sense of the values in the subsequent entries.
# First try the command
#   lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT
# but on older systems (like SLES11) that do not support all that lsblk things
# try the simpler command
#   lsblk -io NAME,KNAME,FSTYPE,SIZE,MOUNTPOINT
# and as fallback try 'lsblk -i' and finally try plain 'lsblk'.
# When there is no 'lsblk' command there is no output (bad luck, no harm):
{ lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT || lsblk -io NAME,KNAME,FSTYPE,SIZE,MOUNTPOINT || lsblk -i || lsblk ; } >>$DISKLAYOUT_FILE

https://github.com/rear/rear/blob/master/usr/share/rear/layout/save/GNU/Linux/100_create_layout_file.sh#L34

You can ignore it.


[Export of Github issue for rear/rear.]