LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-07-2010, 09:36 PM   #1
tkrin
Member
 
Registered: Nov 2003
Distribution: Slackware / CentOS / Mint / Ubuntu
Posts: 42

Rep: Reputation: 15
SW RAID - Raid devices larger than Total Devices


Hi there.

I'm working on a server and noticed that the to RAID5 setup is showing 4 Raid devices but only 3 Total devices. It's on a fully updated CentOS 5 system that only has three SATA drives, as it can not hold anymore. I've done some researching but am unable to remove the fourth device, which is listed as removed. The full output of `mdadm -D /dev/md2` can be see below. I've never run into this situation before.

Anyone have any pointers on how I can reduced the Raid Devices from 4 to 3? I have tried

mdadm /dev/md2 -r failed
mdadm /dev/md2 -r detached

but neither work and since there is no block device listed I'm not quite sure how to get things back in sync so it's only seeing the three drives. Any tips or help is greatly appreciated.

Thanks all.

~Dan

/dev/md2:
Version : 0.90
Creation Time : Tue May 25 11:07:04 2010
Raid Level : raid5
Array Size : 2800803840 (2671.05 GiB 2868.02 GB)
Used Dev Size : 933601280 (890.35 GiB 956.01 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Tue Dec 7 08:28:38 2010
State : clean, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 256K

UUID : e65047be:98023718:ba85fc6d:d9fd475c
Events : 0.1165610

Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 8 21 1 active sync /dev/sdb5
2 8 37 2 active sync /dev/sdc5
3 0 0 3 removed
 
Old 12-08-2010, 02:06 PM   #2
axelsallright
LQ Newbie
 
Registered: Dec 2010
Location: Austin, TX
Distribution: Fedora
Posts: 11

Rep: Reputation: 2
Quote:
Originally Posted by tkrin View Post
Hi there.
The full output of `mdadm -D /dev/md2` can be see below. I've never run into this situation before.

Anyone have any pointers on how I can reduced the Raid Devices from 4 to 3? I have tried

mdadm /dev/md2 -r failed
mdadm /dev/md2 -r detached
Hi Dan,

You might want to try:

mdadm /dev/md2 --fail detached --remove detached

As per the man page in mdadm: Any devices which are components of /dev/md2 will be marked as faulty and then remove from the array.

It seems that at some point there was a 4th device added to this array, I've never reduced an array, as per mdadm man page you can do it using --grow and --array-size:

When decreasing the number of devices, the size of the array will also decrease. If there was data in the array, it could get destroyed and this is not reversible. To help prevent accidents, mdadm requires that the size of the array be decreased first with mdadm --grow --array-size. This is a reversible change which simply makes the end of the array inaccessible. The integrity of any data can then be checked before the non-reversible reduction in the number of devices is request.


Can you check your /etc/mdadm.conf file to see if it shows the extra device in the configuration.
Before looking into those options I would have a full backup just in case.
 
Old 12-10-2010, 11:01 AM   #3
tkrin
Member
 
Registered: Nov 2003
Distribution: Slackware / CentOS / Mint / Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 15
Well, turns out the motherboard failed. Performed a reboot at one point and it failed to POST. Thanks for your input, axelsallright.
 
  


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
raid devices problem bharatlalgupta Linux - General 1 03-17-2009 04:10 AM
RAID Repair after renamed devices Lord_Devi Linux - Server 3 05-31-2008 04:32 AM
RAID Devices on Linux depam Linux - Hardware 4 07-10-2006 03:36 PM
changing devices in RAID 5 malo_umoran Slackware 3 03-31-2005 01:56 AM
RAID Devices on vmware m/c deepika Linux - Newbie 0 07-19-2003 06:03 PM


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