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
55c99a56
Commit
55c99a56
authored
Feb 25, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grflog: add gfid mismatch handle
parent
e3054e1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
grflog
gluster/grflog
+16
-0
No files found.
gluster/grflog
View file @
55c99a56
...
...
@@ -44,3 +44,19 @@ echo "# multiple subvolumes" >>$TASKFILE
grep
"multiple subvolumes"
$0
.
$VOLUME
.sorted.log
>
$0
.
$VOLUME
.multiple.log
cat
$0
.
$VOLUME
.multiple.log |
sed
-e
"s|
$VOLUME
: multiple subvolumes (.*) have file
\(
.*
\)
(preferably rename the file in the backend.*|
$LOCALPATH
\1
|g"
|
sort
-u
>>
$TASKFILE
grep
afr_selfheal_detect_gfid_and_type_mismatch
$GLUSTERLOG
|
sed
-e
"s|.*
\(
afr_selfheal_detect_gfid_and_type_mismatch
\)\]
|
\1
:|g"
>
$0
.
$VOLUME
.gfid.log
sort
-u
<
$0
.
$VOLUME
.gfid.log
>
$0
.
$VOLUME
.gfid.sorted.log
# Gfid mismatch detected
echo
>>
$TASKFILE
echo
"# Gfid mismatch detected"
>>
$TASKFILE
# E [afr-self-heal-entry.c:239:afr_selfheal_detect_gfid_and_type_mismatch] 0-ftp-pub-replicate-1:
# Gfid mismatch detected for <68ddfef8-250a-40c5-ae12-02acfefa08c6/i586-libdolphinprivate4-4.12.4-alt0.M70P.2.i586.rpm>,
# 6878e176-c837-483d-84f5-37bf76b5d162 on ftp-pub-client-3 and
# 0e22ad76-f4a4-45d4-9129-5ea54e6b9896 on ftp-pub-client-2. Skipping conservative merge on the file.
grep
"Gfid mismatch detected for"
$0
.
$VOLUME
.gfid.sorted.log
>
$0
.
$VOLUME
.mismatch.log
cat
$0
.
$VOLUME
.mismatch.log |
sed
-e
"s|.*Gfid mismatch detected for
\(
<.*>
\)
.*|
$LOCALPATH
/
\1
|g"
|
sort
-u
>>
$TASKFILE
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