Skip to Content.
Sympa Menu

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

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 14590] New: mdadm behavior in mountroot.sh is slightly incorrect
  • Date: 21 Jul 2008 03:04:05 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=14590

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
fi

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:

#!/bin/sh
RUNLEVEL=3
PROGRAM=/sbin/mdadm
NEEDS="+local_fs"
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.



  • [SM-Grimoire-Bugs] [Bug 14590] New: mdadm behavior in mountroot.sh is slightly incorrect, bugzilla-daemon, 07/20/2008

Archive powered by MHonArc 2.6.24.

Top of Page