Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-6964

Disk is not excluded from recreation even if all data in it is excluded

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-8.5.0
    • rear
    • None
    • Moderate
    • sst_cs_system_management
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      From the doc:

      1. You cannot exclude a device (e.g. /dev/sdg) directly. Instead you have to exclude everything
      2. ON that device and then the dependency tracker will automatically exclude the device from the
      3. recovery (because there won't be any recovery information for that "unnecessary" device).

        => I understand that a device should be excluded if all the content of it is excluded, right ?

      Version-Release number of selected component (if applicable):
      rear-2.6-3.el8

      How reproducible:
      always

      Steps to Reproduce:
      1. mount a device on /mnt:
      /dev/vdb on /mnt type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
      2. exclude the content of this mount point in local.conf:
      BACKUP_PROG_EXCLUDE=('/tmp/' '/dev/shm/' '/mnt/*' )
      3. run rear -dD mkbackup

      Actual results:

      /mnt is in include and also exclude list:

      2022-01-31 03:55:21.607004724 Include list:
      2022-01-31 03:55:21.608574187 /
      2022-01-31 03:55:21.610103973 /boot/efi
      2022-01-31 03:55:21.611596090 /boot
      2022-01-31 03:55:21.613123105 /mnt
      2022-01-31 03:55:21.614607219 Exclude list:
      2022-01-31 03:55:21.616118655 /tmp/*
      2022-01-31 03:55:21.617591045 /dev/shm/*
      2022-01-31 03:55:21.619125130 /mnt/*
      2022-01-31 03:55:21.620635750 /usr/*
      2022-01-31 03:55:21.622085199 /var/*
      2022-01-31 03:55:21.623513501 /tmp/rear.FOC2JRt0rV15jr9

      And vdb is in disk layout:

      disk /dev/vdb 536870912 loop
      fs /dev/vdb /mnt xfs uuid=6f06686e-dda0-4578-99e3-9eb1297a04da label= options=rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota

      todo:

      todo /dev/vdb disk
      todo fs:/mnt fs

      Expected results:
      disk vdb not touched

      Additional info:
      I did't dig to find the dependency tracker to understand why the device is not excluded.
      Please let me know if help is needed.
      Thank you !

            rhn-support-pcahyna Pavel Cahyna
            rhn-support-bwelterl Benoit Welterlen
            Pavel Cahyna Pavel Cahyna
            rhel-cs-system-management-subsystem-qe Bot rhel-cs-system-management-subsystem-qe Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: