首页 > 代码库 > ceph学习杂记

ceph学习杂记

ceph pg 信息说明

  1 $ ceph pg 3.1ade query  2 {  3     "state": "active+clean",  ## pg状态  4     "snap_trimq": "[]",  5     "epoch": 239977,  6     "up": [  7         66,  8         57  9     ], 10     "acting": [ 11         66, 12         57 13     ], 14     "actingbackfill": [ 15         "57", 16         "66" 17     ], 18     "info": { 19         "pgid": "3.1ade", 20         "last_update": "239977‘12990825", 21         "last_complete": "239977‘12990825", 22         "log_tail": "239975‘12987777", 23         "last_user_version": 12990825, 24         "last_backfill": "MAX", 25         "purged_snaps": "[1~19,1c~14,32~18,4b~1,4d~141,18f~158,2e8~6,2ef~6a6,996~23c,bd3~4,bd9~1,bdb~327,f03~9c0,18c4~4f,1914~333,1c48~e6,1d2f~31,1d61~121,1e83~6e,1ef4~2,1ef7~1a,1f12~c2,1fd5~a66,2a3c~d,2a4a~102,2b4d~4,2b52~28,2b7b~57,2bd3~368,2f3c~508,3445~51b,3961~c7a,45dc~19a,4777~879,4ff1~3c,502e~2d5,5304~89,538e~d1,5461~614,5a76~5,5a7c~95,5b12~8,5b1b~27,5b43~4,5b48~46,5b8f~fa,5c8a~5d0,625b~2,625f~60,62c0~15,62d6~25f,6536~a7,65de~18a,6769~257,69c2~f0,6ab3~3b,6aef~4a9,6f99~1c2,715c~15d,72ba~a10,7ccb~7f0,84bc~136,85f3~67,865b~10d,8769~2b,8795~10,87a6~2e5,8a8c~370,8dfe~41,8e40~123,8f64~25f,91c4~13f,9304~516,981b~245,9a61~4db,9f3d~1ba,a0f8~56d,a666~1e8,a84f~65a,aeaa~1ac,b057~3,b05b~42,b09e~1af,b24e~5f,b2ae~23e,b4ed~d35,c223~51,c275~b,c281~5db,c85d~572,cdd0~1ae,cf7f~3,cf83~7,cf8b~8,cf94~2,cf97~6,cf9e~534,d4d3~261,d735~76,d7ac~153,d900~32ac,10bad~3a3,10f51~9f,10ff1~6,10ff9~2,10ffc~4b6,114b3~6,114bb~2,114be~41,11500~647,11b48~2,11b4b~589,120d5~380,12456~c9,12520~6a6,12bc7~8,12bd0~e,12bdf~4b1,13091~11d,131af~14,131c4~139,132fe~6f8,139f7~2bd,13cb5~33,13ce9~f0,13dda~73a,14515~695,14bab~3d6,14f82~78d,15710~2e7,159f8~1bf,15bb8~69,15c22~20,15c43~1b,15c5f~16,15c76~f,15c87~b,15c93~37,15ccb~11,15cdd~6,15ce4~16,15cfb~37,15d33~5,15d39~1,15d3b~7,15d43~8e,15dd2~14,15de7~49,15e31~83,15eb5~e,15ec4~6,15ecc~262,1612f~59,16189~24,161ae~45,161f4~10f,16304~59,1635e~57,163b6~34,163eb~4,163f0~2,163f3~1,163f5~f,16405~2e,16434~166,1659d~10a,166a8~6,166af~12,166c3~6,166ca~a,166d6~6,166df~8c,1676c~3,16770~65,167d6~2b,16802~16,16819~1d,16837~9,16841~7,16849~47,16891~c,1689e~c,168ab~8,168b4~1b9,16a6e~30,16a9f~c,16aad~2,16ab1~e,16ac0~2,16ac3~6,16aca~30,16afb~28,16b24~4a,16b6f~e,16b84~9,16b8e~21,16bb0~d,16bbe~1f,16bde~10,16bef~6,16bf6~18,16c0f~2,16c13~7a,16c8e~3,16c92~8,16c9b~5,16ca2~7,16cac~1e,16ccb~9,16cd5~1,16cd8~2,16cdd~2,16ce4~6,16ceb~20,16d0c~14,16d24~21,16d46~16,16d5d~1,16d5f~19,16d79~36,16db0~5e,16e10~e,16e23~6a,16e8e~4,16e93~8,16e9c~2,16e9f~2,16ea3~4,16ea8~d,16eb6~50,16f07~4d,16f55~95,16feb~d,16ff9~1,16ffb~4,17001~31,17033~62,17096~28,170bf~5,170c5~2,170c8~e,170d7~48,17120~b,17137~11,17149~4,1714e~12,17161~b,1716e~1d,17191~a,1719c~21,171be~35,171f4~a,171ff~5,17205~2,17209~20,1722b~4b,17278~17,17290~3,17294~11,172a7~4,172ac~75,17322~15,17338~2,1733b~1d,17359~78,173d2~1d,173f0~5,173f6~1,173fb~5,17401~13,17415~1,17417~1,17419~1,1741b~2,1741f~4,17426~4,1742b~b,17439~6,17443~1,17448~14,1745d~7,17465~2,17468~6,1746f~5,17475~1,1747b~1a,17496~b,174a2~16,174ba~23,174de~1,174e0~2,174e5~5,174eb~d,174f9~9,17503~8,1750c~2d,1753a~2,1753d~2b,1756b~b,1757a~2,1757d~1b,1759d~2,175a4~16,175bf~1b,175db~30,1760c~b,17618~5,1761e~4,17623~10,17634~6,17641~11,17654~12,17667~1e,17689~9,17694~26,176bb~2,176be~4,176c4~12,176d7~1,176d9~22,176fc~2,176ff~9,17709~26,17730~d,1773e~17,17756~2,17759~18,17772~1,17774~2,17777~2,1777a~1,1777c~4f,177cc~2,177d0~2,177d3~5,177da~3,177de~8,177e7~1,177e9~1,177ec~bc,178a9~2a5,17b4f~2,17b53~2,17b58~a,17b64~4]", 26         "history": { 27             "epoch_created": 122, 28             "last_epoch_started": 239876, 29             "last_epoch_clean": 239876, 30             "last_epoch_split": 0, 31             "same_up_since": 239875, 32             "same_interval_since": 239875, 33             "same_primary_since": 239875, 34             "last_scrub": "239974‘12913828", 35             "last_scrub_stamp": "2016-10-11 10:13:52.175442", 36             "last_deep_scrub": "239510‘12744169", 37             "last_deep_scrub_stamp": "2016-10-04 08:16:46.253908", 38             "last_clean_scrub_stamp": "2016-10-11 10:13:52.175442" 39         }, 40         "stats": { 41             "version": "239977‘12990825", 42             "reported_seq": "20319349", 43             "reported_epoch": "239977", 44             "state": "active+clean", 45             "last_fresh": "2016-10-12 07:27:32.751807", 46             "last_change": "2016-10-11 10:13:52.175517", 47             "last_active": "2016-10-12 07:27:32.751807", 48             "last_peered": "2016-10-12 07:27:32.751807", 49             "last_clean": "2016-10-12 07:27:32.751807", 50             "last_became_active": "0.000000", 51             "last_became_peered": "0.000000", 52             "last_unstale": "2016-10-12 07:27:32.751807", 53             "last_undegraded": "2016-10-12 07:27:32.751807", 54             "last_fullsized": "2016-10-12 07:27:32.751807", 55             "mapping_epoch": 239863, 56             "log_start": "239975‘12987777", 57             "ondisk_log_start": "239975‘12987777", 58             "created": 122, 59             "last_epoch_clean": 239876, 60             "parent": "0.0", 61             "parent_split_bits": 0, 62             "last_scrub": "239974‘12913828", 63             "last_scrub_stamp": "2016-10-11 10:13:52.175442", 64             "last_deep_scrub": "239510‘12744169", 65             "last_deep_scrub_stamp": "2016-10-04 08:16:46.253908", 66             "last_clean_scrub_stamp": "2016-10-11 10:13:52.175442", 67             "log_size": 3048, 68             "ondisk_log_size": 3048, 69             "stats_invalid": "0", 70             "stat_sum": { 71                 "num_bytes": 989539840, 72                 "num_objects": 68, 73                 "num_object_clones": 6, 74                 "num_object_copies": 136, 75                 "num_objects_missing_on_primary": 0, 76                 "num_objects_degraded": 0, 77                 "num_objects_misplaced": 0, 78                 "num_objects_unfound": 0, 79                 "num_objects_dirty": 64, 80                 "num_whiteouts": 0, 81                 "num_read": 6519518, 82                 "num_read_kb": 48124949, 83                 "num_write": 22922379, 84                 "num_write_kb": 185914921, 85                 "num_scrub_errors": 0, 86                 "num_shallow_scrub_errors": 0, 87                 "num_deep_scrub_errors": 0, 88                 "num_objects_recovered": 48, 89                 "num_bytes_recovered": 786046976, 90                 "num_keys_recovered": 0, 91                 "num_objects_omap": 0, 92                 "num_objects_hit_set_archive": 0, 93                 "num_bytes_hit_set_archive": 0 94             }, 95             "up": [ 96                 66, 97                 57 98             ], 99             "acting": [100                 66,101                 57102             ],103             "blocked_by": [],104             "up_primary": 66,105             "acting_primary": 66106         },107         "empty": 0,108         "dne": 0,109         "incomplete": 0,110         "last_epoch_started": 239876,111         "hit_set_history": {112             "current_last_update": "0‘0",113             "current_last_stamp": "0.000000",114             "current_info": {115                 "begin": "0.000000",116                 "end": "0.000000",117                 "version": "0‘0",118                 "using_gmt": "0"119             },120             "history": []121         }122     },123     "peer_info": [124         {125             "peer": "57",126             "pgid": "3.1ade",127             "last_update": "239977‘12990825",128             "last_complete": "239977‘12990825",129             "log_tail": "239785‘12891177",130             "last_user_version": 12894266,131             "last_backfill": "MAX",132             "purged_snaps": "[1~19,1c~14,32~18,4b~1,4d~141,18f~158,2e8~6,2ef~6a6,996~23c,bd3~4,bd9~1,bdb~327,f03~9c0,18c4~4f,1914~333,1c48~e6,1d2f~31,1d61~121,1e83~6e,1ef4~2,1ef7~1a,1f12~c2,1fd5~a66,2a3c~d,2a4a~102,2b4d~4,2b52~28,2b7b~57,2bd3~368,2f3c~508,3445~51b,3961~c7a,45dc~19a,4777~879,4ff1~3c,502e~2d5,5304~89,538e~d1,5461~614,5a76~5,5a7c~95,5b12~8,5b1b~27,5b43~4,5b48~46,5b8f~fa,5c8a~5d0,625b~2,625f~60,62c0~15,62d6~25f,6536~a7,65de~18a,6769~257,69c2~f0,6ab3~3b,6aef~4a9,6f99~1c2,715c~15d,72ba~a10,7ccb~7f0,84bc~136,85f3~67,865b~10d,8769~2b,8795~10,87a6~2e5,8a8c~370,8dfe~41,8e40~123,8f64~25f,91c4~13f,9304~516,981b~245,9a61~4db,9f3d~1ba,a0f8~56d,a666~1e8,a84f~65a,aeaa~1ac,b057~3,b05b~42,b09e~1af,b24e~5f,b2ae~23e,b4ed~d35,c223~51,c275~b,c281~5db,c85d~572,cdd0~1ae,cf7f~3,cf83~7,cf8b~8,cf94~2,cf97~6,cf9e~534,d4d3~261,d735~76,d7ac~153,d900~32ac,10bad~3a3,10f51~9f,10ff1~6,10ff9~2,10ffc~4b6,114b3~6,114bb~2,114be~41,11500~647,11b48~2,11b4b~589,120d5~380,12456~c9,12520~6a6,12bc7~8,12bd0~e,12bdf~4b1,13091~11d,131af~14,131c4~139,132fe~6f8,139f7~2bd,13cb5~33,13ce9~f0,13dda~73a,14515~695,14bab~3d6,14f82~78d,15710~2e7,159f8~1bf,15bb8~69,15c22~20,15c43~1b,15c5f~16,15c76~f,15c87~b,15c93~37,15ccb~11,15cdd~6,15ce4~16,15cfb~37,15d33~5,15d39~1,15d3b~7,15d43~8e,15dd2~14,15de7~49,15e31~83,15eb5~e,15ec4~6,15ecc~262,1612f~59,16189~24,161ae~45,161f4~10f,16304~59,1635e~57,163b6~34,163eb~4,163f0~2,163f3~1,163f5~f,16405~2e,16434~166,1659d~10a,166a8~6,166af~12,166c3~6,166ca~a,166d6~6,166df~8c,1676c~3,16770~65,167d6~2b,16802~16,16819~1d,16837~9,16841~7,16849~47,16891~c,1689e~c,168ab~8,168b4~1b9,16a6e~30,16a9f~c,16aad~2,16ab1~e,16ac0~2,16ac3~6,16aca~30,16afb~28,16b24~4a,16b6f~e,16b84~9,16b8e~21,16bb0~d,16bbe~1f,16bde~10,16bef~6,16bf6~18,16c0f~2,16c13~7a,16c8e~3,16c92~8,16c9b~5,16ca2~7,16cac~1e,16ccb~9,16cd5~1,16cd8~2,16cdd~2,16ce4~6,16ceb~20,16d0c~14,16d24~21,16d46~16,16d5d~1,16d5f~19,16d79~36,16db0~5e,16e10~e,16e23~6a,16e8e~4,16e93~8,16e9c~2,16e9f~2,16ea3~4,16ea8~d,16eb6~50,16f07~4d,16f55~95,16feb~d,16ff9~1,16ffb~4,17001~31,17033~62,17096~28,170bf~5,170c5~2,170c8~e,170d7~48,17120~b,17137~11,17149~4,1714e~12,17161~b,1716e~1d,17191~a,1719c~21,171be~35,171f4~a,171ff~5,17205~2,17209~20,1722b~4b,17278~17,17290~3,17294~11,172a7~4,172ac~75,17322~15,17338~2,1733b~1d,17359~78,173d2~1d,173f0~5,173f6~1,173fb~5,17401~13,17415~1,17417~1,17419~1,1741b~2,1741f~4,17426~4,1742b~b,17439~6,17443~1,17448~14,1745d~7,17465~2,17468~6,1746f~5,17475~1,1747b~1a,17496~b,174a2~16,174ba~23,174de~1,174e0~2,174e5~5,174eb~d,174f9~9,17503~8,1750c~2d,1753a~2,1753d~2b,1756b~b,1757a~2,1757d~1b,1759d~2,175a4~16,175bf~1b,175db~30,1760c~b,17618~5,1761e~4,17623~10,17634~6,17641~11,17654~12,17667~1e,17689~9,17694~26,176bb~2,176be~4,176c4~12,176d7~1,176d9~22,176fc~2,176ff~9,17709~26,17730~d,1773e~17,17756~2,17759~18,17772~1,17774~2,17777~2,1777a~1,1777c~4f,177cc~2,177d0~2,177d3~5,177da~3,177de~8,177e7~1,177e9~1,177ec~bc,178a9~2a5,17b4f~2,17b53~2,17b58~a,17b64~4]",133             "history": {134                 "epoch_created": 122,135                 "last_epoch_started": 239876,136                 "last_epoch_clean": 239876,137                 "last_epoch_split": 0,138                 "same_up_since": 239875,139                 "same_interval_since": 239875,140                 "same_primary_since": 239875,141                 "last_scrub": "239974‘12913828",142                 "last_scrub_stamp": "2016-10-11 10:13:52.175442",143                 "last_deep_scrub": "239510‘12744169",144                 "last_deep_scrub_stamp": "2016-10-04 08:16:46.253908",145                 "last_clean_scrub_stamp": "2016-10-11 10:13:52.175442"146             },147             "stats": {148                 "version": "239874‘12894266",149                 "reported_seq": "20264849",150                 "reported_epoch": "239875",151                 "state": "active+undersized+degraded",152                 "last_fresh": "2016-10-11 08:38:42.775410",153                 "last_change": "2016-10-11 08:37:50.290187",154                 "last_active": "2016-10-11 08:38:42.775410",155                 "last_peered": "2016-10-11 08:38:42.775410",156                 "last_clean": "2016-10-11 08:37:34.004293",157                 "last_became_active": "0.000000",158                 "last_became_peered": "0.000000",159                 "last_unstale": "2016-10-11 08:38:42.775410",160                 "last_undegraded": "2016-10-11 08:37:49.356410",161                 "last_fullsized": "2016-10-11 08:37:49.356410",162                 "mapping_epoch": 239863,163                 "log_start": "239785‘12891177",164                 "ondisk_log_start": "239785‘12891177",165                 "created": 122,166                 "last_epoch_clean": 239864,167                 "parent": "0.0",168                 "parent_split_bits": 0,169                 "last_scrub": "239510‘12744169",170                 "last_scrub_stamp": "2016-10-04 08:16:46.253908",171                 "last_deep_scrub": "239510‘12744169",172                 "last_deep_scrub_stamp": "2016-10-04 08:16:46.253908",173                 "last_clean_scrub_stamp": "2016-10-04 08:16:46.253908",174                 "log_size": 3089,175                 "ondisk_log_size": 3089,176                 "stats_invalid": "0",177                 "stat_sum": {178                     "num_bytes": 972762624,179                     "num_objects": 67,180                     "num_object_clones": 6,181                     "num_object_copies": 134,182                     "num_objects_missing_on_primary": 0,183                     "num_objects_degraded": 67,184                     "num_objects_misplaced": 0,185                     "num_objects_unfound": 0,186                     "num_objects_dirty": 63,187                     "num_whiteouts": 0,188                     "num_read": 6512211,189                     "num_read_kb": 48033357,190                     "num_write": 22729395,191                     "num_write_kb": 185058656,192                     "num_scrub_errors": 0,193                     "num_shallow_scrub_errors": 0,194                     "num_deep_scrub_errors": 0,195                     "num_objects_recovered": 47,196                     "num_bytes_recovered": 769269760,197                     "num_keys_recovered": 0,198                     "num_objects_omap": 0,199                     "num_objects_hit_set_archive": 0,200                     "num_bytes_hit_set_archive": 0201                 },202                 "up": [203                     66,204                     57205                 ],206                 "acting": [207                     66,208                     57209                 ],210                 "blocked_by": [],211                 "up_primary": 66,212                 "acting_primary": 66213             },214             "empty": 0,215             "dne": 0,216             "incomplete": 0,217             "last_epoch_started": 239876,218             "hit_set_history": {219                 "current_last_update": "0‘0",220                 "current_last_stamp": "0.000000",221                 "current_info": {222                     "begin": "0.000000",223                     "end": "0.000000",224                     "version": "0‘0",225                     "using_gmt": "0"226                 },227                 "history": []228             }229         }230     ],231     "recovery_state": [232         {233             "name": "Started\/Primary\/Active",234             "enter_time": "2016-10-11 08:38:44.612847",235             "might_have_unfound": [236                 {237                     "osd": "57",238                     "status": "already probed"239                 }240             ],241             "recovery_progress": {242                 "backfill_targets": [],243                 "waiting_on_backfill": [],244                 "last_backfill_started": "-1\/0\/\/0",245                 "backfill_info": {246                     "begin": "-1\/0\/\/0",247                     "end": "-1\/0\/\/0",248                     "objects": []249                 },250                 "peer_backfill_info": [],251                 "backfills_in_flight": [],252                 "recovering": [],253                 "pg_backend": {254                     "pull_from_peer": [],255                     "pushing": []256                 }257             },258             "scrub": {259                 "scrubber.epoch_start": "239875",260                 "scrubber.active": 0,261                 "scrubber.waiting_on": 0,262                 "scrubber.waiting_on_whom": []263             }264         },265         {266             "name": "Started",267             "enter_time": "2016-10-11 08:38:43.619921"268         }269     ],270     "agent_state": {}271 }

 

ceph学习杂记