2015-04-07 10:11:29 +00:00
|
|
|
:orphan:
|
|
|
|
|
2014-11-24 16:35:11 +00:00
|
|
|
===================================================================
|
2017-12-04 22:01:33 +00:00
|
|
|
ceph-disk -- Ceph disk utility for OSD
|
2014-11-24 16:35:11 +00:00
|
|
|
===================================================================
|
|
|
|
|
|
|
|
.. program:: ceph-disk
|
|
|
|
|
2017-11-29 14:44:13 +00:00
|
|
|
Deprecation Notice
|
|
|
|
==================
|
|
|
|
This tool is now deprecated in favor of ceph-volume. Please see :doc:`ceph-volume <ceph-volume>`\(8)
|
|
|
|
for usage and examples to deploy OSDs.
|
|
|
|
|
2014-11-24 16:35:11 +00:00
|
|
|
Synopsis
|
|
|
|
========
|
|
|
|
|
2016-02-25 10:20:54 +00:00
|
|
|
| **ceph-disk** [-h] [-v] [--log-stdout] [--prepend-to-path PATH]
|
2017-03-15 05:50:05 +00:00
|
|
|
| [--statedir PATH] [--sysconfdir PATH]
|
|
|
|
| [--setuser USER] [--setgroup GROUP]
|
|
|
|
| ...
|
|
|
|
|
|
|
|
optional arguments
|
|
|
|
------------------
|
|
|
|
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-v, --verbose be more verbose
|
|
|
|
--log-stdout log to stdout
|
|
|
|
--prepend-to-path PATH
|
|
|
|
prepend PATH to $PATH for backward compatibility (default /usr/bin)
|
|
|
|
--statedir PATH directory in which ceph state is preserved (default /var/lib/ceph)
|
|
|
|
--sysconfdir PATH directory in which ceph configuration files are found (default /etc/ceph)
|
|
|
|
--setuser USER use the given user for subprocesses, rather than ceph or root
|
|
|
|
--setgroup GROUP use the given group for subprocesses, rather than ceph or root
|
|
|
|
|
|
|
|
subcommands
|
|
|
|
-----------
|
|
|
|
|
|
|
|
prepare
|
|
|
|
Prepare a directory or disk for a Ceph OSD
|
|
|
|
activate
|
|
|
|
Activate a Ceph OSD
|
|
|
|
activate-lockbox
|
|
|
|
Activate a Ceph lockbox
|
|
|
|
activate-block
|
|
|
|
Activate an OSD via its block device
|
|
|
|
activate-journal
|
|
|
|
Activate an OSD via its journal device
|
|
|
|
activate-all
|
|
|
|
Activate all tagged OSD partitions
|
|
|
|
list
|
|
|
|
List disks, partitions, and Ceph OSDs
|
|
|
|
suppress-activate
|
|
|
|
Suppress activate on a device (prefix)
|
|
|
|
unsuppress-activate
|
|
|
|
Stop suppressing activate on a device (prefix)
|
|
|
|
deactivate
|
|
|
|
Deactivate a Ceph OSD
|
|
|
|
destroy
|
|
|
|
Destroy a Ceph OSD
|
|
|
|
zap
|
|
|
|
Zap/erase/destroy a device's partition table (and contents)
|
|
|
|
trigger
|
|
|
|
Trigger an event (caled by udev)
|
2017-01-31 12:19:33 +00:00
|
|
|
fix
|
|
|
|
Fix SELinux labels and/or file permissions
|
2015-11-19 01:33:21 +00:00
|
|
|
|
2014-11-24 16:35:11 +00:00
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
2014-12-17 14:38:22 +00:00
|
|
|
:program:`ceph-disk` is a utility that can prepare and activate a disk, partition or
|
|
|
|
directory as a Ceph OSD. It is run directly or triggered by :program:`ceph-deploy`
|
|
|
|
or ``udev``. It can also be triggered by other deployment utilities like ``Chef``,
|
|
|
|
``Juju``, ``Puppet`` etc.
|
2014-11-24 16:35:11 +00:00
|
|
|
|
|
|
|
It actually automates the multiple steps involved in manual creation and start
|
2014-12-18 11:18:50 +00:00
|
|
|
of an OSD into two steps of preparing and activating the OSD by using the
|
2014-12-17 14:38:22 +00:00
|
|
|
subcommands ``prepare`` and ``activate``.
|
2014-11-24 16:35:11 +00:00
|
|
|
|
2015-11-19 01:33:21 +00:00
|
|
|
:program:`ceph-disk` also automates the multiple steps involved to manually stop
|
|
|
|
and destroy an OSD into two steps of deactivating and destroying the OSD by using
|
|
|
|
the subcommands ``deactivate`` and ``destroy``.
|
|
|
|
|
2016-02-25 10:20:54 +00:00
|
|
|
The documentation for each subcommand (prepare, activate, etc.) can be displayed
|
|
|
|
with its ``--help`` option. For instance ``ceph-disk prepare --help``.
|
2016-01-25 21:12:35 +00:00
|
|
|
|
2017-05-12 07:20:45 +00:00
|
|
|
Bugs
|
|
|
|
====
|
|
|
|
|
|
|
|
See also the ``Bugs`` section in :doc:`ceph-detect-init <ceph-detect-init>`\(8).
|
|
|
|
|
2014-11-24 16:35:11 +00:00
|
|
|
Availability
|
|
|
|
============
|
|
|
|
|
2015-01-22 02:16:35 +00:00
|
|
|
:program:`ceph-disk` is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to
|
2014-11-24 16:35:11 +00:00
|
|
|
the Ceph documentation at http://ceph.com/docs for more information.
|
2014-12-17 14:38:22 +00:00
|
|
|
|
|
|
|
See also
|
|
|
|
========
|
|
|
|
|
2017-11-29 14:44:13 +00:00
|
|
|
:doc:`ceph-volume <ceph-volume>`\(8)
|
2017-05-12 07:20:45 +00:00
|
|
|
:doc:`ceph-detect-init <ceph-detect-init>`\(8)
|
2014-12-17 14:38:22 +00:00
|
|
|
:doc:`ceph-osd <ceph-osd>`\(8),
|
|
|
|
:doc:`ceph-deploy <ceph-deploy>`\(8)
|