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
e794fd68
Commit
e794fd68
authored
Aug 14, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scripts
parent
7ce850e4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
1 deletion
+62
-1
df_vz.sh
vz/df_vz.sh
+6
-0
doeverywhere.sh
vz/doeverywhere.sh
+21
-0
pkgeverywhere.sh
vz/pkgeverywhere.sh
+1
-1
upgrade_glusterfs.sh
vz/test/upgrade_glusterfs.sh
+34
-0
No files found.
vz/df_vz.sh
0 → 100755
View file @
e794fd68
#!/bin/sh
df
-h
|
grep
vz/private
echo
"Total in Gb:"
wcalc
"(0 +
$(
df
-k
|
grep
vz/private |
cut
-b
37-47 | xargs
-n1
echo
-n
" + "
)
)/1024/1024"
df
-h
/var/lib/vz
\ No newline at end of file
vz/doeverywhere.sh
0 → 100755
View file @
e794fd68
#!/bin/bash
#exec &>./doeverywhere.log
HOSTS
=
"devel windsor cellar priv host03 fund clients de01 azbyka azbykar telros"
for
i
in
$HOSTS
do
VZLIST
=
$(
ssh
$i
' vzlist|tr -s " "|cut -f2 -d" "|grep -v CTID '
)
for
j
in
$VZLIST
do
echo
echo
$i
'-'
$j
':'
echo
###ssh $i vzctl exec $j <<<place the command here (with spaces without quotes)>>>
ssh
$i
vzctl
exec
$j
apt-cache policy glusterfs3-client
done
done
vz/pkgeverywhere.sh
View file @
e794fd68
...
...
@@ -3,7 +3,7 @@
#exec &>./pkgeverywhere.log
HOSTS
=
"devel windsor cellar priv host03 fund clients de01 azbyka azbykar telros"
PACKAGE
=
"
openssh-server openssl
"
PACKAGE
=
"
glibc
"
#PACKAGE="openssl"
for
i
in
$HOSTS
...
...
vz/test/upgrade_glusterfs.sh
0 → 100755
View file @
e794fd68
#!/bin/bash
#vzctl exec 1001 apt-get update
#vzctl exec 1001 apt-get install glusterfs3-server glusterfs3-client
#vzctl exec 1002 apt-get update
#vzctl exec 1002 apt-get install glusterfs3-server glusterfs3-client
#sleep 3
vzctl
exec
1001 service glusterd start
vzctl
exec
1002 service glusterd start
vzctl
exec
1001
mkdir
-p
/var/local/eterglust
vzctl
exec
1002
mkdir
-p
/var/local/eterglust
sleep
3
vzctl
exec
1001 gluster peer probe host1002
vzctl
exec
1001 gluster volume create
test
replica 2 host1001:/var/local/eterglust host1002:/var/local/eterglust force
sleep
3
vzctl
exec
1001 gluster volume start
test
sleep
3
vzctl
exec
1002
mkdir
-p
/mnt/test
vzctl
exec
1002 mount
-t
glusterfs host1001:test /mnt/test
vzctl
exec
1002
df
-h
/mnt/test
vzctl
exec
1002
mkdir
-p
/mnt/testtmp
vzctl
exec
1002 mount
-t
glusterfs lav:ftp-tmp /mnt/testtmp
vzctl
exec
1002
df
-h
/mnt/testtmp
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