diff options
-rwxr-xr-x | mkraid | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -42,10 +42,6 @@ done | |||
42 | numdevs=$(echo $devices | tr ' ' '\n' | wc -l) | 42 | numdevs=$(echo $devices | tr ' ' '\n' | wc -l) |
43 | numspare=$(echo $spares | tr ' ' '\n' | wc -l) | 43 | numspare=$(echo $spares | tr ' ' '\n' | wc -l) |
44 | 44 | ||
45 | echo "mdadm --create /dev/md$id --level=$level --raid-devices=$numdevs $devices --spare-devices=$numspare $spares" | ||
46 | |||
47 | exit | ||
48 | |||
49 | mdadm --create /dev/md$id --level=$level --raid-devices=$numdevs $devices --spare-devices=$numspare $spares | 45 | mdadm --create /dev/md$id --level=$level --raid-devices=$numdevs $devices --spare-devices=$numspare $spares |
50 | 46 | ||
51 | uuid="$(mdadm --detail /dev/md0 | grep UUID | tr -d '[:space:]' | cut -d ':' -f 2-)" | 47 | uuid="$(mdadm --detail /dev/md0 | grep UUID | tr -d '[:space:]' | cut -d ':' -f 2-)" |