]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: 'ceph --admin-daemon ...' -> 'ceph daemon ...' 5817/head
authorSage Weil <sage@redhat.com>
Fri, 4 Sep 2015 19:59:34 +0000 (15:59 -0400)
committerSage Weil <sage@redhat.com>
Fri, 4 Sep 2015 19:59:34 +0000 (15:59 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
doc/dev/mon-bootstrap.rst
doc/dev/perf_counters.rst
doc/man/8/ceph.rst
doc/rados/operations/monitoring.rst
doc/rados/troubleshooting/log-and-debug.rst
doc/rados/troubleshooting/troubleshooting-mon.rst
doc/rados/troubleshooting/troubleshooting-osd.rst
doc/radosgw/troubleshooting.rst

index 3c0a3ddc96c1751274ac3b812ceaf9ef95a091a9..86f06dcaada3747e4b5764c2408dd89b53e24f8d 100644 (file)
@@ -146,7 +146,7 @@ their own address).  For example::
 When these daemons are started, they will know their own address, but
 not their peers.  They can learn those addresses via the admin socket::
 
-     ceph --admin-daemon /var/run/ceph/mon.<id>.asok add_bootstrap_peer_hint <peer ip>
+     ceph mon.<id> add_bootstrap_peer_hint <peer ip>
 
 Once they learn enough of their peers from the initial member set,
 they will be able to create the cluster.
@@ -174,7 +174,7 @@ example::
 
 Once the daemon starts, you can give it one or more peer addresses to join with::
 
-     ceph --admin-daemon /var/run/ceph/mon.<id>.asok add_bootstrap_peer_hint <peer ip>
+     ceph daemon mon.<id> add_bootstrap_peer_hint <peer ip>
 
 This monitor will never participate in cluster creation; it can only join an existing
 cluster.
index 6e004391457e8c32cc3f1c2ace66a38830d6d312..91589f47a9dee3a7df3e8541d28f659b7bdebde9 100644 (file)
@@ -11,8 +11,8 @@ Access
 
 The perf counter data is accessed via the admin socket.  For example::
 
-   ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok perf schema
-   ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok perf dump
+   ceph daemon osd.0 perf schema
+   ceph daemon osd.0 perf dump
 
 
 Collections
index 38d782d9f6cf331ce66d0371392f8caf72f8224b..37bb89726263103c273a80627b33bcd6528a1e4d 100644 (file)
@@ -1365,9 +1365,9 @@ Options
 
        Name of the Ceph cluster.
 
-.. option:: --admin-daemon ADMIN_SOCKET
+.. option:: daemon ADMIN_SOCKET, daemon DAEMON_NAME, --admin-socket ADMIN_SOCKET, --admin-socket DAEMON_NAME
 
-       Submit admin-socket commands.
+       Submit admin-socket commands via admin sockets in /var/run/ceph.
 
 .. option:: --admin-socket ADMIN_SOCKET_NOPE
 
index c269e99bf89db92692d352abce1063ab1165ea97..1ea3231ba544a5023cfc1bfda2e84e4ea5176f3f 100644 (file)
@@ -267,11 +267,17 @@ By default, Ceph sockets reside under ``/var/run/ceph``. To access a daemon
 via the admin socket, login to the host running the daemon and use the 
 following command:: 
 
-       ceph --admin-daemon /var/run/ceph/{socket-name}
+       ceph daemon {daemon-name}
+       ceph daemon {path-to-socket-file}
+
+For example, the following are equivalent::
+
+        ceph daemon osd.0 foo
+       ceph daemon /var/run/ceph/ceph-osd.0.asok foo
 
 To view the available admin socket commands, execute the following command:: 
 
-       ceph --admin-daemon /var/run/ceph/{socket-name} help
+       ceph daemon {daemon-name} help
 
 The admin socket command enables you to show and set your configuration at
 runtime. See `Viewing a Configuration at Runtime`_ for details.
index 1b9317a3c7b77d8149fb1f477abecb80efa950fa..d618a880d95f3ad80ef50a46b6df2e407bd7e1c9 100644 (file)
@@ -34,8 +34,11 @@ Runtime
 If you would like to see the configuration settings at runtime, you must log
 in to a host with a running daemon and execute the following:: 
 
-       ceph --admin-daemon {/path/to/admin/socket} config show | less  
-       ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok config show | less
+       ceph daemon {daemon-name} config show | less
+
+For example,::
+
+  ceph daemon osd.0 config show | less
 
 To activate Ceph's debugging output (*i.e.*, ``dout()``) at runtime,  use the
 ``ceph tell`` command to inject arguments into the runtime configuration:: 
@@ -51,10 +54,10 @@ debug logging for a ``ceph-osd`` daemon named ``osd.0``, execute the following::
 
 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
-whose configuration you'd like to change using ``ceph --admin-daemon``.
+whose configuration you'd like to change using ``ceph daemon``.
 For example:: 
 
-       sudo ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok config set debug_osd 0/5
+       sudo ceph daemon osd.0 config set debug_osd 0/5
 
 See `Subsystem, Log and Debug Settings`_ for details on available settings.
 
index dff673b39bddda19ef0204746bdf185824e897f3..4dcd5a429b734a6e2373d735361755046cbd115e 100644 (file)
@@ -82,12 +82,12 @@ admin socket, with ``ceph`` likely returning ``Error 111: Connection Refused``.
 Accessing the admin socket is as simple as telling the ``ceph`` tool to use
 the ``asok`` file.  In pre-Dumpling Ceph, this can be achieved by::
 
-  ceph --admin-daemon /var/run/ceph/ceph-mon.ID.asok <command>
+  ceph --admin-daemon /var/run/ceph/ceph-mon.<id>.asok <command>
 
 while in Dumpling and beyond you can use the alternate (and recommended)
 format::
 
-  ceph daemon mon.ID <command>
+  ceph daemon mon.<id> <command>
 
 Using ``help`` as the command to the ``ceph`` tool will show you the
 supported commands available through the admin socket. Please take a look
index 1cbdaeec8e29a5c1e6c2c51a706730cd23c16da2..e1fb30e8320e34c20b8cdcc20ef04795b0544091 100644 (file)
@@ -42,10 +42,15 @@ the sockets for your Ceph processes::
 
        ls /var/run/ceph
 
-Then, execute the following, replacing ``{socket-name}`` with an actual
-socket name to show the list of available options::
+Then, execute the following, replacing ``{daemon-name}`` with an actual
+daemon (e.g., ``osd.0``)::
+
+  ceph daemon osd.0 help
+
+Alternatively, you can specify a ``{socket-file}`` (e.g., something in ``/var/run/ceph``)::
+
+  ceph daemon {socket-file} help
 
-       ceph --admin-daemon /var/run/ceph/{socket-name} help
 
 The admin socket, among other things, allows you to:
 
index 84f17607b75b99dc1e2a56f4755dfd96e361c6b4..3e4a0577768891b2f6e2c6095beb2b3a0784904c 100644 (file)
@@ -56,7 +56,7 @@ some insight into the internal state of the ``radosgw`` daemon via
 its admin socket.  By default, there will be a socket configured to
 reside in ``/var/run/ceph``, and the daemon can be queried with::
 
- ceph --admin-daemon /var/run/ceph/client.rgw help
+ ceph daemon /var/run/ceph/client.rgw help
  
  help                list available commands
  objecter_requests   show in-progress osd requests
@@ -66,7 +66,7 @@ reside in ``/var/run/ceph``, and the daemon can be queried with::
 
 Of particular interest::
 
- ceph --admin-daemon /var/run/ceph/client.rgw objecter_requests
+ ceph daemon /var/run/ceph/client.rgw objecter_requests
  ...
 
 will dump information about current in-progress requests with the
@@ -114,7 +114,7 @@ check the OSD status with::
 
 This tells us to look at ``osd.1``, the primary copy for this PG::
 
- ceph --admin-daemon /var/run/ceph/osd.1.asok
+ ceph daemon osd.1 ops
  { "num_ops": 651,
   "ops": [
         { "description": "osd_op(client.4124.0:1858 fatty_25647_object1857 [write 0~4096] 2.d2041a48)",