Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ceph
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
certo
ceph
Commits
9c07e81e
Commit
9c07e81e
authored
Jul 26, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Each monitor should run instance of manager
parent
dbc0a9e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Makefile
Makefile
+2
-0
ceph
ceph
+2
-0
No files found.
Makefile
View file @
9c07e81e
...
...
@@ -55,6 +55,7 @@ all: ceph-config
rm
-rf
/lib/ceph
install
-v
-Dm755
-d
/etc/sysconfig
install
-v
-Dm755
-d
/etc/systemd/system/ceph-mon.target.wants
install
-v
-Dm755
-d
/etc/systemd/system/ceph-mgr.target.wants
install
-v
-Dm755
-o
ceph
-g
ceph
-d
/etc/ceph
install
-v
-Dm755
-o
ceph
-g
ceph
-d
/var/lib/ceph/bootstrap-osd
install
-v
-Dm755
-o
ceph
-g
ceph
-d
/var/lib/ceph/mds
...
...
@@ -69,6 +70,7 @@ all: ceph-config
sed
-e
's|^Environment=.*|ExecStartPre=/usr/sbin/ceph-mon-bootstrap|'
-i
/lib/systemd/system/ceph-mon@.service
systemctl
enable
ceph-mon.target
systemctl
enable
ceph-mgr.target
rm
-rf
ceph-14.2.2
...
...
ceph
View file @
9c07e81e
...
...
@@ -68,9 +68,11 @@ ceph_set_mon_hostname() {
local hostname
=
`
$UCI_GET
ceph.mon.hostname
`
if
[
"
$hostname
"
!=
"
$1
"
]
;
then
rm
-f
/etc/systemd/system/ceph-mon.target.wants/ceph-mon@
$hostname
.service
rm
-f
/etc/systemd/system/ceph-mgr.target.wants/ceph-mgr@
$hostname
.service
$UCI_SET
ceph.mon.hostname
=
"
$1
"
$UCI_COMMIT
systemctl
enable
ceph-mon@
$1
.service
systemctl
enable
ceph-mgr@
$1
.service
fi
}
...
...
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