Назад | Перейти на главную страницу

Массив mdadm активен, но отсутствует в списке

Я использую Ubuntu Server 12.04. Я сделал apt-get upgrade и получил предупреждение от 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 является:

# 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

В предупреждении говорится, что / dev / md1 и / dev / md3 не указаны, хотя они есть в конфигурации. Можно ли сменить конфиг на второй или это вызовет проблемы?

Единственная разница, которую я вижу, - это эта строка:

#DEVICE partitions

Это закомментировано в сгенерированном файле конфигурации, но не в вашем. Я просто раскомментировал это и зафиксировал изменения. Подобные предупреждения, если конфигурации совпадают, имеют тенденцию быть "напоминанием", а не реальной проблемой.