Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Closed TopicStart new topic
> Drive Mounts Changing After Reboot, SCSI drives cross-mounted
Merit22Help
post Sep 6 2005, 05:31 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 6-September 05
Member No.: 5,491



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
Go to the top of the page
 
+Quote Post
michaelk
post Sep 7 2005, 05:35 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



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.
Go to the top of the page
 
+Quote Post
Merit22Help
post Sep 7 2005, 01:13 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 6-September 05
Member No.: 5,491



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!
Go to the top of the page
 
+Quote Post
DS2K3
post Sep 7 2005, 06:38 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



* Resolved so closing *

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th December 2017 - 01:04 PM