Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I've a server with 2 IDE disk (80GB), with 3 partitions:
/boot (md0)
/ (md1)
swap (md2)
The second ide disk, hdb, have some hardware problem, so I'm going to replace it.
Meanwhile, I want to set hdb "fault" and remove it from raid.
Quote:
# mdadm /dev/md1 -f /dev/hdb2
mdadm: set /dev/hdb2 faulty in /dev/md1
Quote:
# mdadm /dev/md1 -r /dev/hdb2
mdadm: hot remove failed for /dev/hdb2: Device or resource busy
I think this is normal because / partition is mounted.. so how can I remove the device from raid? It's necessary to reboot system? In that case, I must edit /etc/mdadm/mdadm.conf before?
Another question:
Quote:
# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90.01
Creation Time : Thu Feb 17 18:29:44 2005
Raid Level : raid1
Array Size : 79101696 (75.44 GiB 81.00 GB)
Device Size : 79101696 (75.44 GiB 81.00 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Tue Sep 15 10:33:58 2009
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
With most hardware IDE RAID controllers, for a RAID 1 failure, you shutdown the machine, swap the drive, and restart. When the controller sees the new drive, it will begin to rebuild the array.
Note this is for IDE, which normally doesn't support hot swap. If it were SAS, SATA, or some SCSI backplanes, you could hotswap and leave the machine running.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.