我安装了 16.04 服务器,并且在我的日志中出现了类似的消息,当我initramfs
通过常规包升级来升级包时也出现了此消息。
...
Setting up initramfs-tools (0.122ubuntu8.3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.3) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-38-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
这是正常的吗,还是 Ubuntu 因为某处的配置错误而希望找到 RAID?
以下是内容/etc/mdadm/mdadm.conf
:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
答案1
错误说W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
ARRAY
我认为只要没有行就会显示警告mdadm.conf
。
显而易见的解决方案是添加一个:
ARRAY <ignore> devices=/dev/sda
对我有用......