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
322bdc3a
Commit
322bdc3a
authored
Sep 04, 2023
by
Timofey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete ceph_script.sh
parent
7e92cdfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
ceph_script.sh
ceph_script.sh
+0
-32
No files found.
ceph_script.sh
deleted
100755 → 0
View file @
7e92cdfd
#!/bin/bash
# Заправшиваем название серверов
echo
Введите название новод через пробел.
read
srv_name
# устанавливаем ceph-deploy на все ноды:
#for node_name in $srv_name; do ssh $node_name epmi ceph-deploy -y; done
# создаем каталог для конфигов Ceph на основном сервере:
if
[
!
-f
"/etc/ceph"
]
;
then
mkdir
/etc/ceph
fi
# Создаем новый кластер:
ceph-deploy new
$srv_name
# Устанавливаем дистрибутив Ceph на машины:
ceph-deploy instal
$srv_name
# Создаем мониторы, указанные при создании кластера:
ceph-deploy mon create-initial
# Мониторы чему-то автоматически не добавляются в автостарт,
# поэтому добавляем их в systemd руками:
for
node_name
in
$srv_name
;
do
ssh
$srv_name
systemctl
enable
ceph-mon
;
done
# Очищаем и готовим диски к добавлению в кластер:
for
name_name
in
$srv_name
;
do
echo
Введите название диска на узле
$srv_name
например /dev/sda:
read
disk1
;
done
first_server
=
`
echo
${
srv_name
}
|
awk
'{print $1}'
`
ceph-deploy disk zap
$first_name
:disk1
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