- 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

推薦閱讀
- Getting Started with Clickteam Fusion
- 腦動力:PHP函數速查效率手冊
- VMware Performance and Capacity Management(Second Edition)
- Expert AWS Development
- Google App Inventor
- Maya 2012從入門到精通
- 網絡組建與互聯
- 單片機C語言應用100例
- 運動控制系統
- 工業機器人維護與保養
- Hands-On Data Warehousing with Azure Data Factory
- Linux系統下C程序開發詳解
- 生物3D打印:從醫療輔具制造到細胞打印
- 工業機器人實操進階手冊
- Data Analysis with R(Second Edition)