Results 1 to 9 of 9

Thread: Unable to find mdadm file

  1. #1
    Join Date
    May 2014
    Beans
    9

    Unable to find mdadm file

    Hi, I built a raid 1 system on ubuntu 14.04 server. When I try to find the **/etc/initramfs-tools/conf.d/mdadm**, in order to set "BOOT_DEGRADED=true", that file does not exist.
    The result of the the
    Code:
    fdisk -l
    is :

    Code:
    no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
    
        Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
        255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
        Units = sectors of 1 * 512 = 512 bytes
        Sector size (logical/physical): 512 bytes / 4096 bytes
        I/O size (minimum/optimal): 4096 bytes / 4096 bytes
        Disk identifier: 0x000a53ac
    
           Device Boot      Start         End      Blocks   Id  System
        /dev/sdb1            2048     3905535     1951744   fd  Linux raid autodetect
        /dev/sdb2   *     3905536  1953523711   974809088   fd  Linux raid autodetect
    
        Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
        255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
        Units = sectors of 1 * 512 = 512 bytes
        Sector size (logical/physical): 512 bytes / 4096 bytes
        I/O size (minimum/optimal): 4096 bytes / 4096 bytes
        Disk identifier: 0x00013ecd
    
           Device Boot      Start         End      Blocks   Id  System
        /dev/sda1            2048     3905535     1951744   fd  Linux raid autodetect
        /dev/sda2   *     3905536  1953523711   974809088   fd  Linux raid autodetect
    
        Disk /dev/md1: 998.1 GB, 998070091776 bytes
        2 heads, 4 sectors/track, 243669456 cylinders, total 1949355648 sectors
        Units = sectors of 1 * 512 = 512 bytes
        Sector size (logical/physical): 512 bytes / 4096 bytes
        I/O size (minimum/optimal): 4096 bytes / 4096 bytes
        Disk identifier: 0x00000000
    
        Disk /dev/md1 doesn't contain a valid partition table
    
        Disk /dev/md0: 1997 MB, 1997471744 bytes
        2 heads, 4 sectors/track, 487664 cylinders, total 3901312 sectors
        Units = sectors of 1 * 512 = 512 bytes
        Sector size (logical/physical): 512 bytes / 4096 bytes
        I/O size (minimum/optimal): 4096 bytes / 4096 bytes
        Disk identifier: 0x00000000
    
        Disk /dev/md0 doesn't contain a valid partition table
    and I am concerned about the invalid of the partition table, also.

    Thank you.

  2. #2
    Join Date
    May 2008
    Location
    Saint Louis
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to find mdadm file

    I just checked on my system and the file is very basic..

    Code:
    # mdadm boot_degraded configuration
    #
    # You can run 'dpkg-reconfigure mdadm' to modify the values in this file, if
    # you want. You can also change the values here and changes will be preserved.
    # Do note that only the values are preserved; the rest of the file is
    # rewritten.
    #
    # BOOT_DEGRADED:
    # Do you want to boot your system if a RAID providing your root filesystem
    # becomes degraded?
    #
    # Running a system with a degraded RAID could result in permanent data loss
    # if it suffers another hardware fault.
    #
    # However, you might answer "yes" if this system is a server, expected to
    # tolerate hardware faults and boot unattended.
    
    BOOT_DEGRADED=false
    and here are the permissions:

    Code:
    -rw-r--r-- 1 root root 654 Nov 11  2013 mdadm
    what is the output of
    Code:
    $sudo cat /proc/mdstat
    _whitty saying

  3. #3
    Join Date
    May 2014
    Beans
    9

    Re: Unable to find mdadm file

    the output is
    Code:
    no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
    md0 : active raid1 sda1[0] sdb1[1]
          1950656 blocks super 1.2 [2/2] [UU]
          
    md1 : active raid1 sda2[0] sdb2[1]
          974677824 blocks super 1.2 [2/2] [UU]
          [>....................]  resync =  4.3% (41948288/974677824) finish=114.0min speed=136311K/sec
          
    unused devices: <none>

  4. #4
    Join Date
    May 2008
    Location
    Saint Louis
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to find mdadm file

    your MD1 raid is rebuilding. I don't know anything about the memory leak..what's your actual question here??
    _whitty saying

  5. #5
    Join Date
    May 2014
    Beans
    9

    Re: Unable to find mdadm file

    Well in order to fix the memory leak I reconfigured the mdadm so that is why it is seen rebuilt.
    The main problem now is the invalid partition table of the md.Somewhere I read that the fdisk normaly cannot see the partition table of the md. May that be correct?
    Last edited by konnn2; May 16th, 2014 at 09:19 AM.

  6. #6
    Join Date
    May 2014
    Beans
    9

    Re: Unable to find mdadm file

    Well in order to fix the memory leak I reconfigured the mdadm so that is why it is seen rebuilt.
    The main problem now is the invalid partition table of the md.Somewhere I read that the fdisk normaly cannot see the partition table of the md. May that be correct?

  7. #7
    Join Date
    Apr 2012
    Beans
    7,122

    Re: Unable to find mdadm file

    Yes "doesn't contain a valid partition table" is most likely just fdisk not understanding the format - try parted instead

    Code:
    sudo parted -l

  8. #8
    Join Date
    May 2014
    Beans
    9

    Re: Unable to find mdadm file

    Thank you,I will check it.

  9. #9
    Join Date
    May 2014
    Beans
    9

    Re: Unable to find mdadm file

    So
    parted -l

    was ok but unfortunatelly or fortunatelly I switched to 12.04.4 server due to other issues , too.

    Thank you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •