Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm posting here after weeks of trouble with this server, so I hope that someone here can help me shine some light on the problem.
A brief Synopsis:
The machine in question is used as a backup server using Bakbone Netvault and physical and virtual tape libraries. The problem I am having is that any time I reboot this particular machine, the SCSI devices are found in different orders. This causes the server either not to boot because it can't find root, or makes me reconfigure the software on the machine that mounts the tape drive if that moves to a different letter. For example, the disk found on /dev/sda1 which should be root may become /dev/sdb1 on the next reboot, and the tape library might take /dev/sda.
A little background:
The server in question is running Debian Lenny 2.6.26-2-686. It is a Dell Poweredge 1850 with the internal PERC RAID 0 card (using megaraid driver) and a pair of PCI LSI22320-R cards (one single channel and one dual channel using MPT Fusion).
The internal PERC SCSI card is the operating system disk with 2 80G drives mirrored with several partitions on it (sda1, sda2, etc..) The three MPT cards have a tape library (raw device), a Promise RAID array (/dev/sdb1, /dev/sdb2, etc..) , and a StorCase RAID array (/dev/sdc1).
When I boot this machine, I never know which order the drives will come up. At any given point, a reboot could cause the OS disk to be on /dev/sda, sdb, or sdc, with the others rotating around as well. Sometimes it takes several reboots before this machine boots with the correct combination where the root is found and the library is where it's expected.
I have changed only one option that I know of, changing the rootdelay in grub to 120 seconds, to help settle down the SCSI devices. While this helps, I still am terrified of rebooting this machine since they still change every few reboots.
I know I can also use labels to mount the individual partitions, so that even if the device names change, fstab will still find and mount them. This takes care of 75% of the problem, in that the OS disk and virtual libraries will mount OK. The problem that would still exist is that the backup software will still not be able to find the physical tape library, since I can't mount that by label.
Does anyone here know what I can do to help fix this? I have heard suggestions of changing things in the BIOS order, but that makes no difference since the initrd doesn't seem to care about that. The only other suggestion has been to remove the driver from the initrd image so that only one device (megaraid) is found at init.
I should mention, prior to putting Lenny on this machine, it was running Woody with a 2.4 kernel. It seemed to work OK in that configuration. I know several things have changed since the 2.4 days.
Thanks for any help, and please let me know if I have not provided enough info.
Mounting static devices "by label" can be helpful too, but I see you have tried this where you can.
RAID devices terrify me - OK in principle, a nightmare when they fail (which, I know, they aren't supposed to) so I cannot offer advice.
Someone else probably can though.
I'll take a look at udev and see what I can do. Does anyone have any sample udev scripts that they've written for their SCSI? It seems like it encompasses a lot of things and I'd love a "quickstart".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.