[Bug 1302195] Re: System with degraded array boots regardless of BOOT_DEGRADED flag

Dimitri John Ledkov launchpad at surgut.co.uk
Fri Apr 11 18:56:16 UTC 2014


Yes, that test-case needs updating. I'll follow up on that.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/1302195

Title:
  System with degraded array boots regardless of BOOT_DEGRADED flag

Status in “mdadm” package in Ubuntu:
  Invalid
Status in “mdadm” source package in Trusty:
  Invalid

Bug description:
  System with degraded array boots regardless of BOOT_DEGRADED flag:

  With a cold-degraded array, and BOOT_DEGRADED=false set in /etc
  /initramfs-tools/conf.d/mdadm, a degraded machine boots without
  prompting to proceed.

  Additionally, on Trusty (daily server ISO 2014-APR-02), the /etc
  /initramfs-tools/conf.d/mdadm file isn't created, which may be
  unexpected behavior.

  When manually creating the /etc/initramfs-tools/conf.d/mdadm file and
  setting BOOT_DEGRADED=false, also updating initramfs, the flag is not
  honored, and the degraded machine boots normally without prompt.

  According to bug 1279741, degraded array check appears to have been removed in mdadm - 3.2.5-5ubuntu3:
  https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1279741

  We probably still have users who will expect to be able to configure a
  system to halt & prompt prior to booting a system with a degraded
  array.

  
  ==========
  rbeisner at isotest1:~$ uname -a
  Linux isotest1 3.13.0-20-generic #42-Ubuntu SMP Fri Mar 28 09:56:33 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

  rbeisner at isotest1:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu Trusty Tahr (development branch)
  Release:        14.04
  Codename:       trusty

  rbeisner at isotest1:~$ dpkg -l | egrep 'mdadm|initramfs'
  ii  busybox-initramfs                   1:1.21.0-1ubuntu1             amd64        Standalone shell setup for initramfs
  ii  initramfs-tools                     0.103ubuntu4                  all          tools for generating an initramfs
  ii  initramfs-tools-bin                 0.103ubuntu4                  amd64        binaries used by initramfs-tools
  ii  libklibc                            2.0.3-0ubuntu1                amd64        minimal libc subset for use with initramfs
  ii  mdadm                               3.2.5-5ubuntu4                amd64        tool to administer Linux MD arrays (software RAID)

  
  ==========
  rbeisner at isotest1:~$ ls -l /boot/init*
  -rw-r--r-- 1 root root 19459439 Apr  3 15:14 /boot/initrd.img-3.13.0-20-generic

  rbeisner at isotest1:~$ ls -l /etc/initramfs-tools/conf.d/mdadm 
  -rw-r--r-- 1 root root 20 Apr  3 15:11 /etc/initramfs-tools/conf.d/mdadm

  rbeisner at isotest1:~$ cat /etc/initramfs-tools/conf.d/mdadm 
  BOOT_DEGRADED=false

  ==========
  rbeisner at isotest1:~$ cat /proc/mdstat
  Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
  md1 : active raid1 vda5[0]
        975296 blocks super 1.2 [2/1] [U_]
        
  md2 : active raid1 vda6[3]
        5854144 blocks super 1.2 [2/1] [U_]
        
  md0 : active raid1 vda1[3]
        34146176 blocks super 1.2 [2/1] [U_]
        
  unused devices: <none>

  ==========
  rbeisner at isotest1:~$ sudo mdadm --detail /dev/md0
  /dev/md0:
          Version : 1.2
    Creation Time : Wed Apr  2 15:47:14 2014
       Raid Level : raid1
       Array Size : 34146176 (32.56 GiB 34.97 GB)
    Used Dev Size : 34146176 (32.56 GiB 34.97 GB)
     Raid Devices : 2
    Total Devices : 1
      Persistence : Superblock is persistent

      Update Time : Thu Apr  3 15:57:27 2014
            State : clean, degraded 
   Active Devices : 1
  Working Devices : 1
   Failed Devices : 0
    Spare Devices : 0

             Name : isotest1:0  (local to host isotest1)
             UUID : 64f1fa6b:a3581a62:4e1589dd:b9ac6fba
           Events : 473

      Number   Major   Minor   RaidDevice State
         3     253        1        0      active sync   /dev/vda1
         1       0        0        1      removed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1302195/+subscriptions



More information about the foundations-bugs mailing list