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
561cfd25
Commit
561cfd25
authored
Jul 11, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update gluster script
parent
2815850a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
config.sh
gluster/update/config.sh
+2
-2
gluster_check_rda-cache-limit.sh
gluster/update/gluster_check_rda-cache-limit.sh
+12
-2
No files found.
gluster/update/config.sh
View file @
561cfd25
...
...
@@ -4,12 +4,12 @@
# деление должно происходить не по пользователям компьютеров, а по тому, есть ли на них gluster-сервер
personal
=
"snail lin-test nun lav asu multi"
servers
=
"server arbiter cellar windsor space1"
servers
=
"server arbiter cellar windsor space1
vbox
"
#No 32-bit:
#personal="snail lin-test lav"
#servers="windsor vbox space1"
hosts
=
"
$personal
$servers
"
clients
=
"
grape ant builder64 euclid
download"
clients
=
"
ant builder64
download"
# builder builder64"
gluster/update/gluster_check_rda-cache-limit.sh
View file @
561cfd25
...
...
@@ -2,10 +2,20 @@
.
config.sh
for
i
in
$personal
$Cclients
$Chosts
;
do
FIX
=
''
if
[
"
$1
"
=
"--fix"
]
;
then
FIX
=
"
$1
"
shift
fi
[
-n
"
$1
"
]
&&
hosts
=
"
$1
"
for
i
in
$hosts
;
do
echo
echo
$i
ssh
$i
bash
-s
<<<
'echo "Arch: $(distr_info -a)" && grep rda-cache-limit /var/lib/glusterd/vols/ftp-pvt/*'
ssh
$i
bash
-s
<<<
'echo "Arch: $(distr_info -a)" && grep rda-cache-limit /var/lib/glusterd/vols/ftp-pvt/*.vol'
[
-n
"
$FIX
"
]
&&
ssh
$i
bash
-s
<<<
'subst "s|5242880(null)|5MB|" /var/lib/glusterd/vols/ftp-pvt/*.vol'
#[ -n "$FIX" ] && ssh $i bash -s <<< 'subst "s|5M$|5MB|" /var/lib/glusterd/vols/ftp-pvt/*.vol'
#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' <<< "reboot"
...
...
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