mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 11:22:34 +00:00
ceph: remove obsolete ceph.service and do not distribute it anymore
in nautilus there is no ceph-disk anymore and osd activation does not use udev anymore so this service is not needed anymore remove it and do not copy it when installing a new ceph cluster in pve-storage.target we replace ceph.service with ceph.target Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
cf06393a7a
commit
0b50996da5
@ -129,20 +129,6 @@ __PACKAGE__->register_method ({
|
||||
|
||||
print "\ninstalled ceph $cephver successfully\n";
|
||||
|
||||
if (! -e '/etc/systemd/system/ceph.service') {
|
||||
print "\nreplacing ceph init script with own ceph.service\n";
|
||||
eval {
|
||||
run_command('cp -v /usr/share/doc/pve-manager/examples/ceph.service /etc/systemd/system/ceph.service');
|
||||
run_command('systemctl daemon-reload');
|
||||
run_command('systemctl enable ceph.service');
|
||||
};
|
||||
if (my $err = $@) {
|
||||
warn "WARNING: could not install ceph.service: $@\n";
|
||||
} else {
|
||||
print "installed ceph.service successfully\n";
|
||||
}
|
||||
}
|
||||
|
||||
return undef;
|
||||
}});
|
||||
|
||||
|
@ -31,7 +31,6 @@ install: ${SERVICES}
|
||||
install -d ${SERVICEDIR}/ceph-mds@.service.d
|
||||
install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-mds@.service.d
|
||||
install -d ${DESTDIR}/usr/share/doc/${PACKAGE}/examples/
|
||||
install -m 0644 ceph.service ${DESTDIR}/usr/share/doc/${PACKAGE}/examples/ceph.service
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=PVE activate Ceph OSD disks
|
||||
After=pve-cluster.service
|
||||
Requires=pve-cluster.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/ceph-disk --log-stdout activate-all
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -2,7 +2,7 @@
|
||||
Description=PVE Storage Target
|
||||
Wants=remote-fs.target
|
||||
After=remote-fs.target
|
||||
After=ceph.service
|
||||
After=ceph.target
|
||||
After=ceph-mon.target
|
||||
After=ceph-osd.target
|
||||
After=ceph-mds.target
|
||||
|
Loading…
Reference in New Issue
Block a user