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

claim /run/snapm path for locks, mounts and state tracking

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • rhel-10.1, rhel-9.7
    • snapm
    • None
    • rhel-storage-management
    • storage-management Sprint 7
    • 2
    • False
    • Hide

      None

      Show
      None
    • None

      The recently merged manager-level locking for snapm uses /run/lock/snapm. The parent directory, /run/lock is now deprecated by systemd, and will be removed in systemd-v259:

      https://lwn.net/Articles/1041316/

      https://github.com/systemd/systemd/pull/38644

      Downstream distributions and components that still wish to make used of the directory (serial port locks, lvm, legacy sysv subsystem locking) are encouraged to ship downstream tmpfiles configurations to preserve access to the path.

      This is potentially problematic due to the fragmentation problems described by the Debian developers and keszybz: let's side-step the problem by having our own top level directory in /run:

       
       * /run/snapm/lock/ currently contains one file: manager.lock. Directory reserved for future expansion to snapshot-set level locking if required. * /run/snapm/mounts contains snapshot set mounts managed by snapm. One directory per mounted snapshot set /run/snapm/mounts/myset/...
       * (possibly) /run/snapm/scratch a size-constrained tmpfs instance used for temporary storage and working files

      Moving the locking over is a simple task (modifying a few constants and testing). The additional directories (mounts etc.) will be added by their respective subsystems (e.g. in RHEL-111300)

              rhn-support-bmr Bryn Reeves
              rhn-support-bmr Bryn Reeves
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: