Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: raid linear not starting

  1. #11
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,558
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: raid linear not starting

    OK, there is contradiction. In mdadm.conf you have the default line
    DEVICE partitions containers

    commented out (it has # at front which makes it disabled). Later in the config you have statement to accept as devices sdb1 and sdc1 only. So it will ignore all others. I would comment out this line specifying sdb1 and sdc1 (put an # at front) and uncomment the generic DEVICE line (remove the #).
    That will make it use all partitions that have mdadm superblock, not only sdb1 and sdc1. That is what you want to do, expand the array.

    On the other hand, contradicting the mdadm DEVICE line that specifies sdb1 and sdc1 only, the --examine details show for both partition that they belong to a device with 3 members (Raid Devices : 3 line). Also, the examine didn't detect any superblock on sdd1. Maybe it wasn't created because the mdadm.conf doesn't accept any partitions except sdb1 and sdc1. Maybe because of another reason.

    Here is what I would do:
    1. Edit mdadm.conf to comment out one DEVICE line and uncomment the other, as explained above. Try the automatic assemble again:
    Code:
    sudo mdadm --assemble --scan
    2. The assemble will probably not work. Since the examine shows the superblock on sdb1 and sdc1 already shows 3 raid devices, try assembling it by hand with:
    Code:
    sudo mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1
    Make sure you use the exact order of the partitions, that is very important with mdadm.

    3. If that doesn't work (it might not since sdd1 doesn't have a superblock), try forcing it:
    Code:
    sudo mdadm --assemble --force /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1
    See how that goes.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  2. #12
    Join Date
    Mar 2013
    Beans
    7

    Re: raid linear not starting

    this is what i get back:
    Code:
    sudo mdadm --assemble --force /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1
    mdadm: cannot open device /dev/sdd1: No such file or directory
    mdadm: /dev/sdd1 has no superblock - assembly aborted
    Going to stop now, tomorrow new day

    Thanks for the help so far!!

  3. #13
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,558
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: raid linear not starting

    OK. For tomorrow, is /dev/sdd still present in the machine or you removed it? Does the partition sdd1 still exist or you deleted it?

    Apart from saying there is no superblock on sdd1 it also says there is no sdd1 first. Like the partition doesn't exist any more.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  4. #14
    Join Date
    Mar 2013
    Beans
    7

    Re: raid linear not starting

    I did install Webmin, here I did try some stuff.
    What I did now was:
    Code:
    sudo mdadm --stop /dev/md0
    then I did with webmin Create RAID device of level Linear
    Partitions in RAID here I did select sdb1 and sdc1 then save and somehow this this work!!!

    Code:
    /dev/md0:
            Version : 1.2
      Creation Time : Mon Mar 25 20:09:31 2013
         Raid Level : linear
         Array Size : 1251997680 (1194.00 GiB 1282.05 GB)
       Raid Devices : 2
      Total Devices : 2
        Persistence : Superblock is persistent
    
        Update Time : Mon Mar 25 20:12:19 2013
              State : clean
     Active Devices : 2
    Working Devices : 2
     Failed Devices : 0
      Spare Devices : 0
    
           Rounding : 4K
    
               Name : Download:0  (local to host Download)
               UUID : 617b453b:7a59e8e4:8b009405:c9d8eead
             Events : 2
    
        Number   Major   Minor   RaidDevice State
           0       8       17        0      active sync   /dev/sdb1
           1       8       33        1      active sync   /dev/sdc1
    Have no idea what code webmin did send but I'm already happy this did work, dunno if I'll try to add the extra disc maybe I'll test some before I do this again.

    Thank you so much for your time darkod
    Last edited by Henck; March 25th, 2013 at 08:37 PM. Reason: add mdadm --detail /dev/md0

  5. #15
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,558
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: raid linear not starting

    Webmin does the same, you could have done this in the command line too. The bad side of Webmin is that it might look like a good solution, gives you GUI control etc, but in some cases it edits the config files in a specific way which is not the same as what programs would expect. That's why it's not in the repository, and not recommended very often.

    Whether you add the third disk is up to you, but remember you don't add sdd1 in the --grow command. You first add it so that it will become like spare member, and then you grow the array from 2 raid devices to 3. So, it should be something like:
    Code:
    sudo mdadm --add /dev/md0 /dev/sdd1
    cat /proc/mdstat (check if sdd1 is there marked as spare with (S) )
    sudo mdadm --grow /dev/md0 --raid-devices=3
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

Page 2 of 2 FirstFirst 12

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
  •