]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
fix command 'ceph pg dump_stuck degraded' 3382/head
authorxinxin shu <xinxin.shu@intel.com>
Thu, 15 Jan 2015 05:22:48 +0000 (13:22 +0800)
committerxinxin shu <xinxin.shu@intel.com>
Thu, 15 Jan 2015 17:33:07 +0000 (01:33 +0800)
undersized not valid:  undersized not in inactive|unclean|stale
undersized not valid:  undersized doesn't represent an int
Invalid command:  unused arguments: ['undersized']
pg dump_stuck {inactive|unclean|stale [inactive|unclean|stale...]} {<int>} :  show information about stuck pgs

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
doc/man/8/ceph.rst
doc/rados/operations/control.rst
doc/rados/operations/monitoring-osd-pg.rst
doc/rados/operations/placement-groups.rst
man/ceph.8
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h

index 73cb10f5aa86931d6e55d4f47db061323812b4cc..ad0455ee8ceb4d31920cefeab63f0e50dee70934 100644 (file)
@@ -954,7 +954,7 @@ Subcommand ``dump_stuck`` shows information about stuck pgs.
 
 Usage::
 
-       ceph pg dump_stuck {inactive|unclean|stale[inactive|unclean|stale...]}
+       ceph pg dump_stuck {inactive|unclean|stale[inactive|unclean|stale|undersized|degraded...]}
        {<int>}
 
 Subcommand ``force_create_pg`` forces creation of pg <pgid>.
index 495cc82bf5267c723fadff5cfe5e4012fa141d86..5782361403bd0865f5c1ae6645985ecfd8566c6a 100644 (file)
@@ -65,7 +65,7 @@ The valid formats are ``plain`` (default) and ``json``.
 To display the statistics for all placement groups stuck in a specified state, 
 execute the following:: 
 
-       ceph pg dump_stuck inactive|unclean|stale [--format {format}] [-t|--threshold {seconds}]
+       ceph pg dump_stuck inactive|unclean|stale|undersized|degraded [--format {format}] [-t|--threshold {seconds}]
 
 
 ``--format`` may be ``plain`` (default) or ``json``
index ccb9adea808f500da9fcd9c2da47042ceec6ee01..686b27bd6e80acbcecda54db42ca4a5bf42063b0 100644 (file)
@@ -552,7 +552,7 @@ include:
 
 To identify stuck placement groups, execute the following:: 
 
-       ceph pg dump_stuck [unclean|inactive|stale]
+       ceph pg dump_stuck [unclean|inactive|stale|undersized|degraded]
 
 See `Placement Group Subsystem`_ for additional details. To troubleshoot
 stuck placement groups, see `Troubleshooting PG Errors`_.
index 41ffc911390ac7972cdc28d384b244411b82d402..9ed72f32d53e9a596c89d5c0e03a33ec52fa4cc7 100644 (file)
@@ -342,7 +342,7 @@ Get Statistics for Stuck PGs
 To get the statistics for all placement groups stuck in a specified state,
 execute the following::
 
-        ceph pg dump_stuck inactive|unclean|stale [--format <format>] [-t|--threshold <seconds>]
+        ceph pg dump_stuck inactive|unclean|stale|undersized|degraded [--format <format>] [-t|--threshold <seconds>]
 
 **Inactive** Placement groups cannot process reads or writes because they are waiting for an OSD
 with the most up-to-date data to come up and in.
index 5f7b8dc701e588ce708a82a7467bd9f2fc01fc0c..ca05e7afb9e3be5eb7f9a1941cfd2553110711e1 100644 (file)
@@ -2020,7 +2020,7 @@ Usage:
 .sp
 .nf
 .ft C
-ceph pg dump_stuck {inactive|unclean|stale[inactive|unclean|stale...]}
+ceph pg dump_stuck {inactive|unclean|stale|undersized|degraded[inactive|unclean|stale|undersized|degraded...]}
 {<int>}
 .ft P
 .fi
index 09c1086c77f8463520212abfaaec33240863a214..b0979574907f2d1a536b34f2fbb0697bfb36c060 100755 (executable)
@@ -1056,6 +1056,8 @@ function test_mon_pg()
   ceph pg dump_stuck inactive
   ceph pg dump_stuck unclean
   ceph pg dump_stuck stale
+  ceph pg dump_stuck undersized
+  ceph pg dump_stuck degraded
   # can't test this...
   # ceph pg force_create_pg
   ceph pg getmap -o $TMPDIR/map.$$
index 6292e302d6ac1ff9fac1696103be1bc2a2df7385..b6759fb23d8d13850a6c65f2e1f856320bd51b66 100644 (file)
@@ -123,7 +123,7 @@ COMMAND("pg dump_json " \
 COMMAND("pg dump_pools_json", "show pg pools info in json only",\
        "pg", "r", "cli,rest")
 COMMAND("pg dump_stuck " \
-       "name=stuckops,type=CephChoices,strings=inactive|unclean|stale,n=N,req=false " \
+       "name=stuckops,type=CephChoices,strings=inactive|unclean|stale|undersized|degraded,n=N,req=false " \
        "name=threshold,type=CephInt,req=false",
        "show information about stuck pgs",\
        "pg", "r", "cli,rest")