]> git.proxmox.com Git - ceph.git/blame - ceph/doc/man/8/ceph-osd.rst
update sources to v12.1.1
[ceph.git] / ceph / doc / man / 8 / ceph-osd.rst
CommitLineData
7c673cae
FG
1:orphan:
2
3========================================
4 ceph-osd -- ceph object storage daemon
5========================================
6
7.. program:: ceph-osd
8
9Synopsis
10========
11
12| **ceph-osd** -i *osdnum* [ --osd-data *datapath* ] [ --osd-journal
31f18b77 13 *journal* ] [ --mkfs ] [ --mkjournal ] [--flush-journal] [--check-allows-journal] [--check-wants-journal] [--check-needs-journal] [ --mkkey ]
7c673cae
FG
14
15
16Description
17===========
18
19**ceph-osd** is the object storage daemon for the Ceph distributed file
20system. It is responsible for storing objects on a local file system
21and providing access to them over the network.
22
224ce89b 23The datapath argument should be a directory on a xfs file system
7c673cae
FG
24where the object data resides. The journal is optional, and is only
25useful performance-wise when it resides on a different disk than
26datapath with low latency (ideally, an NVRAM device).
27
28
29Options
30=======
31
32.. option:: -f, --foreground
33
34 Foreground: do not daemonize after startup (run in foreground). Do
35 not generate a pid file. Useful when run via :doc:`ceph-run <ceph-run>`\(8).
36
37.. option:: -d
38
39 Debug mode: like ``-f``, but also send all log output to stderr.
40
41.. option:: --setuser userorgid
42
43 Set uid after starting. If a username is specified, the user
44 record is looked up to get a uid and a gid, and the gid is also set
45 as well, unless --setgroup is also specified.
46
47.. option:: --setgroup grouporgid
48
49 Set gid after starting. If a group name is specified the group
50 record is looked up to get a gid.
51
52.. option:: --osd-data osddata
53
54 Use object store at *osddata*.
55
56.. option:: --osd-journal journal
57
58 Journal updates to *journal*.
59
31f18b77
FG
60.. option:: --check-wants-journal
61
62 Check whether a journal is desired.
63
64.. option:: --check-allows-journal
65
66 Check whether a journal is allowed.
67
68.. option:: --check-needs-journal
69
70 Check whether a journal is required.
71
7c673cae
FG
72.. option:: --mkfs
73
74 Create an empty object repository. This also initializes the journal
75 (if one is defined).
76
77.. option:: --mkkey
78
79 Generate a new secret key. This is normally used in combination
80 with ``--mkfs`` as it is more convenient than generating a key by
81 hand with :doc:`ceph-authtool <ceph-authtool>`\(8).
82
83.. option:: --mkjournal
84
85 Create a new journal file to match an existing object repository.
86 This is useful if the journal device or file is wiped out due to a
87 disk or file system failure.
88
89.. option:: --flush-journal
90
91 Flush the journal to permanent store. This runs in the foreground
92 so you know when it's completed. This can be useful if you want to
93 resize the journal or need to otherwise destroy it: this guarantees
94 you won't lose data.
95
96.. option:: --get-cluster-fsid
97
98 Print the cluster fsid (uuid) and exit.
99
100.. option:: --get-osd-fsid
101
102 Print the OSD's fsid and exit. The OSD's uuid is generated at
103 --mkfs time and is thus unique to a particular instantiation of
104 this OSD.
105
106.. option:: --get-journal-fsid
107
108 Print the journal's uuid. The journal fsid is set to match the OSD
109 fsid at --mkfs time.
110
111.. option:: -c ceph.conf, --conf=ceph.conf
112
113 Use *ceph.conf* configuration file instead of the default
114 ``/etc/ceph/ceph.conf`` for runtime configuration options.
115
116.. option:: -m monaddress[:port]
117
118 Connect to specified monitor (instead of looking through
119 ``ceph.conf``).
120
121
122Availability
123============
124
125**ceph-osd** is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to
126the Ceph documentation at http://ceph.com/docs for more information.
127
128See also
129========
130
131:doc:`ceph <ceph>`\(8),
132:doc:`ceph-mds <ceph-mds>`\(8),
133:doc:`ceph-mon <ceph-mon>`\(8),
134:doc:`ceph-authtool <ceph-authtool>`\(8)