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
bbd53b77
Commit
bbd53b77
authored
Dec 17, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
again glusterupdate.sh rewrite??
parent
8941d80b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
glusterupdate.sh
gluster/update/glusterupdate.sh
+29
-12
No files found.
gluster/update/glusterupdate.sh
View file @
bbd53b77
...
...
@@ -39,7 +39,22 @@ gfs_start(){
gfs_mount_plus
(){
echo
'Remount /var/ftp/* at cellar:'
ssh cellar
'bash -s'
<<<
"/root/bin/remount.sh /var/ftp/pub; /root/bin/remount.sh /var/ftp/pvt; /root/bin/remount.sh /var/ftp/tmp"
ssh cellar
<<
EOF
/root/bin/remount.sh /var/ftp/pub
/root/bin/remount.sh /var/ftp/pvt
/root/bin/remount.sh /var/ftp/tmp
sleep 2
umount -fl /net/exports/var/ftp/pub
umount -fl /net/exports/var/ftp/pvt
umount -fl /net/exports/var/ftp/tmp
umount -fl /net/exports/var/ftp/pub
umount -fl /net/exports/var/ftp/pvt
umount -fl /net/exports/var/ftp/tmp
sleep 2
mount -a
sleep 2
exportfs -r
EOF
echo
'Eter-2.1 remount:'
ssh cellar
'bash -s'
<<<
"vzctl exec 225 /etc/rc.d/rc.local"
...
...
@@ -47,21 +62,22 @@ gfs_mount_plus(){
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 exec 501 /etc/rc.d/rc.local"
echo
'builder64 remount'
ssh builder64
'bash -s'
<<<
"/etc/rc.d/rc.local"
#echo 'builder64 remount'
#ssh builder64 'bash -s' <<< "/etc/rc.d/rc.local"
echo
'vbox remount'
ssh vbox
'bash -s'
<<<
"/etc/rc.d/rc.local"
echo
'Remount server pasta:'
umount
-fl
/var/ftp/incoming
umount
-fl
/var/ftppub/pub
umount
-fl
/var/ftp/pub
umount
-fl
/var/ftp/pvt
umount
-fl
/var/ftp/tmp
umount
-fl
/var/ftp/garbag
e
umount
-fl
/net/exports/var/ftp/pub
while
[
$(
umount
-fl
/var/ftp/incoming
)
]
;
do
true
;
done
#
umount -fl /var/ftppub/pub
while
[
$(
umount
-fl
/var/ftp/pub
)
]
;
do
true
;
done
while
[
$(
umount
-fl
/var/ftp/pvt
)
]
;
do
true
;
done
while
[
$(
umount
-fl
/var/ftp/tmp
)
]
;
do
true
;
done
while
[
$(
umount
-fl
/var/ftp/garbage
)
]
;
do
true
;
don
e
while
[
$(
umount
-fl
/net/exports/var/ftp/pub
)
]
;
do
true
;
done
sleep
3
killall glusterfs
sleep
3
mount /var/ftppub/pub
#
mount /var/ftppub/pub
mount /var/ftp/pub
mount /var/ftp/pvt
mount /var/ftp/tmp
...
...
@@ -78,6 +94,7 @@ gfs_mount_plus(){
case
$1
in
all
)
run_on_hosts mount
-a
run_on_hosts epmI
--auto
glusterfs3-server
gfs_stop
gfs_start
...
...
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