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

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:

  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
  1. 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
主站蜘蛛池模板: 贵阳市| 津南区| 蕲春县| 丰顺县| 曲松县| 靖江市| 石楼县| 通渭县| 连城县| 松滋市| 东辽县| 车致| 合川市| 柘荣县| 九江市| 岳阳县| 长寿区| 凤山市| 泾阳县| 当雄县| 丽江市| 电白县| 禹州市| 竹溪县| 滦平县| 页游| 德阳市| 常宁市| 丰原市| 彝良县| 合肥市| 满城县| 平阳县| 奉节县| 安达市| 永登县| 含山县| 波密县| 灵璧县| 新津县| 班戈县|