Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
ceph-auto
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Timofey
ceph-auto
Commits
7fc8726b
Commit
7fc8726b
authored
Sep 04, 2023
by
Тимофей Смирнов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gen gatherkeys
parent
2a2bfda6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
ceph_deploy.0.2.sh
ceph_deploy.0.2.sh
+11
-6
No files found.
ceph_deploy.0.2.sh
View file @
7fc8726b
...
...
@@ -115,6 +115,13 @@ ceph-deploy --overwrite-conf mon create ${nodes}
# Создаем сервис мониторинга:
ceph-deploy mgr create
$server_name
# Создаем наборы ключей
cd
/etc/ceph
ceph-deploy gatherkeys
$server_name
#for node in $nodes; do
# ceph-deploy gatherkeys $node
#done
#Создаем Metadata сервера (Если CephFS):
ceph-deploy mds create
$nodes
...
...
@@ -124,8 +131,6 @@ ceph-deploy admin $nodes
# Переменная для хранения OSD
osd_disks
=
""
# Получение списка доступных дисков
available_disks
=
$(
lsblk
-o
NAME,TYPE
-n
|
awk
'$2=="disk" {print $1}'
)
...
...
@@ -135,14 +140,14 @@ osd_disks=""
# Запрос дисков для OSD
for
node
in
$nodes
;
do
read
-p
"Выберите диск для OSD на ноде
$node
(
$available_disks
):"
osd_disk
osd_disks
=
"
$osd_disk
s$node
:
$osd_disk
"
osd_disks
=
"
$osd_disk
"
done
# Добавим в кластер серверы с данными:
for
node
in
$nodes
;
do
echo
-e
"
${
yellow
}
Добавление диска
$
disk
на ноде
$node
в кластер...
${
reset
}
"
ceph-deploy osd create
--data
/dev/
$
disk
$node
echo
-e
"
${
yellow
}
Добавление диска в кластер
$disk
на ноде
$node
завершено.
${
reset
}
"
echo
-e
"
${
yellow
}
Добавление диска
$
osd_disks
на ноде
$node
в кластер...
${
reset
}
"
ceph-deploy osd create
--data
/dev/
$
osd_disks
$node
echo
-e
"
${
yellow
}
Добавление диска в кластер на ноде
$node
завершено.
${
reset
}
"
done
# Завершено
...
...
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