mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 15:48:32 +00:00
Update cheatsheets
This commit is contained in:
34
tldr/linux/cephadm
Normal file
34
tldr/linux/cephadm
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cephadm
|
||||
|
||||
> Deploy and manage a Ceph cluster using containers.
|
||||
> Part of the Ceph orchestrator framework.
|
||||
> More information: <https://docs.ceph.com/en/latest/man/8/cephadm/>.
|
||||
|
||||
- Bootstrap a new Ceph cluster on the current host:
|
||||
|
||||
`sudo cephadm bootstrap --mon-ip {{monitor_ip}}`
|
||||
|
||||
- Add a new host to the cluster:
|
||||
|
||||
`sudo cephadm add-host {{hostname}} {{ip_address}}`
|
||||
|
||||
- Deploy a specific service (e.g., mgr, mon, osd):
|
||||
|
||||
`sudo cephadm deploy {{service_type}} --name {{service_name}}`
|
||||
|
||||
- Check the status of cluster services:
|
||||
|
||||
`sudo cephadm shell -- ceph {{[-s|--status]}}`
|
||||
|
||||
- Enter a shell environment inside the Ceph container:
|
||||
|
||||
`sudo cephadm shell`
|
||||
|
||||
- Remove a service from the cluster:
|
||||
|
||||
`sudo cephadm rm-service {{service_type}} --name {{service_name}}`
|
||||
Reference in New Issue
Block a user