-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmake-raid0.yml
More file actions
38 lines (35 loc) · 1.06 KB
/
make-raid0.yml
File metadata and controls
38 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# file: make-raid0.yml
# $ ansible-playbook make-raid0.yml
#
# DANGER: THIS WILL EAT ALL YOUR DATA
#
# Assumes all drives are UGOOD (Unconfigured Good)
---
- hosts: osds
vars:
options: "pdcache=off WB NORA"
vars_prompt:
- prompt: "What is the Controller ID?"
name: "controller"
default: 0
private: no
- prompt: "What is the Enclosure ID?"
name: "enclosure"
default: 8 #PenguinComputing-8
private: no
- prompt: "Range of drives, start?"
name: "start"
default: 0
private: no
- prompt: "Range of drives, stop?"
name: "stop"
default: 11
private: no
tasks:
- pause:
prompt: |
CAUTION!!! Please confirm data below
Controller: {{ controller }} Enclosure: {{ enclosure }} Range: {{ start }}-{{ stop }} Options: {{ options }}
Press any key to continue, or "Ctrl-C + A" to abort
- name: Creating a bunch of RAID 0
command: storcli /c{{ controller }} add vd each r0 drives={{ enclosure }}:{{ start }}-{{ stop }} {{ options }}