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

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
主站蜘蛛池模板: 寻乌县| 九龙县| 平南县| 法库县| 漳平市| 南丹县| 松桃| 临沧市| 丘北县| 汉阴县| 东兰县| 睢宁县| 读书| 班戈县| 锡林郭勒盟| 洞头县| 定日县| 大丰市| 大理市| 西城区| 和顺县| 抚松县| 什邡市| 宜阳县| 礼泉县| 黔江区| 花莲市| 阜宁县| 屯门区| 田阳县| 泰兴市| 安义县| 九江市| 英山县| 南雄市| 元江| 弥勒县| 定襄县| 凤凰县| 沙雅县| 凉山|