forked from IBM/StorageScaleVagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript-05.sh
58 lines (43 loc) · 1.52 KB
/
script-05.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
#!/usr/bin/bash
TASK="Install Storage Scale and create a Storage Scale cluster"
source /vagrant/install/common-preamble.sh
# Install Storage Scale and create Storage Scale cluster
echo "===> Install Storage Scale and create Storage Scale cluster"
sudo /usr/lpp/mmfs/$VERSION/ansible-toolkit/spectrumscale install
## Change admin interface
# Note: Disable configuration of separate admin network, because
# this requires reconfiguration of Zimon Collector.
#echo "==> Change admin interface"
#sudo mmchnode -N m1 --admin-interface m1m.example.com
# Show cluster configuration
echo "===> Show cluster configuration"
sudo mmlscluster
# Show node state
echo "===> Show node state"
sudo mmgetstate -a
# Show cluster health
echo "===> Show cluster health"
sudo mmhealth cluster show
# Show node health
echo "===> Show node health"
sudo mmhealth node show
# Show NSDs
echo "===> Show NSDs"
sudo mmlsnsd
# Show GUI service
echo "===> Show GUI service"
sudo systemctl status --no-pager gpfsgui
# Show Zimon Collector service
echo "===> Show Zimon Collector service"
sudo systemctl status --no-pager pmcollector
# Show Zimon Sensors service
echo "===> Show Zimon Sensors service"
sudo systemctl status --no-pager pmsensors
# Initialize Storage Scale GUI
# Note: The Storage Scale GUI initializes implicitly during first login
# attempt. Initializing the GUI here accelerates the first login.
echo "==> Initialize Storage Scale GUI"
sudo /usr/lpp/mmfs/gui/cli/initgui
# Exit successfully
echo "===> Script completed successfully!"
exit 0