Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: raid linear not starting

  1. #1
    Join Date
    Mar 2013
    Beans
    7

    raid linear not starting

    I did someting wrong but now I can not fix this anymore.

    I had 2 disc in linear both ~600 gb I wanted to add 1 more of 400 gb. I did mdadm --grow /dev/md0 -a /dev/sdd1
    I'm sure I did something wrong but this is the detail of md0:

    /dev/md0:
    Version : 1.2
    Creation Time : Thu Dec 27 14:43:10 2012
    Raid Level : linear
    Raid Devices : 3
    Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Sun Mar 24 14:06:08 2013
    State : active, FAILED, Not Started
    Active Devices : 2
    Working Devices : 2
    Failed Devices : 0
    Spare Devices : 0

    Rounding : 4K

    Name : Download:0 (local to host Download)
    UUID : 9f44e621:edea080f:b58525bd:f76ac114
    Events : 14

    Number Major Minor RaidDevice State
    0 8 17 0 active sync /dev/sdb1
    1 8 33 1 active sync /dev/sdc1
    2 0 0 2 removed


    Now I don't know what to do anymore, have been searching for some hours now but have not find anything that can help.

    So if anyone here had any idea what I can do that would be great.

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: raid linear not starting

    sdd1 doesn't seem to be ember of the array at all. I think you need to add it to the md device first, and then try the grow. But I'm not 100% of that especially when raid0 is used.

    Can you post the output of:
    Code:
    cat /proc/mdstat
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Mar 2013
    Beans
    7

    Re: raid linear not starting

    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0 : inactive sdb1[0] sdc1[1]
    1251997680 blocks super 1.2

    unused devices: <none>

  4. #4
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: raid linear not starting

    I assume if you run this it will not start the array:
    Code:
    sudo mdadm --assemble --scan
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  5. #5
    Join Date
    Mar 2013
    Beans
    7

    Re: raid linear not starting

    Nope

    Have rebooted and I get this:


    If I do yes I get the md0 but failed, if I say no it's give me no md0.


    Here I do S.

  6. #6
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: raid linear not starting

    There are no images. Try to attach them in the advanced menu when posting, not to paste them inside the message.

    Try something like this:
    Code:
    sudo mdadm --stop /dev/md0
    sudo mdadm --assemble --force /dev/md0 /dev/sdb1 /dev/sdc1
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  7. #7
    Join Date
    Mar 2013
    Beans
    7

    Re: raid linear not starting

    mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.

    btw did the images as attackment, copy paste did work here so I was like this is easy.

    Thanks for your time darkod
    Attached Images Attached Images

  8. #8
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: raid linear not starting

    It somehow considers them as Spare but that isn't shown and confirmed by the /proc/mdstat you posted. In /proc/mdstat spare members would have [S] next to them, and sdb1 and sdc1 do not have that. Post also the output of mdadm.conf so we can see what it expects:
    Code:
    cat /etc/mdadm/mdadm.conf
    I think you might have made a mistake with the grow command. You first need to --add the new partition to the device, and after that you do the --grow, not directly. And the command would be like:
    mdadm --grow /dev/md0 --raid-devices=3

    to tell it to grow to 3 devices. Since you added sdd1 before that, it will use it. You don't include the sdd1 device in --grow.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  9. #9
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: raid linear not starting

    Also post some details about the superblock information on the partitions:
    Code:
    sudo mdadm --examine /dev/sd[bcd]1
    That will examine the superblock on all three sdb1, sdc1 and sdd1 and post the results.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  10. #10
    Join Date
    Mar 2013
    Beans
    7

    Re: raid linear not starting

    Thats what I did yep, here are the files. No superblock on the sdd1 disk I see

    Code:
    # 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 file was auto-generated on Thu, 27 Dec 2012 14:36:32 +0100
    # by mkconf $Id$
    DEVICE /dev/sdb1 /dev/sdc1
    ARRAY /dev/md0 level=linear devices=/dev/sdb1,/dev/sdc1
    Code:
    /dev/sdb1:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : 9f44e621:edea080f:b58525bd:f76ac114
               Name : Download:0  (local to host Download)
      Creation Time : Thu Dec 27 14:43:10 2012
         Raid Level : linear
       Raid Devices : 3
    
     Avail Dev Size : 1251997680 (597.00 GiB 641.02 GB)
      Used Dev Size : 0
        Data Offset : 16 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 535e06ce:1801da91:4fb4b2ca:59524502
    
        Update Time : Sun Mar 24 14:06:08 2013
           Checksum : 983f274b - correct
             Events : 14
    
           Rounding : 4K
    
       Device Role : Active device 0
       Array State : AAA ('A' == active, '.' == missing)
    /dev/sdc1:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : 9f44e621:edea080f:b58525bd:f76ac114
               Name : Download:0  (local to host Download)
      Creation Time : Thu Dec 27 14:43:10 2012
         Raid Level : linear
       Raid Devices : 3
    
     Avail Dev Size : 1251997680 (597.00 GiB 641.02 GB)
      Used Dev Size : 0
        Data Offset : 16 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 787251d5:b66767e7:ba273b35:f348c07b
    
        Update Time : Sun Mar 24 14:06:08 2013
           Checksum : d91b0c14 - correct
             Events : 14
    
           Rounding : 4K
    
       Device Role : Active device 1
       Array State : AAA ('A' == active, '.' == missing)
    mdadm: No md superblock detected on /dev/sdd1.

Page 1 of 2 12 LastLast

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
  •