]> git.proxmox.com Git - ceph.git/blame - ceph/doc/man/8/ceph-disk.rst
update sources to v12.1.0
[ceph.git] / ceph / doc / man / 8 / ceph-disk.rst
CommitLineData
7c673cae
FG
1:orphan:
2
3===================================================================
4 ceph-disk -- Ceph disk utility for OSD
5===================================================================
6
7.. program:: ceph-disk
8
9Synopsis
10========
11
12| **ceph-disk** [-h] [-v] [--log-stdout] [--prepend-to-path PATH]
13| [--statedir PATH] [--sysconfdir PATH]
14| [--setuser USER] [--setgroup GROUP]
15| ...
16
17optional arguments
18------------------
19
20-h, --help show this help message and exit
21-v, --verbose be more verbose
22--log-stdout log to stdout
23--prepend-to-path PATH
24 prepend PATH to $PATH for backward compatibility (default /usr/bin)
25--statedir PATH directory in which ceph state is preserved (default /var/lib/ceph)
26--sysconfdir PATH directory in which ceph configuration files are found (default /etc/ceph)
27--setuser USER use the given user for subprocesses, rather than ceph or root
28--setgroup GROUP use the given group for subprocesses, rather than ceph or root
29
30subcommands
31-----------
32
33prepare
34 Prepare a directory or disk for a Ceph OSD
35activate
36 Activate a Ceph OSD
37activate-lockbox
38 Activate a Ceph lockbox
39activate-block
40 Activate an OSD via its block device
41activate-journal
42 Activate an OSD via its journal device
43activate-all
44 Activate all tagged OSD partitions
45list
46 List disks, partitions, and Ceph OSDs
47suppress-activate
48 Suppress activate on a device (prefix)
49unsuppress-activate
50 Stop suppressing activate on a device (prefix)
51deactivate
52 Deactivate a Ceph OSD
53destroy
54 Destroy a Ceph OSD
55zap
56 Zap/erase/destroy a device's partition table (and contents)
57trigger
58 Trigger an event (caled by udev)
59fix
60 Fix SELinux labels and/or file permissions
61
62Description
63===========
64
65:program:`ceph-disk` is a utility that can prepare and activate a disk, partition or
66directory as a Ceph OSD. It is run directly or triggered by :program:`ceph-deploy`
67or ``udev``. It can also be triggered by other deployment utilities like ``Chef``,
68``Juju``, ``Puppet`` etc.
69
70It actually automates the multiple steps involved in manual creation and start
71of an OSD into two steps of preparing and activating the OSD by using the
72subcommands ``prepare`` and ``activate``.
73
74:program:`ceph-disk` also automates the multiple steps involved to manually stop
75and destroy an OSD into two steps of deactivating and destroying the OSD by using
76the subcommands ``deactivate`` and ``destroy``.
77
78The documentation for each subcommand (prepare, activate, etc.) can be displayed
79with its ``--help`` option. For instance ``ceph-disk prepare --help``.
80
31f18b77
FG
81Bugs
82====
83
84See also the ``Bugs`` section in :doc:`ceph-detect-init <ceph-detect-init>`\(8).
85
7c673cae
FG
86Availability
87============
88
89:program:`ceph-disk` is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to
90the Ceph documentation at http://ceph.com/docs for more information.
91
92See also
93========
94
31f18b77 95:doc:`ceph-detect-init <ceph-detect-init>`\(8)
7c673cae
FG
96:doc:`ceph-osd <ceph-osd>`\(8),
97:doc:`ceph-deploy <ceph-deploy>`\(8)