调整逻辑卷空间大小和缩小空间时需要谨慎,因为它有可能导致数据丢失。
扩容前,搞清楚自己的分区格式:
xfs ------------ ext2、ext3、 ext4
# 查看磁盘类型 df -hT [root@xxx ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/vda2 xfs 99G 18G 82G 18% / devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev tmpfs tmpfs 7.8G 76K 7.8G 1%