逻辑卷不是根分区都可以在线扩容和缩小

根分区是可以在线扩容,但不可以在线缩小

 

Linux系统进入救援模式

 

依次选择:

欢迎界面 ---------- Rescue installed system

Chose a Language ------------- English

Keyboard Type --------- us

Rescue Method ------------------ Local CD/DVD

Setup Networking ---------------- No

Rescue ------------------- Skip (这个是是否挂载现在的分区 得选跳过)

---------------- Shell Start Shell

 

 

依次执行

pvscan、vgscan、lvscan

LVM缩小根分区

激活vg分区

lvchange -ay /dev/vg-root/LogVol01

 

强行修复

e2fsck -f /dev/vg-root/LogVol01

LVM缩小根分区

 

缩小文件系统

resize2fs /dev/vg-root/LogVol01 10G

LVM缩小根分区

 

缩小LVM的lv

lvreduce -L 10G /dev/vg-root/LogVol01

fsck /dev/vg-root/LogVol0

LVM缩小根分区

 

重启系统

LVM缩小根分区

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-12-29
猜你喜欢
  • 2021-10-11
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案