Skip to content

Instantly share code, notes, and snippets.

@cjac
Created August 2, 2020 00:49
Show Gist options
  • Save cjac/525fae05aac5450a709a871ed8d9201f to your computer and use it in GitHub Desktop.
Save cjac/525fae05aac5450a709a871ed8d9201f to your computer and use it in GitHub Desktop.
root@mini:~# systemctl status ceph
● ceph.service - LSB: Start Ceph distributed file system daemons at boot time
Loaded: loaded (/etc/init.d/ceph; generated)
Active: active (exited) since Sat 2020-08-01 17:07:47 PDT; 35min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4915)
Memory: 0B
CGroup: /system.slice/ceph.service
Aug 01 17:07:46 mini systemd[1]: Starting LSB: Start Ceph distributed file system daemons at boot time...
Aug 01 17:07:46 mini ceph[11525]: === mon.1 ===
Aug 01 17:07:46 mini ceph[11525]: Starting Ceph mon.1 on mini...
Aug 01 17:07:46 mini ceph[11624]: 2020-08-01 17:07:46.855 7fa224e1f280 -1 unable to read magic from mon data
Aug 01 17:07:46 mini ceph[11525]: failed: 'ulimit -n 32768; TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728 /usr/bin/ceph-mon -i 1 --pid-file /var/run/ceph/mon.1.pid -c /etc/ceph/ceph.conf --cluster ceph --setuser ceph --setgroup ceph '
Aug 01 17:07:47 mini ceph[11525]: === osd.0 ===
Aug 01 17:07:47 mini ceph[11525]: No filesystem type defined!
Aug 01 17:07:47 mini systemd[1]: Started LSB: Start Ceph distributed file system daemons at boot time.
root@mini:~# systemctl status ceph-mon
● ceph-mon.service - Ceph cluster monitor daemon
Loaded: loaded (/lib/systemd/system/ceph-mon.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2020-08-01 17:42:51 PDT; 9s ago
Docs: man:ceph-mon
Process: 12315 ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id mini --setuser ceph --setgroup ceph (code=exited, status=1/FAILURE)
Main PID: 12315 (code=exited, status=1/FAILURE)
root@mini:~# sudo systemctl start ceph-mon
root@mini:~# ceph osd lspools
[errno 2] error connecting to the cluster
root@mini:~# ceph-mon -f --cluster ceph --id mini --setuser ceph --setgroup ceph
2020-08-01 17:48:37.884 7fbaf9e81280 -1 monitor data directory at '/srv/ceph/monmini' does not exist: have you run 'mkfs'?
root@mini:~# ceph-mon -f --cluster ceph --id 1 --setuser ceph --setgroup ceph
2020-08-01 17:48:40.555 7fad860a4280 -1 unable to read magic from mon data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment