linux -- 扩容 /home 空间( xfs文件系统分区扩容指定挂载点)

问题:

/home空间容量不够使用,扩容卷组,扩容挂载点

方法:

1. 确认有可用的物理磁盘

  fdisk -l -- 查看磁盘信息

  df -h -- 查看当前挂载信息

  vgs -- 查看当前卷组信息

2. 将磁盘加入卷组

  vgextend vg2000 /dev/sdb #将物理卷"/dev/sdb"加入卷组"vg2000"

3. 查看可用空闲空间大小Free PE/Size 项
  
4. 扩容 1G
  lvextend -L +1G /dev/mapper/vg_sql-lv_root
5. 激活
  xfs_growfs /dev/mapper/vg_sql-lv_root

6. 重新查看挂载点
  df -h

参考:

https://www.cplusplus.me/2316.html -- ext文件格式磁盘扩容
http://www.yuanzhexi.com/post-318.html -- 激活分区失败解决方案
https://blog.csdn.net/lzjsqn/article/details/72059035 -- 查看文件系统分区类型

猜你喜欢

转载自www.cnblogs.com/ashen/p/9842280.html
今日推荐