我刚刚更新了我们的一台debian jessie服务器,内核也进行了更新,没什么特别的,因为我们已经做了很多次了。但是,第一次生成grub配置文件时出现一些警告。我从未见过他们。据我所知,重启后系统运行良好。
Setting up linux-image-3.16.0-4-amd64 (3.16.7-ckt25-2+deb8u3) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
done
我在网上搜索了警告,但找不到适合我的体面解释(也许无法理解?),也无法理解是否可以忽略。这里有人有主意吗?谢谢
locking_type
设置为什么/etc/lvm/lvm.conf
?
locking_type = 1
。似乎是标准。
use_lvmetad = 1
?难道lvmetad
真的不多?什么systemctl status lvm2-lvmetad
发言权?zz-update-grub
挂钩可能会暂时覆盖其中的某些设置?手动运行LVM命令时,不会收到类似的警告吗?
lvm.conf
其中有If lvmetad has been running while use_lvmetad was 0, it MUST be stopped before changing use_lvmetad to 1 and started again afterwards.
一条评论:因此,我认为此警告只是想提醒您,您处于lvmetad运行奇怪的情况,但已通过配置禁用,并且仅当您要在config文件中启用它时,才需要重新启动它。奇怪的是,conf评论和警告不同意顺序。