缘由:新买的磁盘,原来装机的时候根目录只有10G多,现在使用虚拟盘合并元磁盘共同做根目录

1.[[email protected]~]# lsblk:列出所有可用设备块信息

新磁盘挂载扩展到根目录CentOS7

2.[[email protected]~]# vgdisplay -v:查看卷分组

新磁盘挂载扩展到根目录CentOS7

3.[[email protected]~]# pvcreate /dev/sdc1:创建物理卷

新磁盘挂载扩展到根目录CentOS7

4.[[email protected]~]# pvdisplay:查看结果

新磁盘挂载扩展到根目录CentOS7

5.[[email protected]~]# vgextend centos_cimc59 /dev/sdc1:扩展卷分组

新磁盘挂载扩展到根目录CentOS7

6.[[email protected]~]# lvdisplay:查看逻辑卷

新磁盘挂载扩展到根目录CentOS7

7.[[email protected]~]# lvextend -L +931.5G /dev/centos_cimc59/root:扩展逻辑卷

新磁盘挂载扩展到根目录CentOS7

[[email protected]~]# df -h

新磁盘挂载扩展到根目录CentOS7

8.[[email protected]~]# xfs_growfs /dev/mapper/centos_cimc59-root:同步文件系统

新磁盘挂载扩展到根目录CentOS7

[[email protected]~]# df -h
新磁盘挂载扩展到根目录CentOS7创作不易,满意点赞

相关文章: