拡張試行にアップグレードした後、mdadm.confは空です。

拡張試行にアップグレードした後、mdadm.confは空です。

私は自信を持っているので、今日Jesseのストレッチガイドラインを次のように更新しました。https://angristan.fr/mettre-a-jour-debian-8-jessie-vers-debian-9-stretch/

適切なフルアップグレード出力の最後の行まで、すべてがうまくいきました。

update-initramfs: Generating /boot/initrd.img-4.9.0-4-amd64
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

md0に配列があります。私の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

# This configuration was auto-generated on Mon, 27 Mar 2017 14:34:34     +0200 by mkconf

私のfstabは

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdc1 during installation
UUID=9b473d0e-84ab-4661-b03f-0ce5b56c215b /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdc5 during installation
UUID=bc5f7676-5202-4202-903e-e50e6c4fcaf6 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

#/dev/md0
UUID=b1269cba-ec1b-4d68-b6a6-5f9830b5dfca   /mnt/raid5  ext4    defaults    0   2

アレイをどのように構築したか覚えていません。このconfファイルを再生成する方法はありますか(いいえ、バックアップはありません)?再起動すると、アレイを失うのではないかと心配です。 (ファイルをコピーできますが、ただ291Gデータ)。

私はこのリンクを読んだ。https://serverfault.com/questions/867996/apt-get-install-linux-image-extra-getting-w-mdadm-etc-mdadm-mdadm-conf-definしかし、答えは配列がない人のためです。

助けてくれてありがとう。

ベストアンサー1

/usr/share/mdadm/mkconf force-generate /etc/mdadm/mdadm.conf

実際に働いた。設定ファイルが再生成され、再起動後、すべてが正常に動作しました。結局、仕事が簡単になりました。

おすすめ記事