Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
U
ungleich-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jin-Guk Kwon
ungleich-tools
Commits
ea78ea8f
Commit
ea78ea8f
authored
Sep 26, 2020
by
Jin-Guk Kwon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
25deb102
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
get_ceph_recovery_config
get_ceph_recovery_config
+18
-0
No files found.
get_ceph_recovery_config
0 → 100644
View file @
ea78ea8f
#!/bin/bash -e
rm
-rf
~/rc_test_result
osd_list
=(
$(
ceph tell
'osd.*'
config get osd_recovery_sleep_hdd |
awk
'{print $1}'
)
)
osd_recovery_sleep_hdd
=(
$(
ceph tell
'osd.*'
config get osd_recovery_sleep_hdd |
awk
'{print $2}'
)
)
osd_recovery_op_priority
=(
$(
ceph tell
'osd.*'
config get osd_recovery_op_priority |
awk
'{print $2}'
)
)
osd_recovery_max_single_start
=(
$(
ceph tell
'osd.*'
config get osd_recovery_max_single_start |
awk
'{print $2}'
)
)
osd_recovery_sleep_hybrid
=(
$(
ceph tell
'osd.*'
config get osd_recovery_sleep_hybrid |
awk
'{print $2}'
)
)
osd_max_backfills
=(
$(
ceph tell
'osd.*'
config get osd_max_backfills |
awk
'{print $2}'
)
)
osd_recovery_max_active
=(
$(
ceph tell
'osd.*'
config get osd_recovery_max_active |
awk
'{print $2}'
)
)
osd_recovery_priority
=(
$(
ceph tell
'osd.*'
config get osd_recovery_priority |awk
'{print $2}'
)
)
osd_client_op_priority
=(
$(
ceph tell
'osd.*'
config get osd_client_op_priority |
awk
'{print $2}'
)
)
echo
"|osd|osd_recovery_sleep_hdd|osd_recovery_op_priority|osd_recovery_max_single_start|osd_recovery_sleep_hybrid|osd_max_backfills|osd_recovery_max_active|osd_recovery_priority|osd_client_op_priority|"
>>
~/rc_test_result
for
((
i
=
0
;
i<
${#
osd_max_backfills
[@]
}
;
i++
))
do
echo
"| "
${
osd_list
[
$i
]
}
" |"
${
osd_recovery_sleep_hdd
[
$i
]
}
" | "
${
osd_recovery_op_priority
[
$i
]
}
" | "
${
osd_recovery_max_single_start
}
" | "
${
osd_recovery_sleep_hybrid
[
$i
]
}
" | "
${
osd_max_backfills
[
$i
]
}
" | "
${
osd_recovery_max_active
[
$i
]
}
" | "
${
osd_recovery_priority
[
$i
]
}
" | "
${
osd_client_op_priority
[
$i
]
}
" |"
>>
~/rc_test_result
done
\ No newline at end of file
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