Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-02-2011, 05:38 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 15

Rep: Reputation: 0
Question Growing (really grow) a raid1 (mdadm --grow)


I need to increase a RAID1. I followed a post in another forum which told the following actions:
  1. do a backup
  2. remove on of the raid devices from the raid (mdadm -f ...; mdadm -r ...)
  3. increase the partition with the removed raid device
  4. add it again to the raid
  5. wait till syncing is finished
  6. repeat steps 2-5 for the other device
  7. remove the write-intent bitmap (mdadm -G /dev/mdX --bitmap=none)
  8. mdadm -G /dev/mdX --size=max
  9. mdadm --wait /dev/mdX
  10. mdadm -G /dev/mdX --bitmap=internal
Everything works until step 8. If I do a mdadm --detail /dev/mdX after it, the raid1 still has the same size as before.
What is wrong in that?
I even did that under a rescue system, because the raid1 is where my real /usr is. From reading about growing a raid 1 I got the impression, that it should be doable even in a running system.

Thank you for your answers.

Best regards and a happy new year

Old 01-20-2011, 05:39 PM   #2
LQ Newbie
Registered: Dec 2005
Posts: 20

Rep: Reputation: 6
I did similar steps (without disk repartitioning --- raid was using only part of the disk initially)
and it worked. Might be because raid/md module doesn't know the partition size changed.

* What's the error after step 8?
* Have you tried --size=NUMBER?
* Could you restart the raid before step 8?


mdadm, partition, raid1

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
RAID 5 mdadm --grow interrupted - what to do next? damiendusha Linux - Server 9 03-18-2010 09:02 PM
Software RAID1 + Grow Partitions morphix Linux - Server 8 12-10-2009 10:24 PM
mdadm --grow, can it be stopped to move server? madman_lxl Linux - Server 0 01-13-2009 11:21 PM
LXer: Linux desktops grow and grow and grow LXer Syndicated Linux News 0 11-23-2007 01:00 PM
using mdadm to grow an existing RAID 1 array kevburger Linux - Hardware 1 08-18-2005 08:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 PM.

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