When attaching the external drive, make sure the server has been shut down and powered off. Also, when connecting, ensure that the tape device is not powered up. If the tape device is to be the only external device, simply attach the cable to the connector. Since it is the last device on the bus, make sure it is properly terminated. Then confirm that the device has power, turn the device on, and then turn on the server.
If other devices are already attached to the external connector, the situation gets more complicated. It is advisable that you consult the Sun Enterprise Server Owner"s Guide for more detailed installation information. In any case, if you are unfamiliar with SCSI devices, bus length, bus termination, and so on, it is recommended that you read the section that discusses the external SCSI port to gain a better understanding of the requirements for attaching external devices.
Reconfiguration Reboot
Turn on the power to the tape drive and then the server. If you have set the auto-boot? parameter to false, as described above, the system will come up to the ok prompt.
Enter the boot command to perform a reconfiguration reboot, as in the following example:
ok boot -r
If the auto-boot? parameter was not set to false and the server continues to boot into the Solaris OS, log in as root and then create a file named reconfigure in the root directory.
# touch /reconfigure
Reboot the server. The system will check for the existence of the reconfigure file and perform a reconfiguration boot if it exists.
Watch for any boot messages that would indicate a problem with the st.conf file. If problems are found, make note of any line numbers displayed. If errors occur, edit the st.conf file again and perform the reconfiguration reboot again.
The reconfiguration reboot will create the necessary device entries in the /devices and /dev directories.
Testing the Drive
Once the tape device entries have been created successfully, test the tape drive with the mt command. Make sure a tape has been inserted in the drive and run the following command:
# mt -f /dev/rmt/0 status
If other tape devices have been configured in the past, you may have to replace the 0 with a 1, 2, and so on, until you find the number associated with your new drive.
Again continuing with the example of the WangDAT drive, a successful response to the mt command will look something like this:
WangDAT 4mm DAT tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
Notice that the text displayed on the first line, before "tape drive," should match the second quoted field of the device configuration line in the st.conf file. Also, note that the specific sense key returned is usually not an issue.
mt may return a message similar to the following:
/dev/rmt/0: No such device or address
This means you should try substituting the 0 with 1, 2, and so on, as mentioned previously. Any other message may indicate a problem with the configuration in the st.conf file. Edit the st.conf file and reboot until the mt command returns the proper status.
When the mt command returns the proper status, the tape drive is correctly configured and ready for use.
For more information, consult the man pages on the mt command.
-----------------------------------------------------------------------------------------
注:“当添加一个外部 SCSI 磁带机时,必须修改 Solaris OS 配置文件 /kernel/drv/st.conf ”
这句话不是必须的,SUN对磁带机兼容还是很好的,不修改这个文件一般都可以识别到磁带机 。对于这个文件的修改,不是参考这个安装指南,而是参照磁带机的安装手册 。
HP的DDS磁带机上面也带跳线,需要开盖才能找到,对于SGI、IBM、SUN等机器有不同的跳线办法,实际使用中,不做跳线修改也能识别 。
推荐阅读
- Sun Cluster 简介
- Veritas Cluster Server 3.5 Solaris VCS配置入门篇
- Sun开源CTO谈ZFS和Solaris 10网络协议堆栈
- Sun终极文件系统ZFS将出现在Linux上
- 在Sun E450服务器上安装Solaris 10
- Sun Solaris对Perl升级
- Sun收购Aduva加强Solaris补丁管理
- Sun Solaris 对Xorg X Server升级
- 1M Sun Solaris UNIX系统INETD本地拒绝服务漏洞
- 深度剖析sun的经济系统