¿ÀºêÁ§Æ® È®ÀÎ >> °èÁ¤Àΰè
secret key º¯°æ
// À¥ bucket name ±ÇÇѼöÁ¤ >> ¼öÁ¤µÊ
mojily 51e527f97976b6bbe0efa43ad1cbdbdf4c78824d8c1c526a18abb21462749e9a
iwinvdemo fffbc774a24bd3ea19ae05047a4e968a0d820cc19f552e9f22a05dfbd0544da3
stats µð½ºÅ© Å©±â
usage Æ®·¡ÇÈ »ç¿ë·® / È£Ãâ¼ö
bucket_id=$(radosgw-admin metadata get bucket:${bucket} | jq -r .data.bucket.bucket_id)
marker=$(radosgw-admin metadata get bucket:${bucket} | jq -r .data.bucket.marker)
root@GW-LB1:~# radosgw-admin usage show --uid=fffbc774a24bd3ea19ae05047a4e968a0d820cc19f552e9f22a05dfbd0544da3
{
"entries": [],
"summary": []
}
root@GW-LB1:~# radosgw-admin user stats --uid=fffbc774a24bd3ea19ae05047a4e968a0d820cc19f552e9f22a05dfbd0544da3
User has not been initialized or user does not exist
root@GW-LB1:~# radosgw-admin bucket stats --bucket=test
{
"bucket": "test",
"num_shards": 0,
"tenant": "",
"zonegroup": "8bb0a154-9fd1-438c-ac8a-4dc73b1c6c28",
"placement_rule": "default-placement",
"explicit_placement": {
"data_pool": "",
"data_extra_pool": "",
"index_pool": ""
},
"id": "d023f7c3-a498-42e7-91a5-817901906ccf.364103.12",
"marker": "d023f7c3-a498-42e7-91a5-817901906ccf.364103.12",
"index_type": "Normal",
"owner": "51e527f97976b6bbe0efa43ad1cbdbdf4c78824d8c1c526a18abb21462749e9a",
"ver": "0#37",
"master_ver": "0#0",
"mtime": "2021-09-21 13:10:45.026555Z",
"max_marker": "0#",
"usage": {
"rgw.main": {
"size": 1399560,
"size_actual": 1421312,
"size_utilized": 1399560,
"size_kb": 1367,
"size_kb_actual": 1388,
"size_kb_utilized": 1367,
"num_objects": 13
}
},
"bucket_quota": {
"enabled": false,
"check_on_raw": true,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
}
}
¹öŶ ±ÇÇÑ ¸µÅ©
# radosgw-admin bucket link --uid=fffbc774a24bd3ea19ae05047a4e968a0d820cc19f552e9f22a05dfbd0544da3 --bucket=tmp --bucket-id=d023f7c3-a498-42e7-91a5-817901906ccf.364103.12
¹öŶ ±ÇÇÑ ¸µÅ©ÇØÁ¦
# radosgw-admin bucket unlink --uid=fffbc774a24bd3ea19ae05047a4e968a0d820cc19f552e9f22a05dfbd0544da3 --bucket=tmp --bucket-id=d023f7c3-a498-42e7-91a5-817901906ccf.364103.12
### owner °ª º¯°æ
root@GW-LB1:~# radosgw-admin bucket stats --bucket=tmp
{
"bucket": "tmp",
"num_shards": 0,
"tenant": "",
"zonegroup": "8bb0a154-9fd1-438c-ac8a-4dc73b1c6c28",
"placement_rule": "default-placement",
"explicit_placement": {
"data_pool": "",
"data_extra_pool": "",
"index_pool": ""
},
"id": "d023f7c3-a498-42e7-91a5-817901906ccf.364103.7",
"marker": "d023f7c3-a498-42e7-91a5-817901906ccf.364103.7",
"index_type": "Normal",
"owner": "51e527f97976b6bbe0efa43ad1cbdbdf4c78824d8c1c526a18abb21462749e9a",
"ver": "0#733",
"master_ver": "0#0",
"mtime": "2023-02-15 02:46:19.891681Z",
"max_marker": "0#",
"usage": {
"rgw.main": {
"size": 5693613436,
"size_actual": 5693689856,
"size_utilized": 5693613436,
"size_kb": 5560170,
"size_kb_actual": 5560244,
"size_kb_utilized": 5560170,
"num_objects": 39
},
"rgw.multimeta": {
"size": 0,
"size_actual": 0,
"size_utilized": 0,
"size_kb": 0,
"size_kb_actual": 0,
"size_kb_utilized": 0,
"num_objects": 0
}
},
"bucket_quota": {
"enabled": false,
"check_on_raw": true,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
}
}