Sun Enterprise Server 配置外部 SCSI 磁带机( 四 )



Now save the edited file.
Please note: If the st.conf file does not contain configuration information for the type of drive you are installing, it will be necessary to get the configuration entries from the manufacturer.



Determining and Setting the Drive"s SCSI ID
Devices on a SCSI bus must be configured with a unique SCSI ID, often called the target ID. When adding a SCSI device, it must be assigned an unused ID. It is therefore necessary to determine which IDs are already in use on the server.

Sun Enterprise servers will typically reserve the following IDs for specific internally connected devices:

5 for Internal Tape Drive
6 for CD-ROM
7 for Host Adapter
In addition, the boot disk device will typically use ID 0, although it is not reserved for this purpose.

To determine which IDs are in use, follow the steps below:

Boot the system to the ok prompt.

Set the NVRAM auto-boot? parameter to false.

ok setenv auto-boot? false
This will save time by preventing the system from booting into the Solaris OS until you want it to.

If you used the Solaris OS halt command or the Stop-a key sequence to get to the ok prompt, run the reset command to clear all buffers and registers before entering any other commands. If you do not do this, the system may lock up.

ok reset
The system will do a hardware reset and return to the ok prompt (assuming the auto-boot? parameter is set to false).

If you plan to connect the tape drive to the external connector of the primary on-board SCSI bus, run the following command to determine the targets in use on this bus:

ok probe-scsi
On systems with OpenBoot 3.x or later, the following warning will be displayed:

Shutting down the Solaris Operating System abruptly with the
Stop-a sequence, or with the halt command, creates a condition
where running the probe command hangs the system unless you run
the reset-all command first.

If you have run the reset command, respond with "y" when prompted. You will be presented with a display similar to the following:

Primary UltraSCSI bus:
Target 0
Unit 0 Disk IBM DDYST1835SUN18G S94A
Target 1
Unit 0 Disk IBM DDYST1835SUN18G S94A
Removable-Media/External SCSI bus
Target 6
Unit 0 Removable Read Only Device Disk TOSHIBA
XM6201TASUN32XCD1103

This display indicates that targets 0, 1, and 6 are in use, and any of the unused targets may be used for the external tape drive.

Remember: Although it is not displayed here, target 7 is always reserved for the SCSI host adapter. Also, as mentioned before, target 5 is reserved for an internal tape drive. If an internal drive is not currently installed you may use target 5 for the external drive. However, if you install an internal tape drive at some point in the future, you will have to assign it to target 5, and you will be forced to reconfigure the external drive with a different target ID. For this reason, in the current scenario the recommended ID would be 4.

If you plan to connect the tape drive to the external connector that is attached to a separate SBus or PCI controller, run the following command to determine the targets in use on all SCSI controllers:

ok probe-scsi-all
A display will be presented, allowing you to determine the target IDs in use on all controllers. Once you have determined which ID you wish to use, follow the manufacturer"s documentation to set the tape drive to this ID.



Attaching the Drive
When adding SCSI devices you must observe proper bus termination for proper operation. The SCSI bus must be terminated at each end. Adding devices to an external connector extends the bus and, therefore, the point of termination is also extended to the last connected device.

A typical configuration of Sun Enterprise servers has the primary SCSI bus extend to an external 68-pin connector, which is located on the rear panel. The external connector can support several different external devices with both narrow, Fast/Wide, and (often) UltraSCSI interfaces. The bus is also auto-terminating; as such, you do not need to worry about enabling or disabling termination when attaching an external device. You need only be concerned with termination of the device itself.

推荐阅读