]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: update injectargs syntax
authorLoic Dachary <loic-201408@dachary.org>
Thu, 16 Oct 2014 06:26:16 +0000 (23:26 -0700)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 21 Oct 2014 06:03:11 +0000 (23:03 -0700)
Modify the examples to use the simpler syntax, not involving -- or
grouping with quotes.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
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

index e9725bf848b7d421ac4b3a6cac87c6861f35960e..cca254de2697dc88732a8f5d7d039a36a1e43e04 100644 (file)
@@ -426,19 +426,19 @@ useful for increasing/decreasing logging output, enabling/disabling debug
 settings, and even for runtime optimization. The following reflects runtime
 configuration usage::
 
-       ceph {daemon-type} tell {id or *} injectargs '--{name} {value} [--{name} {value}]'
+       ceph tell {daemon-type}.{id or *} injectargs --{name} {value} [--{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 osd tell 0 injectargs '--debug-osd 20 --debug-ms 1'
+       ceph tell osd.0 injectargs --debug-osd 20 --debug-ms 1
 
 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 0e7237e8fc7b86940edab6e9828f24288504bdc6..495cc82bf5267c723fadff5cfe5e4012fa141d86 100644 (file)
@@ -292,11 +292,11 @@ MDS Subsystem
 
 Change configuration parameters on a running mds. ::
 
-       ceph mds tell {mds-id} injectargs '--{switch} {value} [--{switch} {value}]'
+       ceph tell mds.{mds-id} injectargs --{switch} {value} [--{switch} {value}]
 
 Example::
 
-       ceph mds tell 0 injectargs '--debug_ms 1 --debug_mds 10'
+       ceph tell mds.0 injectargs --debug_ms 1 --debug_mds 10
 
 Enables debug messages. ::
 
index 55658d62c59befde72aea4af6352215417b44dad..d871f620191e3eea1e8475aaf760b60a2196297c 100644 (file)
@@ -1079,7 +1079,7 @@ the default as of v0.73).  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.\* injectargs --no-mon-warn-on-legacy-crush-tunables
 
 
 A few important points
index 25c9837e5b6c51ef5575e0397224a10e713af463..c269e99bf89db92692d352abce1063ab1165ea97 100644 (file)
@@ -277,7 +277,7 @@ The admin socket command enables you to show and set your configuration at
 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 {daemon-type} tell {id}
+admin socket bypasses the monitor, unlike ``ceph tell {daemon-type}.{id}
 injectargs``, which relies on the monitor but doesn't require you to login
 directly to the host in question ).
 
index faac6b35914def03006379b1890d8cc10d6ed43d..4a332a9001dd64e3c86f2dc7daddfecee1a9f1e7 100644 (file)
@@ -40,14 +40,14 @@ in to a host with a running daemon and execute the following::
 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 *} injectargs --{name} {value} [--{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 0/5'
+       ceph tell osd.0 injectargs --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 d0807b7b4cea3101ec858814ca7498803b30832e..c753de3ca2494930723d23dc48d20c963158ee7d 100644 (file)
@@ -438,11 +438,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 injectargs --debug_mon 10/10
 
   or into all monitors at once::
 
-        ceph tell mon.* injectargs '--debug_mon 10/10'
+        ceph tell mon.* injectargs --debug_mon 10/10
 
 No quourm