日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Sun Enterprise Server 配置外部 SCSI 磁帶機( 三 )


測試磁帶機
一旦磁帶機條目已經(jīng)成功創(chuàng)建,用 mt 命令測試磁帶機 。確認磁帶已經(jīng)插入到磁帶機中,運行以下命令:

# mt -f /dev/rmt/0 status
如果以前已經(jīng)配置了其他磁帶機,您可能必須用 1、2 等代替 0,直到發(fā)現(xiàn)與新磁帶機條目相關(guān)聯(lián)的數(shù)字 。

繼續(xù) WangDAT 磁帶機的例子,mt 命令的成功響應(yīng)看上去像這樣:

WangDAT 4mm DAT tape drive:
sense key(0x0)= No Additional Sense residual= 0 retrIEs= 0
file no= 0 block no= 0


注意第一行中“tape drive”前顯示的文本應(yīng)該和 st.conf 文件中設(shè)備配置行中的第二個引用字段匹配 。此外,注意返回的特定 sense key 通常不是個問題 。

mt 可能返回類似以下內(nèi)容的消息:

/dev/rmt/0: No such device or address
這表示您應(yīng)該嘗試將 0 替換為 1、2、3 等,就如前面提到的那樣 。任何其他消息可能表示 st.conf 文件中的配置有問題 。編輯 st.conf 文件,并重新啟動,直到 mt 命令返回合適的狀態(tài) 。

當 mt 命令返回合適狀態(tài)時,磁帶機就正確配置了,并已經(jīng)準備好使用了 。

有關(guān)詳細信息,請查閱 mt 命令的 man 頁面 。


------------------------------------------------------------------------------------------

Configuring an External SCSI Tape Drive on a Sun Enterprise Server
By Carl Grammer

Not every shop running the Solaris Operating System has the resources -- or even the need -- for backup solutions like fancy tape auto-changers, libraries, or silos. Often all that is needed is a backup, or ufsdump, of the root file system, an important database, or the code from a small development project. In these cases, an external device such as a SCSI DDS tape drive will often suffice.

The following information should aid in configuring your external device on most Sun Enterprise servers that have an external SCSI connection. This information applies to Solaris 7 OS or later versions.



Configuring the Solaris Operating System for the Tape Drive
When adding an external SCSI tape drive, it is necessary to modify the Solaris OS configuration file /kernel/drv/st.conf.

As root, go to the /kernel/drv/ Directory and make a backup of the st.conf file.
# cp st.conf st.conf.bak
Using an editor such as vi, open the file and go to the following line:

# tape-config-list=
If it has not already been uncommented, remove the # to uncomment the line.
The following section of the file consists of the configuration settings for some commonly used tape drives. They are presented as three quoted and comma-delimited fields. If you happen to be installing a drive that is on this list, scroll down to that line and uncomment it.

For example, if you are installing a WangDAT 3400, the line will look like this:

# "WangDAT Model 3400", "WangDAT 4mm DAT", "WangDAT",

If it has not already been uncommented, remove the # to uncomment the line. Also, if this is the last or the only tape drive to be configured, change the comma at the end of the line to a semicolon.

Important note: The configuration line of the last tape drive enabled (that is, the last uncommented line) must end in a semicolon. The semicolon indicates the end of the list of enabled drives. All enabled drives that appear before the last enabled drive must end in a comma. Otherwise, you will get errors when performing a reconfiguration reboot.

Scroll down to the next section of the file, to find the line in which the field preceding the equal sign (=) matches the previously noted third field in quote marks from the enabled tape drive"s configuration line. Continuing with the example of the WangDAT drive, you would search for the line that begins with WangDAT, like this:

#WangDAT = 1,0x2b,0,0x659,1,0x00,0;

Uncomment this line. Note that if there is more than one matching entry, you may have to experiment to find the entry that produces the best results.

推薦閱讀