I installed 16.04 Server and I have had a similar message in my logs and this message when I upgrade initramfs packages through normal package upgrade.

...
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.

Is this normal, or is Ubuntu expecting to find a RAID because of some misconfiguration somewhere?

Here is the contents of /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
share|improve this question
up vote 23 down vote accepted

The error says W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

I reckon that the warning is displayed whenever there's no ARRAY line in mdadm.conf.

The obvious solution would be to add one:

ARRAY <ignore> devices=/dev/sda

Worked for me...

share|improve this answer
    
Thank you very much, Steffen. This has stopped the warnings. – Paul Jan 2 '17 at 19:29
    
What does it do? It wont show error? Or wont show and still will crash? Or it doesnt crash aalready but just shows error? If just showing then i dont care to add something if not fixing crashing. – Kangarooo Mar 5 '17 at 23:48
2  
@Kangarooo There is no "crashing" problem reported anywhere in this question. The problem is just to make a warning go away. Steffen has provided a proper solution by telling mdadm that it should not expect there to be any arrays, which is all the warning was telling about. – Paul Mar 6 '17 at 1:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.