LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2014, 06:35 PM   #1
NickCharsley
LQ Newbie
 
Registered: Apr 2014
Location: Harrold, BEDS, UK
Posts: 1

Rep: Reputation: Disabled
mdadm partiton not large enough to join array


I've used Linux on and off for the last many years, mainly as dual boot or as Virtual Machines, but when I decided to build a Dev Laptop I though I'd bite the bullet and put Linux on as the base OS.

In the past I've had issues so thought I'd use RAID to give some resilience, after a bit of head scratching I found the following article Multi HDD/SSD Partition Scheme.

In summary it advises building 'nested' arrays so you end up with something like the following

Code:
md6 - /dev/sda1
    - /dev/md60

md60 -/dev/sdb1
     -/dev/sdc1
I tried that using an Ubuntu LiveCD, and managed to build the arrays fine, however installing to them was a nightmare, and I never managed to get it working (failed during install). I then moved on to try Debian, and although it installed I couldn't get the drivers for my graphics card to work.

So onto the third distro (suse) and although it got father but appeared to fail when it tried to assemble the RAID. So I though I'd simplify it by only creating the top level RAID (md6) with the one partition and with one device (so it didn't think it was degraded).

So I now have a fully working Suse install!!!

However I don't have a RAID. so I tried to assemble the raid,
Code:
mdadm /dev/md6 --add --write-mostly /dev/md60
or (as some one said it worked this way...
Code:
mdadm --add /dev/md6 --write-mostly /dev/md60
also tried with and without --write-mostly but always got
Code:
mdadm: /dev/md60 not large enough to join array
so a quick look at mdadm --detail gave the following...
Code:
/dev/md6:
        Version : 1.2
  Creation Time : Sun Apr 27 14:42:13 2014
     Raid Level : raid1
     Array Size : 204341248 (194.88 GiB 209.25 GB)
  Used Dev Size : 204341248 (194.88 GiB 209.25 GB)
   Raid Devices : 1
  Total Devices : 1
    Persistence : Superblock is persistent

    Update Time : Fri May  9 20:38:51 2014
          State : clean 
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           Name : linux:6
           UUID : b24522f2:8622c47b:be61720b:e69b9dfd
         Events : 23

    Number   Major   Minor   RaidDevice State
       0       8       35        0      active sync   /dev/sdc3
and
Code:
/dev/md60:
        Version : 1.2
  Creation Time : Fri May  9 20:21:00 2014
     Raid Level : raid1
     Array Size : 204343296 (194.88 GiB 209.25 GB)
  Used Dev Size : 204343296 (194.88 GiB 209.25 GB)
   Raid Devices : 1
  Total Devices : 1
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Fri May  9 20:35:21 2014
          State : active 
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           Name : hotBlack.ons:60  (local to host hotBlack.ons)
           UUID : 39249c62:f41412c9:b1149c7d:fe4222a0
         Events : 2

    Number   Major   Minor   RaidDevice State
       0       8        7        0      active sync   /dev/sda7
so that looks like

Code:
md6  Array Size : 204341248 (194.88 GiB 209.25 GB)
md60 Array Size : 204343296 (194.88 GiB 209.25 GB)
so that looks like md60 is 2MB bigger than md6 (which is how I set it up), so how can it be too small?

What am I missing here?

Any advice gratefully received?

Nick(c)

Last edited by NickCharsley; 05-09-2014 at 06:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot add replacement drive (mdadm) not large enough to join array PeteLindsey Linux - Newbie 25 08-13-2013 05:58 PM
[SOLVED] I can't fix my MDADM array jbruyet Linux - Software 2 01-10-2013 06:18 PM
[SOLVED] mdadm: only give one device per ARRAY line: /dev/md/:raid and array laughing_man77 Linux - Hardware 4 03-23-2012 05:05 PM
ca't assembl mdadm array seaking1 Linux - Software 0 02-15-2009 05:21 AM
mdadm (get my array working again) dadriver Linux - Software 1 01-20-2006 07:56 PM


All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration