Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to check out object data by ceph10.1.0

Shulou Source: shulou.com Published: 2022-05-31 18:41:03 09月21日 Update

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!

Tags: Objects storage data clusters content commands customers clients articles positioning testing value location interests dynamics names guys partners files more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Docker Xiaomi Redmi