[SM-Grimoire-Bugs] [Bug 14590] New: mdadm behavior in mountroot.sh is slightly incorrect

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Sun Jul 20 23:04:05 EDT 2008


           Summary: mdadm behavior in mountroot.sh is slightly incorrect
           Product: Codex
           Version: stable grimoire
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: disk
        AssignedTo: sm-grimoire-bugs at lists.ibiblio.org
        ReportedBy: seth at swoolley.homeip.net

in mountroot.sh we see:
  # Prefer the newer mdadm to raidtools
  if   [ -f /etc/mdadm.conf ] ; then
    mdadm  --assemble  --scan
    mdadm  --follow    --scan  --delay=120  --daemonise  >  /var/run/mdadm.pid
  elif [ -f /etc/raidtab    ] ; then
    raidstart  --all

The mdadm --follow -- daemonize line should not be run here.  We don't know
what /var/run is mounted to in any case.  This is just to get root up and
running -- nothing requiring write access should run here.  I got a permission
denied error writing to the pid file.  Instead, that line should be commented
out (the --assemble --scan line is still good in case root is a "md" device).

The proper way to do it is to have the mdadm spell have its own init script:

ARGS="--follow --scan --delay=120 --daemonize -i /var/run/mdadm.pid"
. /etc/init.d/smgl_init

In any case, this is only necessary if there's an email address in mdadm.conf
(fortunately the program exits if there is none).

Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the SM-Grimoire-Bugs mailing list