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                 57
102             ],
103             "blocked_by": [],
104             "up_primary": 66,
105             "acting_primary": 66
106         },
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": 0
201                 },
202                 "up": [
203                     66,
204                     57
205                 ],
206                 "acting": [
207                     66,
208                     57
209                 ],
210                 "blocked_by": [],
211                 "up_primary": 66,
212                 "acting_primary": 66
213             },
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 }
时间: 2024-11-05 06:12:34

ceph学习杂记的相关文章

[Flask]学习杂记--模板

这个学习杂记主要不是分享经验,更多是记录下falsk的体验过程,以后做东西在深入研究,因为django之前用的时间比较长,所以很多概念都是一看而过,做个试验了解下flask的功能. flask中使用是jinja2 模板,和django自带的模板很类似,但又比django的模板强大,提供了更多有用的工具,基本使用上基本都是一致的. 写了一个小案例,把模板渲染的基本步骤和变量传递的基本使用练习了下. jinjia2 模板文档 http://jinja.pocoo.org/docs/dev/ flas

ceph学习笔记之二RADOS

Ceph学习笔记之二RADOS 一.RADOS架构 在RADOS架构中主要包含2个部分组件: 1.MON(Monitor) 由少量的Monitor节点构成的强耦合,小规模集群:负责管理Cluster Map. 2.OSD(Object Storage Device) 由数量可变的 大规模磁盘设备组成的集群,负责存储所有Object数据. 二.Monitor详解 在前面已经简单对其MON进行描述,在这个地方我们再次对MON进行详细解读.正如其名Monitor是负责监视整个集群运行状态的,这些信息都

Ceph学习之路 之Ceph的工作原理及流程

一.元数据和元数据管理 (1)元数据 在学习Ceph之前,需要了解元数据的概念.元数据又称为中介数据.中继数据,为描述数据的数据.主要描述数据属性的信息,用来支持如指示存储位置.历史数据.资源查找.文件记录等功能.通俗地说,就 是用于描述一个文件的特征的系统数据,比如访问权限.文件拥有者以及文件数据库的分布信息(inode)等等.在集群文件系统中,分布信息包括文件在磁盘上的位置以 及磁盘在集群中的位置.用户需要操作一个文件就必须首先得到它的元数据,才能定位到文件的位置并且得到文件的内容或相关属性

ceph学习

一.ceph架构 ceph生态系统分为四个部分: 客户端:数据用户 元数据服务器:缓存和同步分布式元数据 对象存储集群 ceph客户端 ceph使用一个有趣的备选,而不是依赖分配选项(将磁盘上的块映射到指定文件的元数据). Linux透视图中的一个文件会分配到一个来自元数据服务器的inode number(INO),对于文件这是一个唯一的标识符.然后文件被推入一些对象中(根据文件大小).使用INO和Object Number,每个对象被分配一个对象ID(OID).在OID上使用一个简单的哈希,每

emacs学习杂记

1.下载emacs源码编译安装后,安装路径在:/usr/local/bin 也可在emacs源码下生产的Makefile查看安装的路径:prefix=/usr/local bindir=${exec_prefix}/bin 2.emacs学习:Emacs 编辑环境,第 1 部分: 学习 Emacs 的基础知识 替代sourceinsight 用emacs 让emacs强于sourceinsight 3.cscope在emacs的配置与使用

ceph学习笔记之七 数据平衡

数据平衡 当在集群中新增一个OSD设备时,整个集群将会发生数据迁移使数据重新分布达到均衡.在Ceph集群中数据迁移的的基本单位是PG.其实在迁移过程中是将PG中的所有对象作为一个整体来进行迁移. 数据迁移触发流程: 1.当新加入一个OSD时,会改变系统的CRUSH Map,从而引起对象映射过程中的变化: 2.PG到OSD的映射关系发生了变化,从而引发数据的迁移. 当ceph集群中出现组件故障时(通常是指OSD,当然也有可能是网络),ceph会将OSD标记为Down,如果在300秒内MON没有收到

学习杂记之root密码的更改

1  在学习linux过程中总会出现忘记root密码的时候,这是要在开机启动的系统选项中按上下键.使得它的页面停留在你要更改密码的选项后按e,之后会进入一个文本,在他的最后第2行会有这样的字眼ro  rd.XXXX  这是你将光标移到到对应位置,将原有的ro  rd.  更改为rw  rd.break 然后按ctrl+r这时系统会进入一个假root,输入chroot sysroot 可以变成真的root 然后passwd  改密码即可,如果系统的selinux 是开的话 要touch /.aut

ceph学习笔记之九 层级化的Cluster Map

集群映射由Device和桶(Buckets)组成,设备和桶都有ID描述和权重.Bucket可以包含任意设备或者其他的bucket,使他们形成内部节点的存储层次结构,设备总是在叶子节点.存储设备的权重由管理员设置以控制设备负责存储的相对数据量.尽管大型系统的设备含不同的容量大小和性能特点,随机数据分布算法可以根据设备的利用率和负载来分布数据.这样设备的平均负载与存储的数据量成正比.这导致一维位置指标.权重.应来源于设备的能力.桶的权重是它所包含的元素的权重的总和.Device(OSD)的权重值越高

Linux学习杂记

最近一口气看完了韩顺平老师讲的Linux视频教程,自己也在学习的过程中做了些笔记,记载如下,希望帮助到一些喜欢研究Linux的同学,也算是在云端备份一下笔记吧,以免电脑出现不可控的因素而遗失自己的心血. 首先声明,这篇笔记不是按照韩老师讲的顺序来写的,可能有些凌乱,但我相信,你总能找到你想要的信息: Linux必看书籍: 鸟哥的私房菜 Linux编程从入门到精通 Linux内核安全剖析 命令: shutdown -h now  立刻关机 shutdown -r now   重启 reboot