SCSI—Small Computer System Interface
The SCSI (small computer system interface) bus is a system commonly found on workstation-class machines, but is available for other systems such as personal computers (PCs). The advantage of SCSI is that once the controller is set up, you can just add new devices (typically up to seven) with a minimum of fuss. The new device is merely plugged into the existing “daisy chain” bus. The user must ensure that the last device in the chain is properly terminated. We will discuss termination in a later section.
The idea to write about SCSI came out of a project I was working on to provide Linux-based web and network servers for a local materials science company, Fibics, Inc. (http://www.fibics.com/). The network server was to include hardware for performing file-system backups. I am not a SCSI expert and had to learn the hard way, so I thought I'd share the basics in hopes that others might benefit from my experience.
You will need a computer (obviously), a SCSI controller card to match the bus type of your computer and one or more SCSI devices (disk drive, tape drive, etc). Note that different SCSI devices may require different SCSI bus types (SCSI-1 vs. SCSI-2 vs. ultrawide, etc.) and this may affect your choice of controller card. For more information on the different SCSI buses, I recommend the booklet Basics of SCSI from Ancot Corporation (http://www.ancot.com/).
Before purchasing hardware, you should review the relevant HOWTO documents (SCSI, hardware) and the hardware compatibility list for your Linux distribution. The HOWTO documents I read are from the Red Hat distribution and are installed in /usr/doc: /usr/doc/HOWTO/SCSI-Programming-HOWTO and /usr/doc/HOWTO/unmaintained/SCSI-HOWTO. The HOWTO documents provide some useful information, although they are somewhat dated.
If your PC has no SCSI devices or controllers, you should start by determining what device you need. For my project, a high-capacity 4mm DAT drive was required. A review of available drives suggested a Seagate Scorpion (12/24GB) would meet the requirements. Once the device is selected, you can narrow down your choice of controller cards based on the type of SCSI bus the device requires.
The following steps were used to determine what controller card I would require:
The target machine was an AMD K6-2-based PC with PCI and ISA buses.
A 4mm DAT drive was needed for backup purposes.
The selected drive required a SCSI-2 bus.
An Adaptec 2910 controller supports SCSI-2 and is a PCI card; it is not specifically listed as incompatible in the hardware list.
A driver for the 2910 was needed to run under Red Hat 5.2.
The most difficult task is determining the correct driver, as such information was not documented anywhere I looked. Seagate has an automated phone system (1-800-SEAGATE) which provides considerable information about their hardware. Unfortunately, on the software side only Windows 95/98/NT information was available.
The solution was to post a message to the local Linux mailing list. Many thanks to the individuals on the Ottawa Carleton Linux Users Group (OCLUG) mailing list for indicating that the “aic7xxx” SCSI driver module was the proper choice. The OCLUG URL is listed in Resources.
Another post to the OCLUG mailing list and some looking around led me to more detailed information. README files for the various SCSI drivers reside in /usr/src/linux-2.0.36/drivers/scsi/. Here, you can determine what cards or chip sets are supported by each driver. It would be worth looking at these files prior to purchasing a SCSI controller card.
To add the required driver, I started up Red Hat's control panel. I selected “Kernel Configurator” and clicked on “add”. A “Module Type” window opened; there I selected “scsi_hostadapter” from the “Module Types” pulldown menu. I clicked “OK” to open the “Module Definition” window, then clicked the “Which module” pulldown and selected the required driver. Finally, I clicked “OK” and then “Restart kerneld” in the “Kernel Configurator” window.
Having determined what was needed, the hardware was purchased and installed. The Seagate DAT manual was not as clear as it could have been about installing a single SCSI device, but all the required information is there. Listening to the information on their automated telephone help line answered my remaining hardware questions. I'm providing sufficient information here (I hope), so you won't have to make the phone call.
Two rules must be followed when dealing with a SCSI system. One, every SCSI device must be set to a unique SCSI ID number. ID #7 is normally used for the SCSI controller card and ID #0 is often used by the boot drive. Two, a SCSI bus (cable) must be terminated at both ends in this manner:
Internal devices use active termination on the last device in the chain, at the end of the ribbon cable.
External devices require a terminator plugged into the unused connector on the last device in the chain.
The controller card provides automatic active termination. If the card is used only for internal devices, the external connector need not be terminated.
In my particular case, I wanted to install a single internal device. The 2910 controller card was plugged into a free PCI slot on the motherboard. The DAT drive was configured for active termination via the appropriate DIP switch. Other DIP switches were used to set the drive to SCSI address #2. Then the drive was installed in a free 5-1/4-inch drive bay. Since the DAT drive was the only SCSI device being installed, it was plugged into one end of the SCSI ribbon cable. The other end was plugged into the SCSI controller card. The Adaptec 2910 “kit” came with the ribbon cable that allows two devices to be connected to the card. The card also has an external SCSI connector which was not used (nor terminated).
Practical Task Scheduling Deployment
One of the best things about the UNIX environment (aside from being stable and efficient) is the vast array of software tools available to help you do your job. Traditionally, a UNIX tool does only one thing, but does that one thing very well. For example, grep is very easy to use and can search vast amounts of data quickly. The find tool can find a particular file or files based on all kinds of criteria. It's pretty easy to string these tools together to build even more powerful tools, such as a tool that finds all of the .log files in the /home directory and searches each one for a particular entry. This erector-set mentality allows UNIX system administrators to seem to always have the right tool for the job.
Cron traditionally has been considered another such a tool for job scheduling, but is it enough? This webinar considers that very question. The first part builds on a previous Geek Guide, Beyond Cron, and briefly describes how to know when it might be time to consider upgrading your job scheduling infrastructure. The second part presents an actual planning and implementation framework.
Join Linux Journal's Mike Diehl and Pat Cameron of Help Systems.
Free to Linux Journal readers.View Now!
|The Firebird Project's Firebird Relational Database||Jul 29, 2016|
|Stunnel Security for Oracle||Jul 28, 2016|
|SUSE LLC's SUSE Manager||Jul 21, 2016|
|My +1 Sword of Productivity||Jul 20, 2016|
|Non-Linux FOSS: Caffeine!||Jul 19, 2016|
|Murat Yener and Onur Dundar's Expert Android Studio (Wrox)||Jul 18, 2016|
- Stunnel Security for Oracle
- The Firebird Project's Firebird Relational Database
- Murat Yener and Onur Dundar's Expert Android Studio (Wrox)
- SUSE LLC's SUSE Manager
- Managing Linux Using Puppet
- Non-Linux FOSS: Caffeine!
- My +1 Sword of Productivity
- SuperTuxKart 0.9.2 Released
- Doing for User Space What We Did for Kernel Space
- Google's SwiftShader Released
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide