LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 03-06-2011, 02:52 PM   #1
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
Problems with extending a raid5 array


Today I wanted to extend my raid array with one disk, but I made a major error. I forgot partition the new disk to utilize the full 640GB.
I used the following commands to extend the array:

Code:
mdadm --add /dev/md0 /dev/sdf
mdadm --grow --raid-devices=6 /dev/md0
xfs_growfs /dev/md0
After noticing that something was wrong I used these commands to remove the new disk:

Code:
mdadm -f /dev/md0 /dev/sdf
mdadm -r /dev/md0 /dev/sdf
The array has not been damaged, but I have the following situation:

Code:
#mdadm -E /dev/sda1
/dev/sda1:
          Magic : a92b4efc
        Version : 00.91.00
           UUID : 8be5b829:959ee00d:01f9e43d:ac30fbff (local to host server)
  Creation Time : Fri Sep  4 12:05:37 2009
     Raid Level : raid5
  Used Dev Size : 625129216 (596.17 GiB 640.13 GB)
     Array Size : 3125646080 (2980.85 GiB 3200.66 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0

  Reshape pos'n : 201877120 (192.53 GiB 206.72 GB)
  Delta Devices : 1 (5->6)

    Update Time : Sun Mar  6 20:53:21 2011
          State : active
 Active Devices : 5
Working Devices : 5
 Failed Devices : 1
  Spare Devices : 0
       Checksum : 4e456079 - correct
         Events : 18015

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     0       8        1        0      active sync   /dev/sda1

   0     0       8        1        0      active sync   /dev/sda1
   1     1       8       17        1      active sync   /dev/sdb1
   2     2       8       33        2      active sync   /dev/sdc1
   3     3       8       49        3      active sync   /dev/sdd1
   4     4       8       65        4      active sync   /dev/sde1
   5     5       0        0        5      faulty removed
#
How can I repair this situation? Before starting this adventure I made a back-up of everything that was stored in the raid array.
 
  


Reply

Tags
raid5


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
Fixing degraded RAID5 array ivanmacx Linux - Server 4 11-07-2009 03:59 AM
Grow RAID5 array dezza Linux - Server 2 07-09-2009 10:50 AM
Extending a logical volume in a reconfigured RAID 5 array set cswebb Linux - Hardware 3 12-19-2008 02:16 AM
can /boot be on a software RAID5 array? garydale Linux - Software 12 06-14-2008 08:54 AM
Secure Deletion with RAID5 array neilschelly Linux - Security 2 12-05-2004 06:25 PM


All times are GMT -5. The time now is 04:41 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