Browse Source

mdraid: first remove the partitions, then add to the md raid

master
Harald Hoyer 16 years ago
parent
commit
308b10311c
  1. 6
      modules.d/90mdraid/65-md-incremental-imsm.rules

6
modules.d/90mdraid/65-md-incremental-imsm.rules

@ -15,11 +15,11 @@ IMPORT{program}="/sbin/mdadm --examine --export $tempnode" @@ -15,11 +15,11 @@ IMPORT{program}="/sbin/mdadm --examine --export $tempnode"

LABEL="do_md_inc"

ENV{DEVTYPE}!="partition", \
RUN+="/sbin/partx -d $env{DEVNAME}"

RUN+="/sbin/mdadm -I --no-degraded $env{DEVNAME}"

RUN+="/bin/sh -c '>/tmp/.mdraid_start-%k; /bin/ln -s /sbin/mdraid_start /initqueue/mdraid_start.sh'"

ENV{DEVTYPE}!="partition", \
RUN+="/sbin/partx -d $env{DEVNAME}"

LABEL="md_inc_end"

Loading…
Cancel
Save