diff options
author | Sam Chudnick <sam@chudnick.com> | 2022-05-30 21:38:44 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2022-05-30 21:38:44 -0400 |
commit | 236fd8e9177d8ed497c0577db6eb6b1d5f6ab758 (patch) | |
tree | f83f5b9342e39622cf2bcd86b3893c157238f820 /mkraid | |
parent | 45568d6ee14ff5c517103042b398dba4b0b26669 (diff) |
Diffstat (limited to 'mkraid')
-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-)" |