2323
2424# THE FOLLOWING LINES OF CODE DOWNLOADS STORAGE SCALE, INSTALLS IT AND CREATES A CLUSTER
2525# ----------------------------------------------------------------------------------------------
26- WORKING_DIR=" DOWNLOAD_STORAGE_SCALE"
26+ WORKSPACE_PATH=$( pwd)
27+ WORKING_DIR=" $WORKSPACE_PATH /DOWNLOAD_STORAGE_SCALE"
2728mkdir -p $WORKING_DIR
2829cd $WORKING_DIR
2930echo $PWD
@@ -39,8 +40,9 @@ aws configure set aws_secret_access_key ${AWS_SECRET_KEY}
3940aws s3api get-object --bucket centos-ci --key " version_to_use.txt" " version_to_use.txt"
4041VERSION_TO_USE=$( cat version_to_use.txt)
4142echo ${VERSION_TO_USE}
42- aws s3api get-object --bucket centos-ci --key " ${VERSION_TO_USE} " " Storage_Scale_Developer-5.1.9.0-x86_64-Linux-install.zip"
43- unzip Storage_Scale_Developer-5.1.9.0-x86_64-Linux-install.zip
43+ aws s3api get-object --bucket centos-ci --key " ${VERSION_TO_USE} " " ${VERSION_TO_USE} "
44+ mkdir " $WORKING_DIR /INSTALL_PATH"
45+ unzip ${VERSION_TO_USE} -d INSTALLER_PATH/
4446
4547ssh-keygen -b 2048 -t rsa -f ~ /.ssh/id_rsa -q -N " "
4648cat ~ /.ssh/id_rsa.pub >> ~ /.ssh/authorized_keys
@@ -56,31 +58,37 @@ for new_ip in $(echo $ip_address | awk -F '.' '{for(i=$4+1;i<=255;i++){print $1"
5658
5759echo " $USABLE_IP cesip1" >> /etc/hosts
5860
59- INSTALLER_VERSION=$( echo ${VERSION_TO_USE/ .zip/ } )
60- chmod +x $INSTALLER_VERSION
61- ./$INSTALLER_VERSION --silent
61+ INSTALLER_VERSION=$( ls INSTALLER_PATH/ --ignore=" *.md5" --ignore=" *.README" --ignore=" *.pgp" )
62+ INSTALLER=$( readlink -f INSTALLER_PATH/${INSTALLER_VERSION} )
63+ chmod +x $INSTALLER
64+ $INSTALLER --silent
6265
63- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale setup -s 127.0.0.1 --storesecret;
64- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale node add $( hostname) -n;
65- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale node add $( hostname) -p;
66- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale config protocols -e $USABLE_IP ;
67- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale node add -a $( hostname) ;
68- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale config gpfs -c $( hostname) _cluster;
66+ export PATH=" $PATH :$( readlink -f /usr/lpp/mmfs/* /ansible-toolkit/) "
67+
68+ spectrumscale setup -s 127.0.0.1 --storesecret;
69+ spectrumscale node add $( hostname) -n;
70+ spectrumscale node add $( hostname) -p;
71+ spectrumscale config protocols -e $USABLE_IP ;
72+ spectrumscale node add -a $( hostname) ;
73+ spectrumscale config gpfs -c $( hostname) _cluster;
6974dd if=/dev/zero of=/home/nsd1_c84f2u09-rhel88a1 bs=1M count=8192;
70- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale nsd add -p $( hostname) -u dataAndMetadata -fs ${STORAGE_SCALE_VOLUME} -fg 1 /home/nsd1_c84f2u09-rhel88a1;
71- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale config protocols -f ${STORAGE_SCALE_VOLUME} -m /ibm/${STORAGE_SCALE_VOLUME} ;
72- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale enable nfs;
73- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale enable smb;
74- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale callhome disable;
75- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale config perfmon -r off;
76- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale node list;
77- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale install --precheck;
78- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale install;
79- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale deploy --precheck;
80- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale deploy;
81-
82- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale nsd list
83- /usr/lpp/mmfs/5.1.9.0/ansible-toolkit/spectrumscale filesystem list
75+ spectrumscale nsd add -p $( hostname) -u dataAndMetadata -fs ${STORAGE_SCALE_VOLUME} -fg 1 /home/nsd1_c84f2u09-rhel88a1;
76+ spectrumscale config protocols -f ${STORAGE_SCALE_VOLUME} -m /ibm/${STORAGE_SCALE_VOLUME} ;
77+ spectrumscale enable nfs;
78+ spectrumscale enable smb;
79+ spectrumscale callhome disable;
80+ spectrumscale config perfmon -r off;
81+ spectrumscale node list;
82+ spectrumscale install --precheck;
83+ spectrumscale install;
84+ spectrumscale deploy --precheck;
85+ spectrumscale deploy;
86+
87+ spectrumscale nsd list
88+ spectrumscale filesystem list
89+
90+ sleep 30m
91+
8492# ----------------------------------------------------------------------------------------------
8593
8694# THE FOLLOWING LINES OF CODE CLONES THE SOURCE CODE, RPMBUILD AND INSTALLS THE RPMS
0 commit comments