LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-17-2009, 11:44 PM   #1
eldo
LQ Newbie
 
Registered: May 2008
Posts: 23

Rep: Reputation: 15
Increase no of RAID device


Hi,

I have created a RAID meta device, with two raid devices. I need to increase the no of devices, then only I can add new hard drive.

Last edited by eldo; 11-17-2009 at 11:45 PM. Reason: linux, raid, storage
 
Old 11-18-2009, 10:54 AM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Depends on what kind of RAID, hardware, software, fakeraid. For mdadm (software RAID), the answer is :

Quoted from the man for mdadm (http://linux.die.net/man/8/mdadm) use the -G option to grow the array

Quote:
n, --raid-devices=

Specify the number of active devices in the array. This, plus the number of spare devices (see below) must equal the number of component-devices (including "missing" devices) that are listed on the command line for --create. Setting a value of 1 is probably a mistake and so requires that --force be specified first. A value of 1 will then be allowed for linear, multipath, raid0 and raid1. It is never allowed for raid4 or raid5.
This number can only be changed using --grow for RAID1 arrays, and only on kernels which provide necessary support.
Usually you have to remake the array entirely, destroying the previous one.

Last edited by mostlyharmless; 11-18-2009 at 12:16 PM.
 
Old 11-18-2009, 10:57 AM   #3
eldo
LQ Newbie
 
Registered: May 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mostlyharmless View Post
Depends on what kind of RAID, hardware, software, fakeraid. For mdadm (software RAID), the answer is :

Quoted from the man for mdadm (http://linux.die.net/man/8/mdadm)use the -G option to grow the array



Usually you have to remake the array entirely, destroying the previous one.
if I need to add a new raid device as a hot spare or how can i add a hot spare to a existing meta device
 
0 members found this post helpful.
Old 11-18-2009, 12:19 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Again, you need to have specified the number of total spares in your initial --create if you used mdadm. If you have specified a spare or failed drive and you need to add a new spare back then use something like

mdadm /dev/md0 --add /dev/sda1 --fail /dev/sdb1 --remove /dev/sdb1

for example to fail sdb1, remove it and add sda1. Spares automatically get used as needed if active drives fail.

BTW, don't make duplicate threads: http://www.linuxquestions.org/questi...device-769985/

Last edited by mostlyharmless; 11-18-2009 at 12:20 PM.
 
  


Reply



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
Reassembling a raid device geek.ksa Linux - Newbie 2 11-01-2009 03:21 AM
How to increase tmp partition - mount loop device grim2 Linux - Server 2 03-10-2008 08:27 AM
How do I increase my Raid Hard Disk gibs Red Hat 0 09-16-2003 06:15 PM
New RAID device wytyspy Linux - Software 1 08-28-2003 12:54 PM
raid device - please help jmarsh Linux - Networking 0 04-09-2003 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration