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

Example Analysis of rbd format1 and rbd fromat2 in ceph

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the example analysis of rbd format1 and rbd fromat2 in ceph, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Rbd format1 and rbd fromat2

Rbd format1:

[root@osd1 /] # rbd create myrbd/rbd1-s 8 [root@osd1 /] # rbd info myrbd/rbd1rbd image 'rbd1': size 8192 kB in 2 objects order 22 (4096 kB objects) block_name_prefix: rb.0.13fb.6b8b4567 format: 1 [root@osd1 /] # rados ls-p myrbdrbd_ directoryrbd1.rbd [root @ osd1 /] # rbd map myrbd/rbd1 [root@osd1 /] # rbd showmappedid pool image snap device 0 myrbd rbd1 -/ dev/rbd0 [root@osd1 /] # dd if=/dev/zero of=/dev/rbd0 dd: writing to `/ dev/rbd0': No space left on device16385+0 records in16384+0 records out8388608 bytes (8.4MB) copied 2.25155 s, 3.7 MB/s [root@osd1 /] # rados ls-p myrbdrbd_directoryrbd1.rbdrb.0.13fb.6b8b4567.000000000001rb.0.13fb.6b8b4567.000000000000

$image_name.rbd: contains the id (rb.0.13fb.6b8b4567) of this block

$rbd_id.$fragment: data block

Rbd_directory: list of rbd blocks in the current pool

Rbd format2

[root@osd1 /] # rbd create myrbd/rbd1-s 8-- image-format=2 [root@osd1 /] # rbd info myrbd/rbd1rbd image 'rbd1': size 8192 kB in 2 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.13436b8b4567 format: 2 features: layering [root@osd1 /] # rados ls-p myrbdrbd_directoryrbd_header.13436b8b4567rbd_ id.rbd1 [root @ osd1 /] # rbd map myrbd/rbd1 [root @ osd1 /] # rbd showmappedid pool image snap device 0 myrbd rbd1-/ dev/rbd0 [root@osd1 /] # dd if=/dev/zero of=/dev/rbd0dd: writing to `/ dev/rbd0': No space left on device16385+0 records in16384+0 records out8388608 bytes (8.4 MB) copied 2.14407 s, 3.9 MB/s [root@osd1 /] # rados ls-p myrbdrbd_directoryrbd_data.13436b8b4567.0000000000000000rbd_data.13436b8b4567.0000000000000001rbd_header.13436b8b4567rbd_id.rbd1

Rbd_data.$rbd_id.$fragment: block

Rbd_directory: list of rbd blocks in the current pool

Rbd_header.$rbd_id: metadata for rbd blocks

Rbd_id.$image_name: the id (13436b8b4567) that contains this block

The above is all the content of the article "sample Analysis of rbd format1 and rbd fromat2 in ceph". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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

Development

Wechat

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

12
Report