安装时:
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可怕的警告
所以我按照指示进行:
/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
我这样做对吗?这是做什么的?
警告已经消失。