我正在运行的Ubuntu服务器12.04。 我做了apt-get升级,并收到了mdadm的警告。
update-initramfs: Generating /boot/initrd.img-3.11.0-24-generic W: mdadm: the array /dev/md3 with UUID e3d153f0:6edf1702:1f51fb89:78ee93fe W: mdadm: is currently active, but it is not listed in mdadm.conf. if W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE! W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes. W: mdadm: the array /dev/md1 with UUID 76492e25:648c4dcd:1f51fb89:78ee93fe W: mdadm: is currently active, but it is not listed in mdadm.conf. if W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE! W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.
我目前的mdadm.conf是:
# mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default, scan all partitions (/proc/partitions) for MD superblocks. # alternatively, specify devices to scan, using wildcards if desired. DEVICE partitions # 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 # This file was auto-generated on Tue, 11 May 2010 20:53:30 +0200 # by mkconf $Id$ ARRAY /dev/md1 level=raid1 num-devices=2 devices=/dev/sda1,/dev/sdb1 ARRAY /dev/md3 level=raid1 num-devices=2 devices=/dev/sda3,/dev/sdb3
/usr/share/mdadm/mkconf生成的configuration是:
# 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 # 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 ARRAY /dev/md1 UUID=76492e25:648c4dcd:1f51fb89:78ee93fe ARRAY /dev/md3 UUID=e3d153f0:6edf1702:1f51fb89:78ee93fe
警告说,即使它们在configuration中,/ dev / md1和/ dev / md3也没有列出。 可以改变configuration到第二个还是会导致问题?
我看到的唯一区别是这一行:
#DEVICE partitions
这是在生成的configuration文件中注释掉,但不是你的。 我只是取消注释并提交更改。 像这样的警告往往是一个“头”的东西,而不是一个实际的问题,如果configuration一致。