标签:remote files form row 自动 order features tmpfs xfs
############在线调整ceph RBD 大小###########(1)客户端中查看remote_rbd71容量
[root@zabbix71 /]# rbd --image remote_rbd71 info
rbd image ‘remote_rbd71‘:
size 100 GiB in 25600 objects
order 22 (4 MiB objects)
snapshot_count: 0
id: 148fdf5968ea2
block_name_prefix: rbd_data.148fdf5968ea2
format: 2
features: layering, exclusive-lock
op_features:
flags:
create_timestamp: Mon Aug 26 15:23:16 2019
access_timestamp: Mon Aug 26 15:23:16 2019
modify_timestamp: Mon Aug 26 15:23:16 2019
#(2)集群中升级remote_rbd71容量到150G
[root@node140 /]# rbd resize rbd/remote_rbd71 --size 150G
#(3)客户端进行查看remote_rbd71容量,已经扩容成功
[root@zabbix71 /]# rbd --image remote_rbd71 info
rbd image ‘remote_rbd71‘:
size 150 GiB in 38400 objects
order 22 (4 MiB objects)
snapshot_count: 0
id: 148fdf5968ea2
block_name_prefix: rbd_data.148fdf5968ea2
format: 2
features: layering, exclusive-lock
op_features:
flags:
create_timestamp: Mon Aug 26 15:23:16 2019
access_timestamp: Mon Aug 26 15:23:16 2019
modify_timestamp: Mon Aug 26 15:23:16 2019
#(4)查看客户端大小,还是100G
[root@zabbix71 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 46G 12G 34G 26% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 113M 7.7G 2% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sda1 1014M 180M 835M 18% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0
/dev/rbd0 100G 33M 100G 1% /mnt
#(5)操作系统 在线调整文件系统容量,在大量读写的情况下可能比较慢
[root@zabbix71 ~]# xfs_growfs -d /mnt/
[root@zabbix71 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 46G 12G 34G 26% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 113M 7.7G 2% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sda1 1014M 180M 835M 18% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0
/dev/rbd0 100G 33M 150G 1% /mnt
标签:remote files form row 自动 order features tmpfs xfs
原文地址:https://blog.51cto.com/7603402/2432709