]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: replace injectargs usage with "config set" 18789/head
authorJohn Spray <john.spray@redhat.com>
Tue, 7 Nov 2017 11:30:45 +0000 (11:30 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 7 Nov 2017 11:32:26 +0000 (11:32 +0000)
Cleaner and easier.  Also implicitly documents
the config set command, which hadn't been explicitly
called out in the docs before.

Signed-off-by: John Spray <john.spray@redhat.com>
doc/dev/config.rst
doc/rados/configuration/ceph-conf.rst
doc/rados/operations/control.rst
doc/rados/operations/crush-map.rst
doc/rados/operations/monitoring.rst
doc/rados/troubleshooting/log-and-debug.rst
doc/rados/troubleshooting/troubleshooting-mon.rst
doc/rbd/iscsi-requirements.rst

index 572ba8d7a2e115ab83b7a61f6c764efa24ccd925..fbc4a5d5660fdc93e1dfb95a068b3f29647cc1d4 100644 (file)
@@ -12,7 +12,7 @@ How can the configuration be set? Well, there are several sources:
     --debug-ms=1
     --debug-pg=10
     etc.
- - arguments injected at runtime by using injectargs
+ - arguments injected at runtime using "injectargs" or "config set"
 
 
 The Configuration File
index df88452b11eea245f4eefcd4fdb8cdb4ccf76623..a4dfee9a4341502220b51ce738086f8d384528d5 100644 (file)
@@ -430,19 +430,19 @@ useful for increasing/decreasing logging output, enabling/disabling debug
 settings, and even for runtime optimization. The following reflects runtime
 configuration usage::
 
-       ceph tell {daemon-type}.{id or *} injectargs --{name} {value} [--{name} {value}]
+       ceph tell {daemon-type}.{id or *} config set {name} {value}
        
 Replace ``{daemon-type}`` with one of ``osd``, ``mon`` or ``mds``. You may apply
 the  runtime setting to all daemons of a particular type with ``*``, or specify
 a specific  daemon's ID (i.e., its number or letter). For example, to increase
 debug logging for a ``ceph-osd`` daemon named ``osd.0``, execute the following::
 
-       ceph tell osd.0 injectargs --debug-osd 20 --debug-ms 1
+       ceph tell osd.0 config set debug_osd 20
 
 In your ``ceph.conf`` file, you may use spaces when specifying a
 setting name.  When specifying a setting name on the command line,
 ensure that you use an underscore or hyphen (``_`` or ``-``) between
-terms (e.g., ``debug osd`` becomes ``--debug-osd``).
+terms (e.g., ``debug osd`` becomes ``debug_osd``).
 
 
 Viewing a Configuration at Runtime
index 1a58076271d11762eef61e290abec294e188b80f..9cca86ce7868f961b93e7585c64d90f38982a3e5 100644 (file)
@@ -286,11 +286,11 @@ MDS Subsystem
 
 Change configuration parameters on a running mds. ::
 
-       ceph tell mds.{mds-id} injectargs --{switch} {value} [--{switch} {value}]
+       ceph tell mds.{mds-id} config set {setting} {value}
 
 Example::
 
-       ceph tell mds.0 injectargs --debug_ms 1 --debug_mds 10
+       ceph tell mds.0 config set debug_ms 1
 
 Enables debug messages. ::
 
index 2a8f609d8c5611ee7128e7f4b91ef379b9592eef..0262f78a8b1bc257216d26b2e228f01043ca903d 100644 (file)
@@ -882,7 +882,7 @@ To make this warning go away, you have two options:
    For the change to take effect, you will need to restart the monitors, or
    apply the option to running monitors with::
 
-      ceph tell mon.\* injectargs --no-mon-warn-on-legacy-crush-tunables
+      ceph tell mon.\* config set mon_warn_on_legacy_crush_tunables false
 
 
 A few important points
index c291440b78a6f6bca35ea28d7636da1864a917ef..d3affb9aa3211dfc7d56dfea5af737b8bb60f286 100644 (file)
@@ -343,7 +343,7 @@ runtime. See `Viewing a Configuration at Runtime`_ for details.
 
 Additionally, you can set configuration values at runtime directly (i.e., the
 admin socket bypasses the monitor, unlike ``ceph tell {daemon-type}.{id}
-injectargs``, which relies on the monitor but doesn't require you to login
+config set``, which relies on the monitor but doesn't require you to login
 directly to the host in question ).
 
 .. _Viewing a Configuration at Runtime: ../../configuration/ceph-conf#ceph-runtime-config
index f45118c066104f333444caee94f4da4d292ebc19..c73b14681db5fff63922c9cfbcfeba7c56ae0728 100644 (file)
@@ -43,14 +43,14 @@ For example,::
 To activate Ceph's debugging output (*i.e.*, ``dout()``) at runtime,  use the
 ``ceph tell`` command to inject arguments into the runtime configuration:: 
 
-       ceph tell {daemon-type}.{daemon id or *} injectargs --{name} {value} [--{name} {value}]
+       ceph tell {daemon-type}.{daemon id or *} config set {name} {value}
        
 Replace ``{daemon-type}`` with one of ``osd``, ``mon`` or ``mds``. You may apply
 the runtime setting to all daemons of a particular type with ``*``, or specify
 a specific daemon's ID. For example, to increase
 debug logging for a ``ceph-osd`` daemon named ``osd.0``, execute the following:: 
 
-       ceph tell osd.0 injectargs --debug-osd 0/5
+       ceph tell osd.0 config set debug_osd 0/5
 
 The ``ceph tell`` command goes through the monitors. If you cannot bind to the
 monitor, you can still make the change by logging into the host of the daemon
index dcbda37a967767db236a19b0dcbef4d45195fa1c..5f82d415d818fea15d8f6399ba9e3f4196f67d82 100644 (file)
@@ -521,11 +521,11 @@ You have quorum
 
   Either inject the debug option into the monitor you want to debug::
 
-        ceph tell mon.FOO injectargs --debug_mon 10/10
+        ceph tell mon.FOO config set debug_mon 10/10
 
   or into all monitors at once::
 
-        ceph tell mon.* injectargs --debug_mon 10/10
+        ceph tell mon.* config set debug_mon 10/10
 
 No quourm
 
index 1ae19e06001cd72fd0c245d9aafb732682b704ad..973fac05cf6636ffbb614ca1268fc76030c2c00e 100644 (file)
@@ -28,12 +28,12 @@ cluster::
 
    ::
 
-       ceph tell <daemon_type>.<id> injectargs '--<parameter_name> <new_value>'
+       ceph tell <daemon_type>.<id> config set <parameter_name> <new_value>
 
    ::
 
-       ceph tell osd.0 injectargs '--osd_heartbeat_grace 20'
-       ceph tell osd.0 injectargs '--osd_heartbeat_interval 5'
+       ceph tell osd.0 config set osd_heartbeat_grace 20
+       ceph tell osd.0 config set osd_heartbeat_interval 5
 
 -  Online Updating on the OSD Node