]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | :orphan: |
2 | ||
3 | =================================================================== | |
4 | ceph-disk -- Ceph disk utility for OSD | |
5 | =================================================================== | |
6 | ||
7 | .. program:: ceph-disk | |
8 | ||
9 | Synopsis | |
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 | ||
17 | optional 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 | ||
30 | subcommands | |
31 | ----------- | |
32 | ||
33 | prepare | |
34 | Prepare a directory or disk for a Ceph OSD | |
35 | activate | |
36 | Activate a Ceph OSD | |
37 | activate-lockbox | |
38 | Activate a Ceph lockbox | |
39 | activate-block | |
40 | Activate an OSD via its block device | |
41 | activate-journal | |
42 | Activate an OSD via its journal device | |
43 | activate-all | |
44 | Activate all tagged OSD partitions | |
45 | list | |
46 | List disks, partitions, and Ceph OSDs | |
47 | suppress-activate | |
48 | Suppress activate on a device (prefix) | |
49 | unsuppress-activate | |
50 | Stop suppressing activate on a device (prefix) | |
51 | deactivate | |
52 | Deactivate a Ceph OSD | |
53 | destroy | |
54 | Destroy a Ceph OSD | |
55 | zap | |
56 | Zap/erase/destroy a device's partition table (and contents) | |
57 | trigger | |
58 | Trigger an event (caled by udev) | |
59 | fix | |
60 | Fix SELinux labels and/or file permissions | |
61 | ||
62 | Description | |
63 | =========== | |
64 | ||
65 | :program:`ceph-disk` is a utility that can prepare and activate a disk, partition or | |
66 | directory as a Ceph OSD. It is run directly or triggered by :program:`ceph-deploy` | |
67 | or ``udev``. It can also be triggered by other deployment utilities like ``Chef``, | |
68 | ``Juju``, ``Puppet`` etc. | |
69 | ||
70 | It actually automates the multiple steps involved in manual creation and start | |
71 | of an OSD into two steps of preparing and activating the OSD by using the | |
72 | subcommands ``prepare`` and ``activate``. | |
73 | ||
74 | :program:`ceph-disk` also automates the multiple steps involved to manually stop | |
75 | and destroy an OSD into two steps of deactivating and destroying the OSD by using | |
76 | the subcommands ``deactivate`` and ``destroy``. | |
77 | ||
78 | The documentation for each subcommand (prepare, activate, etc.) can be displayed | |
79 | with its ``--help`` option. For instance ``ceph-disk prepare --help``. | |
80 | ||
31f18b77 FG |
81 | Bugs |
82 | ==== | |
83 | ||
84 | See also the ``Bugs`` section in :doc:`ceph-detect-init <ceph-detect-init>`\(8). | |
85 | ||
7c673cae FG |
86 | Availability |
87 | ============ | |
88 | ||
89 | :program:`ceph-disk` is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to | |
90 | the Ceph documentation at http://ceph.com/docs for more information. | |
91 | ||
92 | See 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) |