In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.