CentOS系统盘扩容,重启后无法正常进入系统

一台业务虚拟机运行CentOS Linux release 7.9.2009 (Core),进行系统盘扩容后重新启动,无法正常进入系统,输入出如下信息:

[189.755397] dracut-initqueue[319] : Warning: Could not boot
[189.790415] dracut-initqueue[319] : Warning: /dev/centos/root does not exist
[189.791263] dracut-initqueue[319] : Warning: /dev/centos/swap does not exist
[189.792035] dracut-initqueue[319] : Warning: /dev/mapper/centos-root does not exist
           Starting Dracut Emergency Shell . . .
Warning: /dev/centos/root does not exist
Warning: /dev/centos/root does not exist
Warning: /dev/mapper/centos-root does not exist

Generating "/run/initramfs/rdsosreport.txt"

Entering emergency mode . Exit the shell to continue.
Type "journalctl" to view system logs .
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot.
after mounting them and attach .it to a bug report

在命令行输入lvm lvscan查看分区活动状态,分区处于未激活状态。

dracut :/# lvm lvscan
inactive    'dev/centos/swap'     [7.00 GiB] inherit
inactive    'dev/centos/home'    [20.34 GiB] inherit
inactive    'dev/centos/root'      [41.66 GiB] inherit

输入以下激活分区命令。

dracut :/# lvm lvchange -a y centos/swap
dracut :/# lvm lvchange -a y centos/home
dracut :/# lvm lvchange -a y centos/root

然后输入exit 重新启动进入系统。

dracut :/# exit

参考doc:4.7. 在集群中的单个节点上激活逻辑卷 Red Hat Enterprise Linux 7 | Red Hat Customer Portal

你可能感兴趣的:(Linux,linux,centos,笔记)