forked from Seagate/cortx-motr-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andriy Tkachuk <[email protected]>
- Loading branch information
Showing
17 changed files
with
68 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,22 +20,22 @@ | |
|
||
#!/usr/bin/env bash | ||
# | ||
# This script clean install given Mero packages. | ||
# This script clean install given Motr packages. | ||
# It should work on Red Hat and Debian based systems. | ||
# | ||
# Ganesan Umanesan <[email protected]> | ||
# 23/01/2017 | ||
|
||
# Takes a positive integer as an input and generates those many | ||
# distinct end-points for concurrent m0_instances. The | ||
# script assumes the presence of conf.xc in /etc/mero | ||
# script assumes the presence of conf.xc in /etc/motr | ||
# | ||
# Nachiket Sahasrabudhe <[email protected]> | ||
# 28/06/2018 | ||
|
||
|
||
|
||
conf="/etc/mero/conf.xc" | ||
conf="/etc/motr/conf.xc" | ||
base_port=301 | ||
IP="" | ||
port="" | ||
|
@@ -54,7 +54,7 @@ sanity_check() | |
{ | ||
if [ ! -f $conf ] | ||
then | ||
echo "Configuration file does not exist at /etc/mero" | ||
echo "Configuration file does not exist at /etc/motr" | ||
return 1 | ||
fi | ||
string=`grep $IP $conf | cut -d'"' -f 2 | cut -d ':' -f 1` | ||
|
@@ -73,7 +73,7 @@ sanity_check() | |
unused_port_get() | ||
{ | ||
hint=$1 | ||
port_list=`grep $IP /etc/mero/conf.xc | cut -d '"' -f 2 | cut -d ':' -f 4` | ||
port_list=`grep $IP /etc/motr/conf.xc | cut -d '"' -f 2 | cut -d ':' -f 4` | ||
while [[ $port_list = *"$hint"* ]] | ||
do | ||
hint=$(($hint+1)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
|
||
#!/usr/bin/env bash | ||
# | ||
# This script clean install given Mero packages. | ||
# This script clean install given Motr packages. | ||
# It should work on Red Hat and Debian based systems. | ||
# | ||
# Ganesan Umanesan <[email protected]> | ||
|
@@ -32,39 +32,39 @@ if [[ "$#" -ne 1 ]]; then | |
exit | ||
fi | ||
|
||
RPM1=$1mero-*.rpm | ||
RPM2=$1mero-devel-*.rpm | ||
RPM1=$1motr-*.rpm | ||
RPM2=$1motr-devel-*.rpm | ||
|
||
#mero rpm | ||
#motr rpm | ||
if [ ! -e $RPM1 ]; then | ||
echo $RPM1 | ||
echo "error! mero rpm does not exist" | ||
echo "error! motr rpm does not exist" | ||
exit | ||
fi | ||
|
||
#mero-devel rpm | ||
#motr-devel rpm | ||
if [ ! -e $RPM2 ]; then | ||
echo $RPM2 | ||
echo "error! mero-devel rpm does not exist" | ||
echo "error! motr-devel rpm does not exist" | ||
exit | ||
fi | ||
|
||
|
||
#stop mero | ||
#stop motr | ||
sudo m0singlenode stop | ||
|
||
#remove existing mero | ||
sudo yum remove -y mero mero-devel | ||
sudo rm -rf /etc/mero/ /var/mero | ||
#remove existing motr | ||
sudo yum remove -y motr motr-devel | ||
sudo rm -rf /etc/motr/ /var/motr | ||
sudo umount /mnt/m0t1fs | ||
sudo rm -rf /mnt/m0t1fs | ||
|
||
#install new mero | ||
#install new motr | ||
sudo yum install -y $RPM1 $RPM2 | ||
sudo m0singlenode activate | ||
sudo m0setup -cv | ||
sudo m0setup -Mv | ||
|
||
#start mero | ||
#start motr | ||
sudo m0singlenode start | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.