uname -a
Linux xxx 2.6.22-14-server #1 SMP Tue Feb 12 08:27:05 UTC 2008 i686 GNU/Linux
mdadm --version
mdadm - v2.6.2 - 21st May 2007
ubuntu gutsy server updatissään.
Ongelma: Boottauksen jälkeen md0 ja md1-laitteet katosivat.
/proc/mdstat oli tyhjä
ja
$ cat /etc/mdadm/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 Thu, 20 Dec 2007 13:54:16 +0200
# by mkconf $Id: mkconf 324 2007-05-05 18:49:44Z madduck $
HUOM! definitions of existing MD arrays ON TYHJÄ
Ratkaisu oli
sudo mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3
sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2
ja
mount -a
Levyosiot sain selville
$cat /proc/partitions
major minor #blocks name
8 0 117246528 sda
8 1 19535008 sda1
8 2 29294527 sda2
8 3 48925957 sda3
8 4 2931862 sda4
8 16 117246528 sdb
8 17 19535008 sdb1
8 18 29294527 sdb2
8 19 48925957 sdb3
ja
$sudo fdisk -l /dev/sda
Disk /dev/sda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1388df2a
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 83 Linux
/dev/sda2 2433 6079 29294527+ fd Linux raid autodetect
/dev/sda3 6080 12170 48925957+ fd Linux raid autodetect
/dev/sda4 14232 14596 2931862+ 82 Linux swap / Solaris
Homma pelastui, mutta
# definitions of existing MD arrays
on edelleen tyhjä, joten homma on uusittava seuraavan bootin jälkeen.
Siis: Miksi raid-tiedot hävisivät ja miten saan mdadm.conffiin määritettyä uudestaan?