LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Hot Spare in Raid (https://www.linuxquestions.org/questions/linux-server-73/hot-spare-in-raid-769716/)

eldo 11-17-2009 11:21 AM

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.

MensaWater 11-17-2009 11:32 AM

Yes assuming you're talking about software RAID.

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

eldo 11-17-2009 12:04 PM

Quote:

Originally Posted by jlightner (Post 3760205)
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.

seaking1 11-21-2009 12:09 PM

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


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