[PVE-User] How to restart ceph-mon?

Marco Gaiarin gaio at sv.lnf.it
Fri Feb 21 16:18:23 CET 2020


Mandi! Alwin Antreich
  In chel di` si favelave...

> > Anyway, nothing changed. On a rebooted node:
> > 	root at capitanmarvel:~# ps aux | grep ceph[-]mon
> > 	ceph        2725  0.5  0.2 522224 98428 ?        Ssl  feb18  21:14 /usr/bin/ceph-mon -i capitanmarvel --pid-file /var/run/ceph/mon.capitanmarvel.pid -c /etc/ceph/ceph.conf --cluster ceph --setuser ceph --setgroup ceph
> > on a node when i do a 'systemctl restart ceph-mgr@<ID>.service':
> > 	root at hulk:~# ps aux | grep ceph[-]mon
> > 	ceph     4166380  0.8  0.1 466648 55676 ?        Ssl  15:19   0:03 /usr/bin/ceph-mon -f --cluster ceph --id hulk --setuser ceph --setgroup ceph
> I don't see this in the systemd unit files for Ceph. Also my test
> systems do not have the pid file either. Maybe this is something from
> an previous upgrade?

Could be. This cluster (all, indeed) was upgraded from 4.4.

>   systemctl cat ceph-mon@<id>.service
> You can check with the above command how each Ceph service or target
> should be started.

root at capitanmarvel:~# systemctl cat ceph-mon at capitanmarvel.service
# /lib/systemd/system/ceph-mon at .service
[Unit]
Description=Ceph cluster monitor daemon

# According to:
#   http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
# these can be removed once ceph-mon will dynamically change network
# configuration.
After=network-online.target local-fs.target time-sync.target
Wants=network-online.target local-fs.target time-sync.target

PartOf=ceph-mon.target

[Service]
LimitNOFILE=1048576
LimitNPROC=1048576
EnvironmentFile=-/etc/default/ceph
Environment=CLUSTER=ceph
ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
ExecReload=/bin/kill -HUP $MAINPID
PrivateDevices=yes
ProtectHome=true
ProtectSystem=full
PrivateTmp=true
TasksMax=infinity
Restart=on-failure
StartLimitInterval=30min
StartLimitBurst=5
RestartSec=10

[Install]
WantedBy=ceph-mon.target

# /lib/systemd/system/ceph-mon at .service.d/ceph-after-pve-cluster.conf
[Unit]
After=pve-cluster.service


root at hulk:~# systemctl cat ceph-mon at hulk.service 
# /lib/systemd/system/ceph-mon at .service
[Unit]
Description=Ceph cluster monitor daemon

# According to:
#   http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
# these can be removed once ceph-mon will dynamically change network
# configuration.
After=network-online.target local-fs.target time-sync.target
Wants=network-online.target local-fs.target time-sync.target

PartOf=ceph-mon.target

[Service]
LimitNOFILE=1048576
LimitNPROC=1048576
EnvironmentFile=-/etc/default/ceph
Environment=CLUSTER=ceph
ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
ExecReload=/bin/kill -HUP $MAINPID
PrivateDevices=yes
ProtectHome=true
ProtectSystem=full
PrivateTmp=true
TasksMax=infinity
Restart=on-failure
StartLimitInterval=30min
StartLimitBurst=5
RestartSec=10

[Install]
WantedBy=ceph-mon.target

# /lib/systemd/system/ceph-mon at .service.d/ceph-after-pve-cluster.conf
[Unit]
After=pve-cluster.service


seems identical to me...

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the pve-user mailing list