fdisk 对ext4格式分区 进行扩容

参考资料:

  https://www.cnblogs.com/wangzhigang/p/5530741.html

   https://www.linuxquestions.org/questions/linux-general-1/df-showing-incorrect-used-space-after-lvextend-758945/

 

首先, 需要加入新的硬盘或者其他方式进行扩容,然后执行以下命令

1. fdisk -l  查看设备名称 譬如: /dev/sda

2. 结合fdisk命令进行重新分区

  a. # fdisk /dev/sda  

  b. 根据命令提示进行删除分区(d), 创建新分区(n),对新创建的分区修改分区类型(t), 写入保存(w)

  c.  reboot

  d. # resize2fs /dev/sda 通过 resize2fs命令在线地重新定义新分区的大小

  e. # df -h 检查分区是否成功

 

LVM分区扩容:

 

相关文章:

  • 2021-11-08
  • 2021-11-08
  • 2022-01-09
  • 2018-12-13
  • 2021-12-03
  • 2021-11-16
  • 2022-02-08
  • 2021-05-20
猜你喜欢
  • 2021-08-31
  • 2021-07-14
  • 2021-07-10
  • 2021-08-29
  • 2021-10-05
  • 2021-12-14
  • 2021-05-22
相关资源
相似解决方案