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
d9fbb338
Commit
d9fbb338
authored
Jun 27, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve gluster scripts
parent
bd703ce7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
grflog
gluster/grflog
+7
-0
healrep
gluster/healrep
+1
-2
No files found.
gluster/grflog
View file @
d9fbb338
...
@@ -33,6 +33,13 @@ echo "# attempting deletion of stale linkfile" >>$TASKFILE
...
@@ -33,6 +33,13 @@ echo "# attempting deletion of stale linkfile" >>$TASKFILE
grep
"attempting deletion of stale linkfile"
$0
.
$VOLUME
.sorted.log
>
$0
.
$VOLUME
.stale.log
grep
"attempting deletion of stale linkfile"
$0
.
$VOLUME
.sorted.log
>
$0
.
$VOLUME
.stale.log
cat
$0
.
$VOLUME
.stale.log |
sed
-e
"s|.*: attempting deletion of stale linkfile
\(
.*
\)
on
$VOLUME
.*|
$LOCALPATH
\1
|g"
|
sort
-u
>>
$TASKFILE
cat
$0
.
$VOLUME
.stale.log |
sed
-e
"s|.*: attempting deletion of stale linkfile
\(
.*
\)
on
$VOLUME
.*|
$LOCALPATH
\1
|g"
|
sort
-u
>>
$TASKFILE
# remote operation failed. Path:
echo
>>
$TASKFILE
echo
"# remote operation failed"
>>
$TASKFILE
# 0-ftp-pub-client-3: remote operation failed. Path:
#grep "remote operation failed" $0.$VOLUME.sorted.log >$0.$VOLUME.remote.log
grep
"remote operation failed"
$GLUSTERLOG
>
$0
.
$VOLUME
.remote.log
cat
$0
.
$VOLUME
.remote.log |
sed
-e
"s|.*: remote operation failed. Path:
\(
.*
\)
(.*|
$LOCALPATH
\1
|g"
|
sort
-u
>>
$TASKFILE
# gfid differs on subvolume
# gfid differs on subvolume
echo
>>
$TASKFILE
echo
>>
$TASKFILE
...
...
gluster/healrep
View file @
d9fbb338
...
@@ -4,6 +4,5 @@ RES=pub
...
@@ -4,6 +4,5 @@ RES=pub
VOLUME
=
ftp-
$RES
VOLUME
=
ftp-
$RES
LOCALPATH
=
/var/ftp/
$RES
LOCALPATH
=
/var/ftp/
$RES
gluster volume heal ftp-pub info split-brain |
grep
"^[</]"
|
sed
-e
"s|^|
$LOCALPATH
/|g"
|
sort
-u
>
$0
.log
gluster volume heal ftp-pub info |
grep
"^[</]"
|
sed
-e
"s|^|
$LOCALPATH
/|g"
|
sort
-u
>
$0
.log
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