安装时:
sudo apt-get install \ linux-image-extra-$(uname -r) \ linux-image-extra-virtual
我正进入(状态:
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
我发现其他人有类似的问题:apt-get update mdadm scary warnings
所以我按照说明操作:
/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
然后:
update-initramfs -u
但输出是:
update-initramfs: Generating /boot/initrd.img-4.10.0-30-generic W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
lsb_release -a
LSB Version: core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch Distributor ID: Ubuntu Description: Ubuntu 17.04 Release: 17.04 Codename: zesty
vim /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 # 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 # This configuration was auto-generated on Thu,10 Aug 2017 15:23:15 +0000 by mkconf
/ etc / fstab文件
LABEL=cloudimg-rootfs / ext4 defaults 0 0 /var/swap.1 swap swap defaults 0 0
我认为这是在我添加之后开始发生的:
/var/swap.1 swap swap defaults 0 0
还有什么我需要做的吗?
我在Vagrant的帮助下运行VM.
更新1
我找到了另一个类似的问题“:https://askubuntu.com/questions/834903/i-dont-have-a-raid-but-get-the-warning-mdadm-conf-defines-no-arrays
我补充说:
ARRAY <ignore> devices=/dev/sda1
我最后添加了1,因为我没有/ dev / sda独立.
Filesystem Size Used Avail Use% Mounted on udev 473M 0 473M 0% /dev tmpfs 97M 3.1M 94M 4% /run /dev/sda1 19G 4.8G 15G 26% / tmpfs 483M 0 483M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 483M 0 483M 0% /sys/fs/cgroup vagrant_ 384G 48G 337G 13% /vagrant vagrant_www_ 384G 48G 337G 13% /vagrant/www tmpfs 97M 0 97M 0% /run/user/1000
我这样做对吗?
这是做什么的?
警告已经消失了.
这个警告是正常的.忽略它.
原文链接:https://www.f2er.com/ubuntu/348590.htmlupdate-initramfs需要弄清楚启动系统所需的内核模块.在这种情况下,它通过运行mdadm检查您的根文件系统是否在RAID阵列上来检查是否需要RAID模块.由于你根本没有任何RAID阵列,mdadm会打印一个警告 – 但这没关系,因为update-initramfs找到了它需要知道的东西.