因为lv的名字乌龙导致的开机无法挂载/home,进入修复模式
/etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri Oct 19 02:49:22 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=5b225649-c937-41ca-xxxx-xxxxxxxxxxx26 /boot xfs defaults 0 0
/dev/mapper/rhel-lvo10 /home xfs defaults 0 0
/dev/mapper/rhel-swap swap swap defaults 0 0
问题就出在标红的 rhel-lvo10,实际的lv卷名是lvol0 l 在linux终端tty中跟数字1是非常相似的,所以导致我在配置/etc/fstab时挂载的配的是rhel-lvo10,导致挂载不上;
lvrename rhel lvo10 home 报错
Existing logical volume "lvo10" not found in volume group "rhel"
但是我直接在fstab 里配置UUID 挂载又没有问题,以路径名字挂载却挂载不上,百思不得其解,定位问题,原来是逻辑卷命名这
注意,要是确认命令无误,就应该检查字符是否有同型异义