LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hi,

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

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

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?
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 08:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration