In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "what are the operations of block devices in ceph". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "what are the operations of block devices in ceph?"
one。 Create a block device
Qemu-img create-f rbd rbd: resource pool name / block device name file size
For example:
Qemu-img create-f rbd rbd:rbd/test 1G
Description: create a block device named test with a size of 1G under the resource pool rbd. You can view the information of this device using rbd info test.
two。 Map the block devices in the resource pool
Rbd map resource pool / block device name
For example:
Rbd map rbd/test
Map the test block devices under the resource pool rbd and view them through rbd showmapped, for example:
Id pool image snap device
1 rbd mydisk-/ dev/rbd1
2 rbd test-/ dev/rbd2
It means I have two block devices here, and the drive letter mapped by the test block is / dev/rbd2.
Formatting the mapped disk
Mkfs.ext4 / dev/rbd2
four。 Use this piece of equipment
Create a folder resource under the / mnt directory
Mount the disk to the resource directory
Mount / dev/rbd2 / mnt/resource
five。 Delete block device
Remove and mount
Umount / mnt/resource
Unmap rbd test-/ dev/rbd2 mapping relationship
Rbd unmap / dev/rbd2
Delete block device
Rbd rm test
The above is all the contents of the article "what are the operations of block devices 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.
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.