- Ceph Cookbook(Second Edition)
- Vikhyat Umrao Michael Hackett Karan Singh
- 164字
- 2021-07-02 23:19:09
How to do it...
To increase or decrease the Ceph RBD image size, use the --size <New_Size_in_MB> option with the rbd resize command, this will set the new size for the RBD image:
- The original size of the RBD image that we created earlier was 10 GB. We will now increase its size to 20 GB:
# rbd resize --image rbd1 --size 20480 --name client.rbd
# rbd info --image rbd1 --name client.rbd

- Grow the filesystem so that we can make use of increased storage space. It's worth knowing that the filesystem resize is a feature of the OS as well as the device filesystem. You should read filesystem documentation before resizing any partition. The XFS filesystem supports online resizing. Check system messages to know the filesystem size change (you will notice df -h shows the original 10G size even though we resized, as the filesystem still see's the original size):
# df -h
# lsblk
# dmesg | grep -i capacity
# xfs_growfs -d /mnt/ceph-disk1

推薦閱讀
- Mastering Hadoop 3
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- PHP開發手冊
- JSF2和RichFaces4使用指南
- 計算機網絡技術基礎
- 自動控制理論(非自動化專業)
- 21天學通C語言
- 網絡化分布式系統預測控制
- Working with Linux:Quick Hacks for the Command Line
- R Data Analysis Projects
- 貫通Hibernate開發
- 與人共融機器人的關節力矩測量技術
- 納米集成電路制造工藝(第2版)
- DynamoDB Applied Design Patterns
- 運動控制系統