Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check out object data by ceph10.1.0

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces ceph10.1.0 how to check out object data, the article is very detailed, has a certain reference value, interested friends must read it!

First, deploy ceph: http://my.oschina.net/u/857184/blog/653349 before performing the following experimental operations

II.

To store objects in an Ceph storage cluster, the client must:

Specify object name

Specify Storage Pool

The Ceph client checks out the latest cluster running diagram, uses the CRUSH algorithm to calculate how to map objects to the configuration group, and then dynamically calculates how to assign the configuration group to the OSD. To locate an object, you only need the object name and the storage pool name, for example: ceph osd map {poolname} {object-name}

List the object storage pool and execute $ceph osd lspools

Third, we first create an object, use the rados put command to add the object name, a test file path with data, and specify the storage pool. For example:

$echo "This is test conten" > testfile.txt $rados put test-object-1 testfile.txt-pool=rbd

4. To confirm that this object is stored in the Ceph storage cluster, you can execute: $rados-p rbd ls

5. Positioning object: syntax: ceph osd map {pool-name} {object-name}

$ceph osd map rbd test-object-1

5. Ceph should output the location of the object, for example:

6. Use the ``test rm`` command to delete this test object, for example:

$rados rm test-object-1-pool=rbd

The above is all the contents of the article "how to check out object data by ceph10.1.0". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report