LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-12-2009, 05:20 PM   #1
horde
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Rep: Reputation: 0
Unable to grow a raid 5 array


I have gotten past the problem of adding an extra drive to my system but now it seems I cant grow the raid to utilise all of the space available to me.

# mdadm --detail /dev/md1
/dev/md1:
Version : 0.91
Creation Time : Sat Nov 22 13:42:02 2008
Raid Level : raid5
Array Size : 2930279808 (2794.53 GiB 3000.61 GB)
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Raid Devices : 5
Total Devices : 5
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Sun Sep 13 08:15:57 2009
State : clean
Active Devices : 5
Working Devices : 5
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 128K

Delta Devices : 1, (4->5)

UUID : 0f2561a9:81e8cd4a:10e4ddb4:49a3b4a7
Events : 0.359652

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 49 1 active sync /dev/sdd1
2 8 65 2 active sync /dev/sde1
3 8 81 3 active sync /dev/sdf1
4 8 33 4 active sync /dev/sdc1

As far as I can tell it had finished resyncing and all is ready for the next stage.

# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 20641788 4368880 15224268 23% /
udev 897268 244 897024 1% /dev
/dev/sda3 284948380 20526788 249947028 8% /home
/dev/md1 2884298328 2714620256 23164084 100% /mediaData

# mdadm --grow --size max /dev/md1
mdadm: Cannot set device size/shape for /dev/md1: Device or resource busy

I read a number of posts that said bitmaps can cause this issue and to remove them but when I try I get:

# mdadm --grow -b none /dev/md1
mdadm: no bitmap found on /dev/md1

Where do I go now?
 
Old 09-14-2009, 07:40 AM   #2
horde
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Solution

OK eventually tried the following with success. Just posting here in case someone else has the same problem.

Given that all of the references said it was bitmap related and that removing a bitmap would solve the problem I decided I'd try to fix it by adding a bitmap which I would then remove - this did the trick ....

So :

mdadm --grow -b internal /dev/md1
mdadm --grow -b none /dev/md1
mdadm --grow --size max /dev/md1

and then I just needed to

e2fsck -f /dev/md1 -C 0
resize2fs /dev/md1

Hope this helps someone else
 
  


Reply

Tags
mdadm, raid


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
Grow RAID5 array dezza Linux - Server 2 07-09-2009 10:50 AM
Unable to access RAID array from CentOS5 marcdbl Linux - Server 2 04-07-2009 02:30 AM
I have created RAID one through DiskDruid unable to hotadd and re-build array itplanett Linux - Newbie 3 01-06-2009 09:43 AM
Unable to Mount NTFS RAID O Array lpboarder23 Suse/Novell 1 03-14-2006 04:29 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 12:54 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