-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sh
112 lines (92 loc) · 2.32 KB
/
config.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/bin/bash
# NOTE: recordsize is applied to ZFS Dataset when setting recordsize=X OR applied to ZFS ZVOL when setting volblocksize=X
# Reset Variables
unset datasets
unset sizes
unset recordsizes
unset compressions
# Initialize Variables to Empty Arrays
sizes=()
datasets=()
recordsizes=()
compressions=()
# Flag to indicate to inherite the setting of the parent Dataset (or use ZFS default setting in case the Parent does NOT have a custom property value set)
zfsdefault="inherit"
#
# sizes: Define ZVOL sizes in GB if applicable
# Be VERY generous with the allocations since no reservation of space is made
# Define Dataset
datasets+=("BUILD")
sizes+=("128G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("CACHE")
sizes+=("128G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("CERTIFICATES")
sizes+=("16G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("COMPOSE")
sizes+=("16G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("CONFIG")
sizes+=("16G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("DATA")
sizes+=("256G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("DB")
sizes+=("256G")
recordsizes+=("16K")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("IMAGES")
sizes+=("128G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("LOCAL")
sizes+=("128G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("LOG")
sizes+=("128G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("ROOT")
sizes+=("128G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define datasets
datasets+=("SECRETS")
sizes+=("128G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("STORAGE")
sizes+=("256G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("VOLUMES")
sizes+=("256G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")
# Define Dataset
datasets+=("TMP")
sizes+=("256G")
recordsizes+=("${zfsdefault}")
compressions+=("${zfsdefault}")