#3350 Issue closed: find on menu.c32 hangs on NFS mount point (via 300_create_isolinux.s)

Labels: bug, fixed / solved / done

gdha opened issue at 2024-12-02 13:41:

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

  • If your ReaR version is not the current version, explain why you can't upgrade: it is RHEL based RPM package rear-2.6-10.el8.x86_64

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

#-> cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.9 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.9 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"
  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
BACKUP=NETFS
BACKUP_URL=nfs://....
  • Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR): VM

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

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

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

#-> 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                     75G
|-/dev/sda1                             /dev/sda1  /dev/sda       part ext4               500M /boot
`-/dev/sda2                             /dev/sda2  /dev/sda       part LVM2_member         74G
  |-/dev/mapper/vg00-lv_root            /dev/dm-0  /dev/sda2      lvm  ext4                 8G /
  |-/dev/mapper/vg00-swap               /dev/dm-1  /dev/sda2      lvm  swap                 4G [SWAP]
  |-/dev/mapper/vg00-lv_usr             /dev/dm-2  /dev/sda2      lvm  ext4                 5G /usr
  |-/dev/mapper/vg00-lv_home            /dev/dm-5  /dev/sda2      lvm  ext4                 5G /home
  |-/dev/mapper/vg00-lv_tmp             /dev/dm-10 /dev/sda2      lvm  ext4               6.5G /tmp
  |-/dev/mapper/vg00-var                /dev/dm-11 /dev/sda2      lvm  ext4                 8G /var
  |-/dev/mapper/vg00-lv_log             /dev/dm-13 /dev/sda2      lvm  ext4                 7G /var/log
  |-/dev/mapper/vg00-lv_audit           /dev/dm-20 /dev/sda2      lvm  ext4                 6G /var/log/audit
  |-/dev/mapper/vg00-lv_opt             /dev/dm-21 /dev/sda2      lvm  ext4                 5G /opt
  |-/dev/mapper/vg00-lv_tanium          /dev/dm-22 /dev/sda2      lvm  ext3                 3G /opt/Tanium
  |-/dev/mapper/vg00-lv_tidal           /dev/dm-23 /dev/sda2      lvm  ext3                 2G /opt/TIDAL
  `-/dev/mapper/vg00-lv_openv           /dev/dm-24 /dev/sda2      lvm  ext4                12G /usr/openv
/dev/sdb                                /dev/sdb                  disk LVM2_member         10G
`-/dev/mapper/vg_sap-lg_sap             /dev/dm-4  /dev/sdb       lvm  xfs                 10G /usr/sap
/dev/sdc                                /dev/sdc                  disk LVM2_member         22G
|-/dev/mapper/vg_oraredo-lv_redo01a     /dev/dm-12 /dev/sdc       lvm  xfs                 10G /oracle/DIT/oralogA
`-/dev/mapper/vg_oraredo-lv_redo01b     /dev/dm-16 /dev/sdc       lvm  xfs                 10G /oracle/DIT/oralogB
/dev/sdd                                /dev/sdd                  disk LVM2_member         22G
|-/dev/mapper/vg_oraredo-lv_mirra1a     /dev/dm-18 /dev/sdd       lvm  xfs                 10G /oracle/DIT/mirrlogA
`-/dev/mapper/vg_oraredo-lv_mirra1b     /dev/dm-19 /dev/sdd       lvm  xfs                 10G /oracle/DIT/mirrlogB
/dev/sde                                /dev/sde                  disk LVM2_member         10G
`-/dev/mapper/vg_oem-lv_oem             /dev/dm-15 /dev/sde       lvm  xfs                 10G /oem
/dev/sdf                                /dev/sdf                  disk LVM2_member          5G
`-/dev/mapper/vg_oracle-lv_oracle       /dev/dm-3  /dev/sdf       lvm  xfs                  5G /oracle
/dev/sdg                                /dev/sdg                  disk LVM2_member         50G
`-/dev/mapper/vg_oracleDIT-lv_oracleDIT /dev/dm-8  /dev/sdg       lvm  xfs                 50G /oracle/DIT
/dev/sdh                                /dev/sdh                  disk LVM2_member        100G
`-/dev/mapper/vg_oraarch-lv_oraarch     /dev/dm-7  /dev/sdh       lvm  xfs                100G /oracle/DIT/oraarch
/dev/sdi                                /dev/sdi                  disk LVM2_member        150G
`-/dev/mapper/vg_oraarch_2-lv_oraarch_2 /dev/dm-6  /dev/sdi       lvm  xfs                150G /oracle/DIT/oraarch2
/dev/sdj                                /dev/sdj                  disk LVM2_member        120G
`-/dev/mapper/vg_flashback-lv_flashback /dev/dm-9  /dev/sdj       lvm  xfs                120G /oracle/DIT/flashback
/dev/sdk                                /dev/sdk                  disk LVM2_member        500G
`-/dev/mapper/vg_sapdata1-lv_sapdata1   /dev/dm-14 /dev/sdk       lvm  xfs                500G /oracle/DIT/sapdata1
/dev/sdl                                /dev/sdl                  disk LVM2_member         30G
`-/dev/mapper/vg_swap-lv_swap           /dev/dm-17 /dev/sdl       lvm  swap              26.2G [SWAP]
  • Description of the issue (ideally so that others can reproduce it): Running rear mkbackup hangs on /usr/sap/trans NFS mountpoint when it tries to locate find /usr -name menu.c32

  • Workaround, if any:
    Edit file

/usr/share/rear/lib/bootloader-functions.sh
file=$( find /usr -name "$1" 2>/dev/null | tail -1 )
change into:
file=$( find /usr -xdev -name "$1" 2>/dev/null | tail -1 )

When we run rear mkbackup again we see in the logs:

2024-12-02 14:37:27.309615774 Including output/ISO/Linux-i386/300_create_isolinux.sh
2024-12-02 14:37:27.315601002 Features based on syslinux version: 6.04
2024-12-02 14:37:27.328634811 Using syslinux prefix: boot/syslinux
mkdir: created directory '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux'
mkdir: created directory '/tmp/rear.LobMkhjuDq5CKgP/tmp/isofs'
'/usr/share/syslinux/isolinux.bin' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/isolinux.bin'
'/usr/share/syslinux/menu.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/menu.c32'
'/usr/share/rear/conf/templates/rear.help' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/rear.help'
'/usr/share/syslinux/chain.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/chain.c32'
'/usr/share/syslinux/ldlinux.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/ldlinux.c32'
'/usr/share/syslinux/libcom32.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/libcom32.c32'
'/usr/share/syslinux/libgpl.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/libgpl.c32'
'/usr/share/syslinux/libmenu.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/libmenu.c32'
'/usr/share/syslinux/libutil.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/libutil.c32'
'/usr/share/syslinux/vesamenu.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/vesamenu.c32'
'/usr/share/syslinux/hdt.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/hdt.c32'
'/usr/share/hwdata/pci.ids' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/pci.ids'
'/usr/share/syslinux/reboot.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/reboot.c32'
'/usr/share/syslinux/poweroff.c32' -> '/tmp/rear.LobMkhjuDq5CKgP/tmp/isolinux/poweroff.c32'
2024-12-02 14:37:27.475938362 Created isolinux configuration
  • Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files):
+ source /usr/share/rear/output/ISO/Linux-i386/300_create_isolinux.sh
++ set_syslinux_features
...
+++ local syslinux_version=6.04
+++ local syslinux_modules_dir=
+++ [[ -n '' ]]
+++ version_newer 6.04 5.00
+++ v1list=(${1//[-.]/ })
+++ local v1list
+++ v2list=(${2//[-.]/ })
+++ local v2list
+++ local max=2
+++ ((  2 < 2  ))
+++ local pos
++++ seq 0 1
+++ for pos in $(seq 0 $(( max -1 )))
+++ ((  10#06 < 10#05  ))
+++ ((  10#06 > 10#05  ))
+++ return 0
+++ [[ -d /usr/lib/syslinux/modules ]]
++++ find /usr -name menu.c32
++++ tail -1
===> ReaR hangs on NFS mountpoint /usr/sap/trans

jsmeix commented at 2024-12-02 14:47:

Cf. https://github.com/rear/rear/issues/2792

An issue that was not pefectly well solved comes back ;-)

gdha commented at 2024-12-03 07:35:

With PR #3351 merged this issue is solved.


[Export of Github issue for rear/rear.]