问题描述
使用SUSE系统,数据盘做LVM,确认正常可用后修改fstab文件以便开机可以自动挂载LVM,但是重启后提示找不到LVM。
问题原因
LVM的相关服务未设置开机自动启动,需要将这个服务设置为开机自启。
解决方案
负责LVM开机自动激活的是boot.lvm这个服务,请您参考以下步骤操作。
执行以下命令查看服务是否开机启动。
chkconfig -A | grep boot.lvm
boot.lvm off
boot.lvm_monitor on
执行以下命令设置服务开机启动。
chkconfig boot.lvm on
insserv: warning: script 'K02AssistDaemon' missing LSB tags
insserv: warning: script 'AssistDaemon' missing LSB tags
insserv: Service network is missed in the runlevels 4 to use service cloud-init
insserv: Service syslog is missed in the runlevels 4 to use service aegis
insserv: can not symlink(../aegis, rc2.d/S07aegis): File exists
insserv: can not symlink(../aegis, rc3.d/S07aegis): File exists
insserv: can not symlink(../aegis, rc4.d/S07aegis): File exists
insserv: can not symlink(../aegis, rc5.d/S07aegis): File exists
再次执行以下命令确认服务是否开机启动。
chkconfig -A | grep boot.lvm
boot.lvm on
boot.lvm_monitor on