]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph, rados: update pool delete docs and usage
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 29 Jan 2013 00:43:38 +0000 (16:43 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 29 Jan 2013 00:52:33 +0000 (16:52 -0800)
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
doc/man/8/rados.rst
doc/rados/operations/control.rst
doc/rados/operations/pools.rst
man/rados.8
src/rados.cc
src/test/cli/ceph/help.t
src/tools/ceph.cc

index f6fde9b91a62cd420731ada2446cbfdff3755f1c..e12f2da646a0466a04f66f4619034eb6da6f83e2 100644 (file)
@@ -65,7 +65,7 @@ Global commands
 :command:`mkpool` *foo*
   Create a pool with name foo.
 
-:command:`rmpool` *foo*
+:command:`rmpool` *foo* [ *foo* --yes-i-really-really-mean-it ]
   Delete the pool foo (and all its data)
 
 
index db5b80086755f2b5c9b07ad61cdcb9d3612c579e..e956c4d933428b37a749999df8bb3382866670a9 100644 (file)
@@ -237,8 +237,8 @@ Creates/deletes a snapshot of a pool. ::
 Creates/deletes/renames a storage pool. ::
 
        ceph osd pool create {pool-name} pg_num [pgp_num]
-       ceph osd pool delete {pool-name}
-   ceph osd pool rename {old-name} {new-name}
+       ceph osd pool delete {pool-name} [{pool-name} --yes-i-really-really-mean-it]
+       ceph osd pool rename {old-name} {new-name}
 
 Changes a pool setting. :: 
 
index a13fa91bcd88e879edd3a99371a6939f18a0d4b8..3b492f3862efc6204ca8e01dbeab1f4b43b50127 100644 (file)
@@ -106,7 +106,7 @@ Delete a Pool
 
 To delete a pool, execute::
 
-       ceph osd pool delete {pool-name}
+       ceph osd pool delete {pool-name} [{pool-name} --yes-i-really-really-mean-it]
 
        
 If you created your own rulesets and rules for a pool you created,  you should
index 046ffbf433d1ce48aa728a45e0859674de4f832e..ef65f651e9808fa4ab3ad83b4a09a88b30cf00f0 100644 (file)
@@ -90,7 +90,7 @@ counts, over the entire system and broken down by pool.
 .B \fBmkpool\fP \fIfoo\fP
 Create a pool with name foo.
 .TP
-.B \fBrmpool\fP \fIfoo\fP
+.B \fBrmpool\fP \fIfoo\fP [ \flfoo\fP \-\-yes\-i\-really\-really\-mean\-it ]
 Delete the pool foo (and all its data)
 .UNINDENT
 .SH POOL SPECIFIC COMMANDS
index 0b012c5972b266020083830e87cbccb2b54b13b1..a850f874ac2d417cd9e467090fd77695e4d5c351 100644 (file)
@@ -58,7 +58,8 @@ void usage(ostream& out)
 "   mkpool <pool-name> [123[ 4]]     create pool <pool-name>'\n"
 "                                    [with auid 123[and using crush rule 4]]\n"
 "   cppool <pool-name> <dest-pool>   copy content of a pool\n"
-"   rmpool <pool-name>               remove pool <pool-name>'\n"
+"   rmpool <pool-name> [<pool-name> --yes-i-really-really-mean-it]\n"
+"                                    remove pool <pool-name>'\n"
 "   df                               show per-pool and total usage\n"
 "   ls                               list objects in pool\n\n"
 "   chown 123                        change the pool owner to auid 123\n"
@@ -1799,7 +1800,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
        strcmp(nargs[1], nargs[2]) != 0 ||
        strcmp(nargs[3], "--yes-i-really-really-mean-it") != 0) {
       cerr << "WARNING:\n"
-          << "  This will PERMANENTLY DESTROY an entire pool of object with no way back.\n"
+          << "  This will PERMANENTLY DESTROY an entire pool of objects with no way back.\n"
           << "  To confirm, pass the pool to remove twice, followed by\n"
           << "  --yes-i-really-really-mean-it" << std::endl;
       cout << nargs << std::endl;
index e8afdaf7d35f1cb6bfd958940473a91bc7497c4a..186490aebd49771e7e6c334db2d5c5a2a905c5c6 100644 (file)
@@ -56,7 +56,7 @@
     ceph osd pool mksnap <pool> <snapname>
     ceph osd pool rmsnap <pool> <snapname>
     ceph osd pool create <pool> <pg_num> [<pgp_num>]
-    ceph osd pool delete <pool>
+    ceph osd pool delete <pool> [<pool> --yes-i-really-really-mean-it]
     ceph osd pool rename <pool> <new pool name>
     ceph osd pool set <pool> <field> <value>
     ceph osd scrub <osd-id>
index 7582ac96ab27bd02145362273323fc7d46a3a655..c99d862497819da89624e4a880958dc946c9bd3d 100644 (file)
@@ -99,7 +99,7 @@ static void usage()
   cout << "  ceph osd pool mksnap <pool> <snapname>\n";
   cout << "  ceph osd pool rmsnap <pool> <snapname>\n";
   cout << "  ceph osd pool create <pool> <pg_num> [<pgp_num>]\n";
-  cout << "  ceph osd pool delete <pool>\n";
+  cout << "  ceph osd pool delete <pool> [<pool> --yes-i-really-really-mean-it]\n";
   cout << "  ceph osd pool rename <pool> <new pool name>\n";
   cout << "  ceph osd pool set <pool> <field> <value>\n";
   cout << "  ceph osd scrub <osd-id>\n";