Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
64031d26
Commit
64031d26
authored
Aug 20, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit gluster update scripts
parent
b35ab879
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
config.sh
gluster/update/config.sh
+4
-2
glustertest.sh
gluster/update/glustertest.sh
+3
-2
glusterupdate.sh
gluster/update/glusterupdate.sh
+2
-2
No files found.
gluster/update/config.sh
View file @
64031d26
#!/bin/bash
hosts
=
"snail lin-test cellar windsor nun lav vbox asu multi space1 localhost"
clients
=
"euclid atlant grape buh"
personal
=
"snail lin-test nun lav asu multi euclid"
servers
=
"cellar windsor vbox space1 localhost"
hosts
=
"
$personal
$servers
"
clients
=
"atlant grape buh"
# builder builder64"
gluster/update/glustertest.sh
View file @
64031d26
...
...
@@ -2,9 +2,10 @@
.
config.sh
for
i
in
$hosts
;
do
for
i
in
$
personal
$Cclients
$C
hosts
;
do
echo
$i
#ssh $i $SUDO 'bash -s' <<< "epm --auto Install glusterfs3 && serv glusterd condrestart"
ssh
$i
$SUDO
'bash -s'
<<<
"epm update ; epm update-kernel"
#ssh $i $SUDO 'bash -s' <<< "epm update ; epm update-kernel"
ssh
$i
$SUDO
'bash -s'
<<<
"reboot"
#ssh $i $SUDO 'bash -s' <<< "killall glusterd && sleep 1 && service glusterd restart"
done
gluster/update/glusterupdate.sh
View file @
64031d26
...
...
@@ -10,7 +10,7 @@ do
then
ssh
$i
'bash -s'
<<<
"
$@
"
else
bash
-c
"
$@
"
bash
<<<
"
$@
"
fi
done
}
...
...
@@ -45,7 +45,7 @@ gfs_mount_plus(){
echo
'Remount /var/ftp/* at windsor:'
ssh windsor
'bash -s'
<<<
"/root/bin/remount.sh /var/ftp/pub; /root/bin/remount.sh /var/ftp/pvt; /root/bin/remount.sh /var/ftp/tmp"
echo
'builder remount'
ssh windsor
'bash -s'
<<<
"vzctl
501 exec
/etc/rc.d/rc.local"
ssh windsor
'bash -s'
<<<
"vzctl
exec 501
/etc/rc.d/rc.local"
echo
'builder64 remount'
ssh builder64
'bash -s'
<<<
"/etc/rc.d/rc.local"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment