mathz.nu Asterisk Blacklist Hobby webbhotell

2009/07/10

md device

Filed under: Server — Mathz @ 18:34

mdadm –create /dev/md0 –chunk=4 –level=0 –raid-devices=2 /dev/sda4 /dev/sdb1

mdadm -A <md-device> <components> –homehost=<somestring> –update=homehost

  • sudo nano /etc/udev/rules.d/85-mdadm.rules

Then find this text, which should be the only uncommented text:

 

SUBSYSTEM=="block", ACTION=="add|change", ENV{IDFSTYPE}=="linux_raid*", \
       RUN+="watershed /sbin/mdadm --assemble --scan --no-degraded"

 

Replace the --no-degraded option with the --run option like so:

 

SUBSYSTEM=="block", ACTION=="add|change", ENV{IDFSTYPE}=="linux_raid*", \
       RUN+="watershed /sbin/mdadm --assemble --scan --run"

 

Then propagate the changes to every initrd with the following command:

  • sudo update-initramfs -u -k all

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress