LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-01-2005, 10:39 PM   #1
mjcramer
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?

-cramer
 
Old 07-11-2005, 07:11 PM   #2
Petevs
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.
Pete
 
Old 07-11-2005, 08:28 PM   #3
mjcramer
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.

SOOOOOOOO...

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...
 
  


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


All times are GMT -5. The time now is 06:16 AM.

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