You are not logged in.

#1 2011-01-09 17:12:26

rob1101
Member
Registered: 2008-02-23
Posts: 28

RAID and LVM fail at boot (mdadm won't start)

I did a fresh install of arch on two 1.5TB disk in raid1 following the wiki page. When I reboot the computer it [FAILS] to load the RAID arrays and LVM2 just stays busy. The system will continue to boot.

mdadm will aslo not start once the system has finished booting.

$ sudo /etc/rc.d/mdadm start
:: Starting mdadm RAID Monitor                                           [BUSY]
mdadm: No mail address or alert command - not monitoring.
                                                                                              [FAIL] 

Other than that everything seems to be working ok. How can I check to see if my raid array is running properly?

I have 3 partitions on my drives

  • /home

    • /dev/md1

      • /dev/sda1

      • /dev/sdb1

  • /

    • /dev/md3

      • /dev/sda3

      • /dev/sdb3

  • swap

    • /dev/md2

      • /dev/sda2

      • /dev/sdb2

and some unallocated space



It seems mdadm has finished syncing.

$ cat /proc/mdstat

Personalities : [raid1] 
md3 : active raid1 sda3[0] sdb3[1]
      209715136 blocks [2/2] [UU]
      
md2 : active raid1 sda2[0] sdb2[1]
      10484664 blocks super 1.2 [2/2] [UU]
      
md1 : active raid1 sda1[0] sdb1[1]
      1073740664 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>

/etc/mdadm.conf

ARRAY /dev/md/1 metadata=1.2 UUID=0d8a1ece:0d83585c:048cc398:62e21d8c name=archiso:1
ARRAY /dev/md/2 metadata=1.2 UUID=6f99f7ec:11df7d3a:d59b14e8:957e8777 name=archiso:2
ARRAY /dev/md3 UUID=8135866d:6b26dcec:52419904:51489ef3

/etc/fstab

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/mapper/home-home /home ext4 defaults 0 1
/dev/mapper/root-boot /boot ext4 defaults 0 1
/dev/mapper/root-root / ext4 defaults 0 1
/dev/md2 swap swap defaults 0 0

Last edited by rob1101 (2011-01-10 21:07:57)

Offline

#2 2011-01-12 17:44:20

rob1101
Member
Registered: 2008-02-23
Posts: 28

Re: RAID and LVM fail at boot (mdadm won't start)

I think I solved my problems, and im going to document it here in case someone pulls this up in a search.


To fix the raid monitor I added this line to my /etc/mdadm.conf

MAILADDR my.email@gmail.com

And it seems the raid failing on startup is a known bug

Last edited by rob1101 (2011-01-12 17:45:00)

Offline

Board footer

Powered by FluxBB