当前位置:网站首页>Object storage of CEPH distributed storage
Object storage of CEPH distributed storage
2022-06-11 20:15:00 【WalkingCloud21】


1、 install Ceph Object gateway
From the working directory of the management node , stay ceph_admin Install on node Ceph Object gateway package ceph-deploy install --rgw ceph_admin
2、 ceph-deploy rgw create ceph_admin
3、 adopt 7480 Port to access
4、 by S3 Visit to create a new RADOSGW user In order to use REST Interface , First of all, it needs to be S3 Interface initializes a Ceph Object gateway user . And then to Swift Interface to create a new child user . sudo radosgw-admin user create --uid="yuanfan2020" --display-name="yuanfan2012 test"
5、 Create a SWIFT user If you want to pass Swift visit , You have to create a Swift Sub user . It needs to be done in two steps , The first step is to create a user , Step 2 create the key . stay gateway host Perform the following operations on the host :1) establish Swift user :sudo radosgw-admin subuser create --uid=yuanfan2020 --subuser=yuanfan2020:swift --access=full
2) Create a user's key :sudo radosgw-admin key create --subuser=yuanfan2020:swift --key-type=swift --gen-secret
6、 test S3 visit You need to write a Python The test script , And run it to verify S3 visit . S3 Accessing the test script will connect radosgw, Then create a new bucket Then list all buckets.aws_access_key_id and aws_secret_access_key The value of is the front radosgw_admin In the return value of the command access_key and secret_key.1)yum install python-boto2)vi s3test.pyimport botoimport boto.s3.connectionaccess_key = 'FNH3FUBB27GRDID62DJY'secret_key = 'TqdjLKVgjYWiNHUHuiTKCx3huEQg4kDtMVnZg6pe'conn = boto.connect_s3(aws_access_key_id = access_key,aws_secret_access_key = secret_key,host = '10.20.10.215',port=7480,is_secure=False,calling_format = boto.s3.connection.OrdinaryCallingFormat(),)bucket = conn.create_bucket('yuanfan2012-new-bucket')for bucket in conn.get_all_buckets(): print "{name}\t{created}".format( name = bucket.name, created = bucket.creation_date,)3)python s3test.py
7、 test SWIFT visit Swift Access through swift Command line client to verify 1)yum install python-setuptools2)easy_install pip
3)pip install --upgrade setuptools4)pip install --upgrade python-swiftclient install ``swift`` client
5) verification swift -A http://10.20.10.215:7480/auth/1.0 -U yuanfan2020:swift -K 'wKxrZUHksKPYtO1qNCrRWwLGsX05bxKyJrDOnmoM' list
See the output above , explain swift The interface is normal
边栏推荐
- 【计算机推免】哈尔滨工业大学物联网与泛在智能研究中心面向全国高校推免生招收2023级研究生(硕、博、直博生)
- Introduction to jobrunr, a distributed background job scheduler - jaxenter
- In 2021, the global cement and aggregate revenue will be about USD 204320 million, and it is expected to reach USD 242670 million in 2028
- AHB2APB_ Bridge design
- Calculation of Zeno paradox
- Flutter doctor shows the solution that Xcode is not installed
- Flutter doctor 顯示xcode沒有安裝的解决辦法
- [high precision] decimal integer addition
- unity package manager starting server stuck(Unity启动卡在starting server,然后报错)
- 13 r basic exercises
猜你喜欢

The latest test questions and answers for the eight major members (standard members) of Ningxia architecture in 2022

In 2021, the global cement and aggregate revenue will be about USD 204320 million, and it is expected to reach USD 242670 million in 2028

Two minutes to show you the charging standard of the Sub Ledger System

【四川大学】初试复试考研资料分享

"Video version Mae" of hekaiming team, efficient video pre training! The effect is also very good when mask ratio is up to 90

AHB2Standard_ handshake_ Bridge design

WR | 西湖大学鞠峰组微纳塑料污染对人工湿地菌群与脱氮功能的影响

Shanghai internal promotion 𞓜 Yuyang teacher's research group of Shanghai Chizhi research institute recruits full-time researchers

使用flask框架写挡板

里氏替换原则
随机推荐
Research and Analysis on the market status of polybutene-1 in China from 2021 to 2027 and forecast report on its development prospect
2022-2028 global and Chinese thermopile detector Market Status and future development trend
【四川大学】初试复试考研资料分享
Chrome V8 source code 48 The secret of weak type addition,'+'source code analysis
Rule engine mode Net open source project case
Calculate the number of 926 in the string to the power of 9260 of 926
The first bullet of comparative learning
28. JS执行机制
Detailed tutorial on installing MySQL database in Linux environment (including uninstallation and password reset process)
In 2021, the global adult diaper revenue was about $11560million, which is expected to reach $15440million in 2028. From 2022 to 2028, the CAGR was 4.2%
Power supply anti reverse connection and anti backflow - use MOS tube and op amp to realize ideal diode
My favorite product management template - Lenny
2022-2028 global and Chinese thermopile and microbolometer infrared detector Market Status and future development trend
Comp3411 -prolog language
14 r basic exercises
[Err] 1045 - Access denied for user ‘root‘@‘%‘ (using password: YES)
Simulate Oracle lock waiting and manual unlocking
Jmeter安装
APB2standard_ handshake_ Bridge design
Flutter Doctor affiche les solutions que xcode n'a pas installées