Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have set up a RHEL5 server with combination of internal and SAN attached disk. The problem is not with the initial configuration, that all works, but with the re-creating of the multipath device when the fibre channel fails.
Initially used mdadm -C /dev/md1 --level=multipath --raid-devices=2 --auto=md --spares=0 to create device.
To test the fail-over capability I simply removed one of the FC cables from the server. fail-over worked as I had expected.
When I reconnected the FC I had to remove and re-add the device to the md: mdadm --manage /dev/md1 --fail /dev/sdb2 --remove /dev/sdb2 mdadm --manage /dev/md1 --re-add /dev/sdb2
I know the "--fail" was unnecessary as it had already failed, but for completeness it certainly didn't hurt.
When I re-add the disk to the md it only adds it as a hot-spare: mdadm --detail /dev/md1
Version : 00.90.03
Creation Time : Fri Dec 21 21:52:21 2007
Raid Level : multipath
Array Size : 97667072 (93.14 GiB 100.01 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Thu Jan 3 16:30:14 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
I know this is a bit older, but I figured I would give it a bump. I apologize for resurrecting this.
I have the exact same problem. I've been messing with it now for a couple days... so any help would be greatly appreciated. Again, a reboot would resolve the issue, but this is a fairly active system and reboots have to be scheduled and must receive management approval.