ceph-报错1


[root@localhost ~]# ceph orch host add ceph1
Error EINVAL: New host ceph1 (ceph1) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', "No time sync service is running; checked for ['chrony.service', 'chronyd.service', 'systemd-timesyncd.service', 'ntpd.service', 'ntp.service', 'ntpsec.service']", 'Hostname "ceph1" matches what is expected.', 'ERROR: No time synchronization is active']
[root@localhost ~]# ceph orch host add ceph1
Error EINVAL: New host ceph1 (ceph1) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', "No time sync service is running; checked for ['chrony.service', 'chronyd.service', 'systemd-timesyncd.service', 'ntpd.service', 'ntp.service', 'ntpsec.service']", 'Hostname "ceph1" matches what is expected.', 'ERROR: No time synchronization is active']
[root@localhost ~]# systemctl status chrony
Unit chrony.service could not be found.
[root@localhost ~]# systemctl status chronyd
● chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2021-11-12 23:09:44 CST; 1h 46min ago
     Docs: man:chronyd(8)
           man:chrony.conf(5)
 Main PID: 77000 (chronyd)
    Tasks: 1 (limit: 4752)
   Memory: 1.0M
   CGroup: /system.slice/chronyd.service
           └─77000 /usr/sbin/chronyd

Nov 12 23:09:44 ceph2 systemd[1]: chronyd.service: Succeeded.
Nov 12 23:09:44 ceph2 systemd[1]: Stopped NTP client/server.
Nov 12 23:09:44 ceph2 systemd[1]: Starting NTP client/server...
Nov 12 23:09:44 ceph2 chronyd[77000]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
Nov 12 23:09:44 ceph2 chronyd[77000]: Frequency 0.000 +/- 1000000.000 ppm read from /var/lib/chrony/drift
Nov 12 23:09:44 ceph2 chronyd[77000]: Using right/UTC timezone to obtain leap second data
Nov 12 23:09:44 ceph2 systemd[1]: Started NTP client/server.
Nov 12 23:09:50 ceph2 chronyd[77000]: Selected source 111.230.189.174
Nov 12 23:09:50 ceph2 chronyd[77000]: System clock TAI offset set to 37 seconds
[root@localhost ~]# systemctl status ntod
Unit ntod.service could not be found.
[root@localhost ~]# systemctl status ntpd
Unit ntpd.service could not be found.
[root@localhost ~]# ceph orch host add 192.168.1.5
Error EINVAL: New host 192.168.1.5 (192.168.1.5) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', "No time sync service is running; checked for ['chrony.service', 'chronyd.service', 'systemd-timesyncd.service', 'ntpd.service', 'ntp.service', 'ntpsec.service']", 'Hostname "192.168.1.5" matches what is expected.', 'ERROR: No time synchronization is active', 'hostname "ceph1" does not match expected hostname "192.168.1.5"']
[root@localhost ~]# systemctl enable chronyd 
[root@localhost ~]# ceph orch host add 192.168.1.5
Error EINVAL: New host 192.168.1.5 (192.168.1.5) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', 'Unit chronyd.service is enabled and running', 'Hostname "192.168.1.5" matches what is expected.', 'ERROR: hostname "ceph1" does not match expected hostname "192.168.1.5"']
[root@localhost ~]# ceph orch host add ceph1
[root@localhost ~]# ceph orch host add ceph1
Error EINVAL: New host ceph1 (ceph1) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', "No time sync service is running; checked for ['chrony.service', 'chronyd.service', 'systemd-timesyncd.service', 'ntpd.service', 'ntp.service', 'ntpsec.service']", 'Hostname "ceph1" matches what is expected.', 'ERROR: No time synchronization is active']
[root@localhost ~]# ceph orch host add ceph1
Error EINVAL: New host ceph1 (ceph1) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', "No time sync service is running; checked for ['chrony.service', 'chronyd.service', 'systemd-timesyncd.service', 'ntpd.service', 'ntp.service', 'ntpsec.service']", 'Hostname "ceph1" matches what is expected.', 'ERROR: No time synchronization is active']
[root@localhost ~]# systemctl status chrony
Unit chrony.service could not be found.
[root@localhost ~]# systemctl status chronyd
● chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2021-11-12 23:09:44 CST; 1h 46min ago
     Docs: man:chronyd(8)
           man:chrony.conf(5)
 Main PID: 77000 (chronyd)
    Tasks: 1 (limit: 4752)
   Memory: 1.0M
   CGroup: /system.slice/chronyd.service
           └─77000 /usr/sbin/chronyd

Nov 12 23:09:44 ceph2 systemd[1]: chronyd.service: Succeeded.
Nov 12 23:09:44 ceph2 systemd[1]: Stopped NTP client/server.
Nov 12 23:09:44 ceph2 systemd[1]: Starting NTP client/server...
Nov 12 23:09:44 ceph2 chronyd[77000]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
Nov 12 23:09:44 ceph2 chronyd[77000]: Frequency 0.000 +/- 1000000.000 ppm read from /var/lib/chrony/drift
Nov 12 23:09:44 ceph2 chronyd[77000]: Using right/UTC timezone to obtain leap second data
Nov 12 23:09:44 ceph2 systemd[1]: Started NTP client/server.
Nov 12 23:09:50 ceph2 chronyd[77000]: Selected source 111.230.189.174
Nov 12 23:09:50 ceph2 chronyd[77000]: System clock TAI offset set to 37 seconds
[root@localhost ~]# systemctl status ntod
Unit ntod.service could not be found.
[root@localhost ~]# systemctl status ntpd
Unit ntpd.service could not be found.
[root@localhost ~]# ceph orch host add 192.168.1.5
Error EINVAL: New host 192.168.1.5 (192.168.1.5) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', "No time sync service is running; checked for ['chrony.service', 'chronyd.service', 'systemd-timesyncd.service', 'ntpd.service', 'ntp.service', 'ntpsec.service']", 'Hostname "192.168.1.5" matches what is expected.', 'ERROR: No time synchronization is active', 'hostname "ceph1" does not match expected hostname "192.168.1.5"']
[root@localhost ~]# systemctl enable chronyd 
[root@localhost ~]# ceph orch host add 192.168.1.5
Error EINVAL: New host 192.168.1.5 (192.168.1.5) failed check: ['podman|docker (/bin/podman) is present', 'systemctl is present', 'lvcreate is present', 'Unit chronyd.service is enabled and running', 'Hostname "192.168.1.5" matches what is expected.', 'ERROR: hostname "ceph1" does not match expected hostname "192.168.1.5"']
[root@localhost ~]# ceph orch host add ceph1

Author: 千里
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source 千里 !
  TOC