官术网_书友最值得收藏!

  • Ceph Cookbook
  • Karan Singh
  • 225字
  • 2021-07-16 13:01:17

Ceph RBD resizing

Ceph supports thin provisioned block devices, which means that the physical storage space will not get occupied until you begin storing data on the block device. The Ceph block device is very flexible; you can increase or decrease the size of an RBD on the fly from the Ceph storage end. However, the underlying filesystem should support resizing. Advance filesystems such as XFS, Btrfs, EXT, ZFS, and others support filesystem resizing to a certain extent. Please follow filesystem specific documentation to know more about resizing.

How to do it…

To increase or decrease 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:

  1. 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
    
  2. 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:
    # dmesg | grep -i capacity
    # xfs_growfs -d /mnt/ceph-disk1
    
主站蜘蛛池模板: 永城市| 新沂市| 文山县| 固原市| 太保市| 塘沽区| 临夏县| 英吉沙县| 东乡族自治县| 揭东县| 天长市| 赣州市| 布尔津县| 安龙县| 神农架林区| 双桥区| 班玛县| 永安市| 金沙县| 江阴市| 耒阳市| 晋中市| 巴林右旗| 多伦县| 长垣县| 铁岭市| 六安市| 禹城市| 犍为县| 汉中市| 辽阳市| 威远县| 吐鲁番市| 襄垣县| 宁国市| 浦城县| 崇明县| 陕西省| 吉林市| 玉田县| 连南|