Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi friends,
I have created RAID 1 containing 3 partitions in the same hard disk.
Code:
#mdadm --create /dev/md0 --level=1 --raid-devices=3 /dev/hda{11,12,13}
#mdadm --detail /dev/md0
Number Major Minor RaidDevice State
0 3 11 0 active sync /dev/hda11
1 3 12 1 active sync /dev/hda12
2 0 0 2 active sync /dev/hda13
Now, I am setting the /dev/hda13 as faulty..
Code:
#mdadm --set-faulty /dev/md0 /dev/hda13
#mdadm --detail /dev/md0
Number Major Minor RaidDevice State
0 3 11 0 active sync /dev/hda11
1 3 12 1 active sync /dev/hda12
2 0 0 2 removed
3 3 13 - faulty spare /dev/hda13
Now, i rebooted the system and when I type
#mdadm --detail /dev/md0, it shows the following:
Code:
Number Major Minor RaidDevice State
0 3 11 0 active sync /dev/hda11
1 3 12 1 active sync /dev/hda12
2 0 0 2 removed
The /dev/hda13 partition is automatically removed..
Why is this so..?
Even if I add a new hot spare and reboot the system, only /dev/hda11 and /dev/hda12 could be seen.. the new hot spare is not permamently sitting there in the raid array...
please help..!
hi vishesh,
I tried with the -x option, it accepts the command and works, but..once I fail one of raid array disks, this spare becomes active and the failed one becomes a faulty spare, ...then once i reboot the machine and issue the mdadm --detail /dev/md0 both the faulty spare and the new active device(which we configured as a spare before)are removed.
the same thing happens for raid5.
can u help with this....?
thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.