~ubuntu-branches/ubuntu/karmic/mdadm/karmic

« back to all changes in this revision

Viewing changes to debian/checkarray

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2008-06-03 14:59:18 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20080603145918-sf648wmpi5d3ites
Tags: 2.6.4-2ubuntu1
* Merge from debian unstable, remaining changes:
 * md activation:
  - We now have a single udev rule for both the real system and the
    initramfs, since doing things differently there will only result in bugs
    and confusion.
  - This rule runs "mdadm --assemble --scan --no-degraded", automatically
    activating any non-degraded device as their components are detected.
  - Drop the mdadm-raid init script, since this does the same thing.
  - Also drop mdadm-startall which uses the mdadm-raid init script, and its
    associated sgml file (thus dropping the build-dep on docbook-to-man)
  - Simplify the configuration, since we always autostart all devices so do
    not need to specify any required root devices, etc.
  - Drop the deprecated mdrun entirely.
  - Since udev autostarts arrays, much of the initramfs script can be
    dropped.
 * Install a new udev rule at 65 which runs vol_id on clean raid arrays.
   This will cause lvm, etc. to be run (since there is vol_id information
   present for the enclosed filesystem).
 * Depend on initramfs-tools, specifically a version that doesn't ship
   the mdrun script. and a version that supports the mountfail functionality,
   see below. This way we can clean out a lot of the upgrade handling
   from the initramfs hook.
 * Just get initramfs to load the modules for us
 * Create init-premount hook script for the initramfs, to provide
   information at boot, if the root device is not functional.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
fi
110
110
 
111
111
if [ -z "$(ls /sys/block/md* 2>/dev/null)" ]; then
112
 
  [ $quiet -lt 2 ] && echo "$PROGNAME: W: no active MD arrays found." >&2
113
 
  [ $quiet -lt 2 ] && echo "$PROGNAME: W: (maybe uninstall the mdadm package?)" >&2
 
112
  if [ $quiet -lt 2 ] && [ $cron != 1 ]; then
 
113
    echo "$PROGNAME: W: no active MD arrays found." >&2
 
114
    echo "$PROGNAME: W: (maybe uninstall the mdadm package?)" >&2
 
115
  fi
114
116
  exit 5
115
117
fi
116
118
 
117
119
if [ -z "$(ls /sys/block/md*/md/level 2>/dev/null)" ]; then
118
 
  [ $quiet -lt 2 ] && echo "$PROGNAME: W: kernel too old, no support for redundancy checks." >&2
 
120
  [ $quiet -lt 2 ] && echo "$PROGNAME: E: kernel too old, no support for redundancy checks." >&2
119
121
  exit 6
120
122
fi
121
123
 
125
127
fi
126
128
 
127
129
if [ -z "$(ls /sys/block/md*/md/sync_action 2>/dev/null)" ]; then
128
 
  [ $quiet -lt 2 ] && echo "$PROGNAME: W: no kernel support for redundancy checks." >&2
 
130
  [ $quiet -lt 2 ] && echo "$PROGNAME: E: no kernel support for redundancy checks." >&2
129
131
  exit 3
130
132
fi
131
133