Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 06-01-2005, 11:39 PM   #1
LQ Newbie
Registered: Jun 2005
Location: San Francisco
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0
Unhappy mdadm problems with growing an existing array

Hi, I'm wondering if anyone can help me with a RAID issue. Recently I added another drive to my RAID, replacing one that had failed. This replacement drive was a bigger drive than the previous, in fact the previous drive was the last of the smaller drives that I had to replace. Having now an array of 40G drives instead of 30G, I thought I could grow my RAID using the

mdadm --grow -s <size> /dev/md0

command to utilize the extra space. Well, now this worked, but the filesystem underneath all this is now messed up. Most directories I try to access yield an I/O error with an

inode_doinit_with_dentry: getxattr returned 5 for dev=md0 ino=5723207

error. Did I screw up royally here? What can I do to get to my data. I'm afraid to fsck it now, because that asks me to do all kinds of inode twiddling.

What should I do?

Old 07-11-2005, 08:11 PM   #2
LQ Newbie
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
When I 've replaced a smaller drive with a bigger one and wanted
to 'clone' the working drive in the array I run this

sfdisk -d /dev/hda | sfdisk /dev/hdb

where a= exiting/working drive in array and b = new drive you want to sync.

By doing this you don't use the new drives total capacity but it
saves time.
Old 07-11-2005, 09:28 PM   #3
LQ Newbie
Registered: Jun 2005
Location: San Francisco
Distribution: Fedora Core 3
Posts: 2

Original Poster
Rep: Reputation: 0
growing an array with mdadm

Yes, but that is not what I need. First of all, the drive I'm replacing has failed, and therefore cannot be accessed. Second, I know how to replace and recover a drive in a RAID, what I actually want to do is to grow the array once all the replacement drives have become bigger. This can be done using the 'mdadm' command - I actually don't know the complete syntax and I'm not near a linux box at this time, but the man page for mdadm documents it well. The man page also says that growing the array does NOT necessarily grow the filesystem built on top of the array.


What I want to know is how to grow the filesystem without majorly mucking everything up. It's too late for me now, because I already majorly mucked up the RAID and lost most of my data, but for the future I want to know how to do this properly. The only thing I can really think of is to insert the new drive into the array and let it recover fully. Then, copy the whole filesystem onto another drive or onto some backup somewhere. Then, rebuild the filesystem on the RAID to the bigger size. However depending on the size of the RAID, this might not be feasible given one's backup resources.

Any information on this topic, is of course, very welcome...


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
using mdadm to grow an existing RAID 1 array kevburger Linux - Hardware 1 08-18-2005 09:17 AM
Dual-booting on an existing WinXP Raid 1 array?? bobbryce Fedora - Installation 1 06-28-2005 02:51 PM
problems with one HP array controler eantoranz Linux - Hardware 1 05-02-2005 12:00 PM
Software RAID with mdadm problems... robbow52 Debian 2 04-19-2004 08:06 PM
RH7.3 install on existing RAID0 array Gandalf29 Linux - Newbie 1 11-27-2002 06:17 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:05 AM.

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