In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "sample Analysis of ceph rbd online resize", which is easy to understand and well organized. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "sample Analysis of ceph rbd online resize".
Ceph rbd online resize
Before capacity expansion
[root@mon0 ceph] # rbd create myrbd/rbd1-s 1024-- image-format=2 [root@mon0 ceph] # rbd ls myrbdrbd1 [root@mon0 ceph] # rbd info myrbd/rbd1rbd image 'rbd1': size 1024 MB in 256 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.12ce6b8b4567 format: 2 features: layering
Expand capacity
[root@mon0 ceph] # rbd resize myrbd/rbd1-s 2048Resizing image: 100% complete...done.
Before rbd1 is formatted and mounted, resize is fine. If the rbd1 has been formatted and mounted, some additional actions are required:
[root@mon0 ceph] # rbd map myrbd/rbd1 [root@mon0 ceph] # rbd showmappedid pool image snap device 0 test test.img-/ dev/rbd0 1 myrbd rbd1-/ dev/rbd1 [root@mon0 ceph] # mkfs.xfs / dev/rbd1log stripe unit (4194304 bytes) is too large (maximum is 256KiB) log stripe unit adjusted to 32KiBmeta-data=/dev/rbd1 isize=256 agcount=9, agsize=64512 blks = sectsz=512 attr=2 Projid32bit=0data = bsize=4096 blocks=524288, imaxpct=25 = sunit=1024 swidth=1024 blksnaming = version 2 bsize=4096 ascii-ci=0log = internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=8 blks, lazy-count=1realtime = none extsz=4096 blocks=0 Rtextents=0 [root@mon0 ceph] # mount / dev/rbd1 / mnt [root@mon0 ceph] # df-hFilesystem Size Used Avail Use% Mounted on/dev/sda1 529G 20G 482G 4% / tmpfs 16G 408K 16G 1% / dev/shm/dev/sdb 559G 33G 527G 6% / openstack/dev/sdc 1.9T 75M 1.9T 1% / cephmp1/dev/sdd 1.9T 61m 1. 9T 1% / cephmp2/dev/rbd1 2.0G 33M 2.0G 2% / mnt [root@mon0 ceph] # rbd resize myrbd/rbd1-s 4096Resizing image: 100% complete...done. [root@mon0 ceph] # df-hFilesystem Size Used Avail Use% Mounted on/dev/sda1 529G 20G 482G 4% / tmpfs 16G 408K 16G 1% / dev/shm/dev/sdb 559G 33G 527G 6% / openstack/dev/sdc 1.9T 75M 1.9T 1% / cephmp1/dev/sdd 1.9T 61M 1.9T 1% / cephmp2/dev/rbd1 2.0G 33M 2.0G 2% / mnt [root@mon0 ceph] # xfs_growfs / mntmeta-data=/dev/rbd1 isize=256 agcount=9 Agsize=64512 blks = sectsz=512 attr=2, projid32bit=0data = bsize=4096 blocks=524288, imaxpct=25 = sunit=1024 swidth=1024 blksnaming = version 2 bsize=4096 ascii-ci=0log = internal bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=8 blks, lazy-count=1realtime = none extsz=4096 blocks=0 Rtextents=0data blocks changed from 524288 to 1048576 [root@mon0 ceph] # df-hFilesystem Size Used Avail Use% Mounted on/dev/sda1 529G 20G 482G 4% / tmpfs 16G 408K 16G 1% / dev/shm/dev/sdb 559G 33G 527G 6% / openstack/dev/sdc 1.9T 75M 1.9T 1% / cephmp1/dev/sdd 1.9T 61M 1.9T 1% / cephmp2/ Dev/rbd1 4.0G 33m 4.0G 1% / mnt
In another case, rbd1 has been mounted to a vm:
Virsh domblklist myvmrbd resize myrbd/rbd1# here needs to operate through virsh blockresize virsh blockresize-- domain myvm-- path vdb-- size 100Grbd info myrbd/rbd1 is all the content of this article "sample Analysis of ceph rbd online resize", 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.