GPFS drops /dev prefix in mtab causing StoRM backend sanity check to fail

XMLWordPrintable

      As we can see in the "MtabUtil.java" code:

      protected static boolean skipLineForMountPoints(String line) {
      
      if (line.startsWith("#") || !line.startsWith("/dev/")) {
      return true;
      }
      return false;
      }
      

      StoRM looks only at entries in "/etc/mtab" that start with "/dev/".
      Latest GPFS version dropped the "/dev/" prefix, so the new mtab format looks for example like this:

      /dev/vda1 / ext4 rw 0 0
      proc /proc proc rw 0 0
      sysfs /sys sysfs rw 0 0
      devpts /dev/pts devpts rw,gid=5,mode=620 0 0
      tmpfs /dev/shm tmpfs rw 0 0
      none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
      fs2 /gpfs/fs2 gpfs rw,relatime,mtime,quota=userquota;groupquota;filesetquota;perfileset,dev=fs2 0 0
      fs3 /gpfs/fs3 gpfs rw,relatime,mtime,quota=userquota;groupquota;filesetquota;perfileset,dev=fs3 0 0
      fs4 /gpfs/fs4 gpfs rw,relatime,nomtime,quota=userquota;groupquota;filesetquota;perfileset,dev=fs4 0 0
      fs5 /gpfs/fs5 gpfs rw,relatime,mtime,quota=userquota;groupquota;filesetquota;perfileset,dev=fs5 0 0
      fs6 /gpfs/fs6 gpfs rw,relatime,nomtime,quota=userquota;groupquota;filesetquota;perfileset,dev=fs6 0 0
      fs1 /gpfs/fs1 gpfs rw,relatime,mtime,quota=userquota;groupquota;filesetquota;perfileset,dev=fs1 0 0
      

      A temporary fix is to disable the sanity checks by adding

      sanity-check.enabled = false
      

      into storm.properties.

      A real fix is necessary.

            Assignee:
            Enrico Vianello
            Reporter:
            Enrico Vianello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: