LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 11-17-2009, 11:21 AM   #1
eldo
LQ Newbie
 
Registered: May 2008
Posts: 23

Rep: Reputation: 15
Hot Spare in Raid


Hi,

Is it possible to create a Hot spare in raid levels. I need to create a hot spare for a meta device, if any disks in that fails, automatically hot spare disk come into position of failed disk.

Last edited by eldo; 11-17-2009 at 11:22 AM. Reason: raid, linux,
 
Old 11-17-2009, 11:32 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,772
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Yes assuming you're talking about software RAID.

Type "man mdadm" and have a look at the "-x" option.
 
Old 11-17-2009, 12:04 PM   #3
eldo
LQ Newbie
 
Registered: May 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlightner View Post
Yes assuming you're talking about software RAID.

Type "man mdadm" and have a look at the "-x" option.
Hi,

I stop a meta device using mdadm -S /dev/md1

after that I tried to start again using

mdadm -As /dev/md1

mdadm: /dev/md1 not identified in config file.

so what is the config file, and how we can make entries in that file.
 
Old 11-21-2009, 12:09 PM   #4
seaking1
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Rep: Reputation: 16
can be:
/etc/mdadm/mdadm.conf
/etc/mdadm.conf

You list devices used, raid level, stuff you would tell it when starting an array with mdadm.
mine:
DEVICES /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1
ARRAY /dev/md0 devices=/dev/sd[bcdef]1 level=raid5 num-devices=5 metadata=0.90 UUID=665cd099:7ae19af3:87cb1de4:fe062f1b

Simple raid5 config file.

Hot spares are allowed.

If I remember, you can add a spare drive by adding a drive to an array but only telling it to use less than it has (/dev/sda /dev/sdb /dev/sdb 2 drives)

man mdadm
man mdadm.conf
google mdadm spares
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop with SCSI RAID Hot-Swap HD for home lp449 Linux - Hardware 10 11-15-2007 10:44 AM
Hot swap raid collen Linux - Hardware 1 10-16-2007 04:41 AM
Raid 1 Controller as well as hot swapping rickymaloy Red Hat 2 06-23-2007 02:23 AM
How do I add a spare to existing software RAID 5 ? philforrest Linux - Software 1 12-28-2003 09:33 PM
RAID 1 and Hot-Swapable drives tarballed Linux - General 10 02-12-2003 10:37 AM


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