Help - Search - Members - Calendar
Full Version: Drive Mounts Changing After Reboot
Linuxhelp > Support > Technical Support
Merit22Help
We have a server with 5 SCSI drives attached. Properly booted the drives are mapped/mounted as:

/dev/sda1 /mount1 ext3 defaults 0 0
/dev/sdb1 /mount2 ext3 defaults 0 0
/dev/sdc1 /mount3 ext3 defaults 0 0
/dev/sdd1 /mount4 ext3 defaults 0 0
/dev/sde1 /mount5 ext3 defaults 0 0

Problem is that the system was rebooted (power failure) and one of the 5 drives failed. So the mounts got messed up bad, all out of sequence. Since the one drive did not spin up, the mount points corresponding to the SCSI drive number got completely hosed. What should have been mounted as "/mount1" was suddenly mounted on drive B, "/mount2" on drive C, and so on. They were out of sequence, causing untold numbers of problems.

How can you map mount points to a drive in a fashion different or more reliable than just naming them in sequence like we did? Is there some sort of other identifier or something which can be used to avoid this problem in the future?

Any help would be appreciated. We lost big bucks on this one...

Steve
michaelk
You do not mention what linux distribution / version you are running but a simple solution would be to use partition labels. You can assign a parition label using the tune2fs or label2fs utilities. Then change the fstab entry. Example:

label=/mount1 /mount1 ext3 defaults 1 2

SCSI devices are automatically assigned a device ID during the boot process. The first drive found on the first SCSI controller will be assigned sda, the next sdb and so on. When using labels the actual physical device doesn't matter.
Merit22Help
Heck of a thing Mike, thanks for the tip. Dumb as it sounds we simply had never found this happening before or would have paid more attention to the way we mounted drives.

It was a RH9 system, BTW.

Thank you!
DS2K3
* Resolved so closing *

D
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.