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.
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.
Yesterday I created a raid5 array /dev/md0 consisting of 5 harddisks, named sda thru sde on the time of creation.
After that I stored some data into the arry without any difficulties, then shutdown the computer.
Early this morning when starting the computer I got a message that /dev/md0 was not ready to be mounted.
So I checked the raid array and discovered that the enumerator had been messing with the harddisks.
Harddisk sda was now sdc etc. etc.
After I rebooted, the harddisks got the original names again: sda was sda again.
When I mounted the array no problems occurred.
So, it seems that the order in which the harddisks are enumerated influences the availability of the raid array.
Is there a way to avoid this kind of problems with a raid array?
I'm curious about this, how would you assign a UUID to a raw disk such as sda? Although mdadm will handle raw disks, the issue of device names changing seems to require that you create 'fd' partitions on those disks just to get a UUID to work with. Another alternative I understand is to create custom udev rules to assign permanent names to the devices.
Is there a better way?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.