forked from IBM/StorageScaleVagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script-02.sh
47 lines (33 loc) · 1.23 KB
/
script-02.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
#!/usr/bin/bash
# Improve readability of output
echo "========================================================================================="
echo "===>"
echo "===> Running $0"
echo "===> Add second storage pool to filesystem fs1"
echo "===>"
echo "========================================================================================="
# Print commands and their arguments as they are executed
set -x
# Exit script immediately, if one of the commands returns error code
set -e
# Show storage pools of filesystem fs1
echo "===> Show storage pools of filesystem fs1"
mmlspool fs1
# Show usage of filesystem fs1
echo "===> Show usage of filesystem fs1"
mmdf fs1
# Show the stanza file that describe the new disks
echo "===> Show the stanza file that describe the new disks"
cat /vagrant/files/spectrumscale/stanza-fs1-capacity
# Add NSDs to new capacity storage pool
echo "===> Add NSDs to new capacity storage pool"
sudo mmadddisk fs1 -F /vagrant/files/spectrumscale/stanza-fs1-capacity
# Show storage pools of filesystem fs1
echo "===> Show storage pools of filesystem fs1"
mmlspool fs1
# Show usage of filesystem fs1
echo "===> Show usage of filesystem fs1"
mmdf fs1
# Exit successfully
echo "===> Script completed successfully!"
exit 0