ceph-osd – ceph object storage daemon
Synopsis
ceph-osd -i osdnum [ –osd-data datapath ] [ –osd-journaljournal ] [ –mkfs ] [ –mkjournal ] [–flush-journal] [–check-allows-journal] [–check-wants-journal] [–check-needs-journal] [ –mkkey ]
Description
ceph-osd is the object storage daemon for the Ceph distributed filesystem. It is responsible for storing objects on a local file systemand providing access to them over the network.
The datapath argument should be a directory on a xfs file systemwhere the object data resides. The journal is optional, and is onlyuseful performance-wise when it resides on a different disk thandatapath with low latency (ideally, an NVRAM device).
Options
-f
,
—foreground
- Foreground: do not daemonize after startup (run in foreground). Donot generate a pid file. Useful when run via ceph-run(8).
—setuser
userorgid
- Set uid after starting. If a username is specified, the userrecord is looked up to get a uid and a gid, and the gid is also setas well, unless –setgroup is also specified.
—setgroup
grouporgid
- Set gid after starting. If a group name is specified the grouprecord is looked up to get a gid.
—mkkey
- Generate a new secret key. This is normally used in combinationwith
—mkfs
as it is more convenient than generating a key byhand with ceph-authtool(8).
—mkjournal
- Create a new journal file to match an existing object repository.This is useful if the journal device or file is wiped out due to adisk or file system failure.
—flush-journal
- Flush the journal to permanent store. This runs in the foregroundso you know when it’s completed. This can be useful if you want toresize the journal or need to otherwise destroy it: this guaranteesyou won’t lose data.
—get-osd-fsid
- Print the OSD’s fsid and exit. The OSD’s uuid is generated at–mkfs time and is thus unique to a particular instantiation ofthis OSD.
—get-journal-fsid
- Print the journal’s uuid. The journal fsid is set to match the OSDfsid at –mkfs time.
-c
ceph.conf
,
—conf
=ceph.conf
- Use ceph.conf configuration file instead of the default
/etc/ceph/ceph.conf
for runtime configuration options.
Availability
ceph-osd is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer tothe Ceph documentation at http://ceph.com/docs for more information.
See also
ceph(8),ceph-mds(8),ceph-mon(8),ceph-authtool(8)