From c6260fc9febed7edd00c15f7765a9d06e7f0f419 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Mon, 26 May 2025 14:33:55 +1000 Subject: [PATCH] doc/mgr: edit smb.rst Edit doc/mgr/smb.rst. This is part of a project to separate out the twenty-five files that were committed to https://github.com/ceph/ceph/pull/62782. Signed-off-by: Zac Dover (cherry picked from commit 82a4b46d17b573c97475deadbdacd7f74d5ea502) --- doc/mgr/smb.rst | 52 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/doc/mgr/smb.rst b/doc/mgr/smb.rst index 361ee2f841087..a20ae81d0fccc 100644 --- a/doc/mgr/smb.rst +++ b/doc/mgr/smb.rst @@ -53,9 +53,9 @@ Cluster Commands Create Cluster ++++++++++++++ -.. code:: bash +.. prompt:: bash # - $ ceph smb cluster create {user|active-directory} [--domain-realm=] [--domain-join-user-pass=] [--define-user-pass=] [--custom-dns=] [--placement=] [--clustering=] [--password-filter=] [--password-filter-out=] + ceph smb cluster create {user|active-directory} [--domain-realm=] [--domain-join-user-pass=] [--define-user-pass=] [--custom-dns=] [--placement=] [--clustering=] [--password-filter=] [--password-filter-out=] Create a new logical cluster, identified by the cluster id value. The cluster create command must specify the authentication mode the cluster will use. This @@ -117,9 +117,9 @@ password_filter_out Remove Cluster ++++++++++++++ -.. code:: bash +.. prompt:: bash # - $ ceph smb cluster rm [--password-filter=] + ceph smb cluster rm [--password-filter=] Remove a logical SMB cluster from the Ceph cluster. @@ -138,9 +138,9 @@ password_filter List Clusters ++++++++++++++ -.. code:: bash +.. prompt:: bash # - $ ceph smb cluster ls [--format=] + ceph smb cluster ls [--format=] Print a listing of cluster ids. The output defaults to JSON, select YAML encoding with the ``--format=yaml`` option. @@ -152,9 +152,9 @@ Share Commands Create Share ++++++++++++ -.. code:: bash +.. prompt:: bash # - $ ceph smb share create [--share-name=] [--subvolume=] [--readonly] + ceph smb share create [--share-name=] [--subvolume=] [--readonly] Create a new SMB share, hosted by the named cluster, that maps to the given CephFS volume and path. @@ -182,9 +182,9 @@ readonly Remove Share ++++++++++++ -.. code:: bash +.. prompt:: bash # - $ ceph smb share rm + ceph smb share rm Remove an SMB Share from the cluster. @@ -192,9 +192,9 @@ Remove an SMB Share from the cluster. List Shares +++++++++++ -.. code:: bash +.. prompt:: bash # - $ ceph smb share ls [--format=] + ceph smb share ls [--format=] Print a listing of share ids. The output defaults to JSON, select YAML encoding with the ``--format=yaml`` option. @@ -210,16 +210,16 @@ Resource specifications can be written in either JSON or YAML. These resource specifications can be applied to the cluster using the ``ceph smb apply`` command, for example: -.. code:: bash +.. prompt:: bash # - $ ceph smb apply -i /path/to/resources.yaml + ceph smb apply -i /path/to/resources.yaml In addition to the resource specification the ``apply`` sub-command accepts options that control how the input and output of the command behave: -.. code:: bash +.. prompt:: bash # - $ ceph smb apply [--format=] [--password-filter=] [--password-filter-out=] -i + ceph smb apply [--format=] [--password-filter=] [--password-filter-out=] -i Options: @@ -245,16 +245,16 @@ input Resources that have already been applied to the Ceph cluster configuration can be viewed using the ``ceph smb show`` command. For example: -.. code:: bash +.. prompt:: bash # - $ ceph smb show ceph.smb.cluster.cluster1 + ceph smb show ceph.smb.cluster.cluster1 The ``show`` command can show all resources, resources of a given type, or specific resource items. Options can be provided that control the output of the command. -.. code:: bash +.. prompt:: bash # - $ ceph smb show [resource_name...] [--format=] [--results=] [--password-filter=] + ceph smb show [resource_name...] [--format=] [--results=] [--password-filter=] Options: @@ -292,9 +292,9 @@ password_filter For example: -.. code:: bash +.. prompt:: bash # - $ ceph smb show ceph.smb.cluster.bob ceph.smb.share.bob + ceph smb show ceph.smb.cluster.bob ceph.smb.share.bob Will show one cluster resource (if it exists) for the cluster "bob" as well as all share resources associated with the cluster "bob". @@ -807,9 +807,9 @@ configuration file. First, create the YAML with the contents: Save this text to a YAML file named ``resources.yaml`` and make it available on a cluster admin host. Then run: -.. code:: bash +.. prompt:: bash # - $ ceph smb apply -i resources.yaml + ceph smb apply -i resources.yaml The command will print a summary of the changes made and begin to automatically deploy the needed resources. See `Accessing Shares`_ for more information @@ -838,9 +838,9 @@ action with a new file ``removed.yaml`` containing: By issuing the command: -.. code:: bash +.. prompt:: bash # - $ ceph smb apply -i removed.yaml + ceph smb apply -i removed.yaml SMB Cluster Management -- 2.39.5