Axil S/E-ljs070
1993.11.4
Lee Jin-Soo
SUBJECT: SCSI ÀÏ¹Ý °³³ä
************* SCSI Periphral Interface ***************
SCSI - Small Computer System Interface.
Áï, °í¼ÓÀÇ º´·Ädata Àü¼ÛÀ» Á¦°øÇϴ ǥÁØ interface.
- SystemµéÀº SCSI host adapter¸¦ ÅëÇØ SCSI host adapter ´Â cpu b/d ¿¡ Á¸Àç
Çϰųª,VME bus¿Í ¿¬°á.
- SunÀÇ Ã¹¹øÂ° SCSI controller´Â SeagateÀÇ ST506 technology¸¦ ÀÌ¿ëÇߴµ¥
±× controller°¡ Adaptec 4000 À̾úÀ½.->71MB only support(Sun2±âÁ¾),Repair±â´É¾øÀ½.
- SunÀÇ µÎ¹øÂ° SCSI controller´Â Emulex MD21 (ESDI).-> Repair±â´É,ST506º¸´Ù
Å« diskµéÀ» handleÇÒ¼öÀÖÀ½.
- SCSI Connection -
sd ( 0 , 18 , 1 )
| | | |
| | | |
controller ----------- | | |
| | |
field 1 --------------- | |
| |
field 2 -------------------- |
|
field 3 ------------------------
*** controller : SCSI controller °¡ sdÀÓÀ» ¸í½Ã.
*** field 1 : SystemÀÇ bus¿¡ ÀÖ´Â SCSI host interface ¹øÈ£¸¦ Ç¥½Ã.
ÇöÀç Sun 3/60ÀÌ ÇѰ³ÀÇ SCSI host interface¸¦ °®´Â ¹Ý¸é,
deskside³ª rack¿¡¼´Â µÎ°³ÀÇ host adapter ¸¦ Áö¿øÇÑ´Ù.
¿¹) sd(0,x,x) or sd(1,x,x)
*** field 2 : SCSI target ID number * 8 + LUN(logical unit number) °ø½ÄÀ¸·Î °è»êÇÑ hex °ª.
Target -> 0 1 2 3
/ \ / \ / \ / \
LUN -> 0 1 0 1 0 1 0 1
| | | | | | | |
UNIX sd# -> 0 1 2 3 4 5 6 7
Table 1 - Non-Embedded
- External controller : target´ç 2°³ÀÇ µð½ºÅ© ¸¦ °üÀåÇϸç,
ÃÑ 8°³ÀÇ µð½ºÅ©¸¦ Áö¿øÇϴµ¥,kernel ¿¡´Â 6°³¸¦ Áö¿øÇÏ°Ô set up µÇ¾ú´Ù.
Target -> 0 1 2 3
/ \ / \ / \ / \
LUN -> 0 na 0 na 0 na 0 na
| | | |
UNIX sd# -> 0 2 4 6
(Where na = not allowed.)
Table 2 - Embedded
- Embedded controller : target´ç ÇѰ³ÀÇ µð½ºÅ©¸¦ Áö¿ø.
target ID ´Â LUN ÀÌ ¾Æ´Ï¶ó device¿¡ ÇÒ´ç.
4°³ÀÇ µð½ºÅ©¸¦ Áö¿øÇÒ¼ö ÀÖÀ¸¸ç ¦¼ö°³ÀÇ ¹øÈ£·Î±â¼úµÈ´Ù.
* SCSI spec ¿¡¼ °¢ targetÀº 8°³ÀÇ device¸¦ °üÀå ÇϹǷÎ,
°¢ targetÀÇ first device ¸¦ À§ÇÑ ½ÇÁ¦SCSI number(scsi drive#)´Â
Àü¼úÇÑ 8º¸´ÙÅ©´Ù.
À̰ÍÀÌ sd(x,x,x)ÀÇ Áß¾Ó¿¡ÀÖ´Â ¼ýÀÚ°¡ 8Àǹè¼ö¸¦ÀÌ¿ëÇÏ´Â ÀÌÀ¯ÀÌ´Ù.
booting¸ñÀû À¸·Î´Â ÀÌ ¼ýÀÚ°¡ 16Áø¼ö °ªÀ¸·Î Ç¥½ÃµÇ°í,kernel ¿¡¼´Â
10Áø¼öÇüÀ¸·Î Ç¥½ÃµÈ´Ù.
TARGET ID -> 0 1 2 3 4 5
/ \ / \ / \ / \ / \ / \
LUN -> 0 1 0 1 0 1 0 1 0 na 0 na
| | | | | | | | | |
scsi drive# -> 0 1 8 9 16 17 24 25 32 40
(kernelÇü) | | | | | | | | | |
scsi-hex# -> 0 1 8 9 10 11 18 19 20-(0) 28
(booting¸ñÀû) | | | | | | | | | |
UNIX sd# -> 0 1 2 3 4 5 6 7 st0 st1
controllersi0 at vme24d16 ? csr 0x200000 priority 2 vextor siintr 0x40
controllersi1 at vme24d16 ? csr 0x204000 priority 2 vector siintr 0x41
tapest0 at si0 drive 32 flags 1
tapest1 at si0 drive 40 flags 1
tapest2 at si1 drive 32 flags 1 <- target 4, host 2
tapest3 at si1 drive 40 flags 1 <- target 5, host 2
disksd0 at si0 drive 0 flags 0
disksd1 at si0 drive 1 flags 0
disksd2 at si0 drive 8 flags 0
disksd3 at si0 drive 9 flags 0
disksd4 at si0 drive 16 flags 0
disksd6 at si0 drive 24 flags 0
-Using sd6 or LUN 0 at target 3, ¹®Á¦´Â ´ÙÀ½°ú °®ÀÌ Ç® ¼ö ÀÖ´Ù:
TARGET ID 3 x 8 = 24 + LUN 0 = 24 in HEX it is 18
µû¶ó¼, the device sd6 ¸¦ sd(0,18,0)·Î booting ÇÒ ¼ö ÀÖ´Ù.
-sd2·ÎºÎÅÍ booting Çϱâ À§Çؼ´Â , ´ÙÀ½ °°ÀÌ Ç® ¼öÀÖ´Ù:
TARGET ID 1 x 8 = 8 + LUN 0 = 8 in HEX it is 8
µû¶ó¼, sd2 ¸¦ sd(0,8,0)·Î booting ÇÒ¼ö ÀÖ´Ù.
* Tape drive(target 4,5) ´Â st0, st1 À¸·Î ±â¼ú µÈ´Ù.
st0·Î booting ÇÒ¶§ st0 ÀÇSCSI number ´Â 20ÀÏ Áö¶óµµ boot PROM ¿¡ Á¶Á¤À» ÇÏ¿©
Tape Drive st0´Â st(0,0,0)·Î º¸¿©Áø´Ù. µû¶ó¼ OS tape À» >b st(0,0,0) or
>b st() ·Î ½ÃÀÛ ÇÒ ¼öÀÖ´Ù. ±×·¯³ª st1 ÀÇ °æ¿ì´Â SCSI-hex address·Î st(0,28,x)
·Î »ç¿ë ÇÒ ¼ö ÀÖ´Ù.
*** field 3 : st or sd(x,x,x) ÀÇ ¸¶Áö¸· ¼ýÀÚ´Â fileÀ̳ª partition À» Ç¥½ÃÇÑ´Ù.
¿¹) OS tape ¿¡ ÀÖ´Â MUNIX ¸¦ access ÇÏ·Á¸é file 5, boot file Àº file 0
Disk drive ¿¡¼´Â Partition a = 0,b = 1, c = 3, d = 3, e = 4 µîµî.
>b sd(0,9,3)vmunix -> sd3¿¡ ÀÖ´Â partition d ¿¡¼ booting ÇϰíÀÚ ÇÒ¶§.
***** SCSI Configuration *****
** Termination : Termination ˼ multi-disk system (external,embedded,mixed controllers)
layout ¿¡ ÇÊ¿äÇÑ ¿ä¼ÒÀÌ´Ù.
- Sun Àº ÇÑ host ¿¡¼ embedded ¿Í non-embedded devices ¸¦ Áö¿ø ÇÏÁö ¾Ê´Â´Ù.
SCSI bus ÀÇ Á¾´ÜÀº Ç×»ó bus line ÀÇ ³¡¿¡ ÀÖ¾î¾ß ÇÑ´Ù.
¸¸¾à external terminator °¡ »ç¿ëµÇ¾ú´Ù¸é , bus ÀÇ ³¡¿¡ ÀÖ¾î¾ß Çϸç
controller board ¿¡ Á¾´ÜÀÌ ¾ø¾î¾ß ÇÑ´Ù.
- Sun 3/160,Sun 3/260,Sun 4/260 typeÀÇ pedestal¿¡¼´Â terminator ´Â º¸Åë
tape controller ¿¡ ÀÖ´Ù.
- Shoebox - Terminator ´Â disk controller ¿¡ Á¸Àç.
- Pbox,lunchbox - internal terminator °¡ ¾ø´Ù.-> external terminator À»
»ç¿ëÇØ¾ßÇÔ.
- Sun-3/80 Àº 2ÁßÁ¾´Ü bus(doubled-ended)¸¦ »ç¿ëÇÏ¿©internal device ¿¡´Â internal terminationÀ»
external device ¿¡´Â exterminal terminator¸¦ »ç¿ë.(internal terminator´Â Á¦°Å.)
- Sun-3/80 and Sun-4/330 Àº ´Ù¸¥ ±âÁ¾µé°ú´Â ´Ù¸¥ suninstall menu ÀÇDisk format Çü½ÄÀ» °®´Â´Ù.
Áï, root¿Í swap Àº Ç×»ó sd6 ¿¡ Á¸ÀçÇØ¾ß ÇÑ´Ù.(¿¹,sd(0,18,x) )
****** SCSI Bus and Device Configuration Tables ******
Sun-3/80 Systems
--- - -- -------
-----------------------------------------------------------------------------------
| | Address | SCSI | UNIX | Boot | External |
|Device Description| Selection| Target| Device| Device | SCSI Termination |
| | | | | | ---------------------+
| | Method | ID | ID | ID | Type | Location |
--------------------------------------------------------------------+---------------
|3/80 Base Unit's | Preset | | | | | |
| 1st Internal Disk| Jumper | 3 | sd6 | sd(0,18,0)| N/A | N/A |
+------------------+----------+--------+--------+-----------+----------------------+
|3/80 Base Unit's | Preset | | | | | |
| 2nd Internal Disk| Jumper | 1 | sd2 | sd(0,8,0) | N/A | N/A |
--------------------------------------------------------------------+---------------
|Base Unit's Floppy| Preset | | | | | |
| Disk Drive | Jumper | N/A | fd0 | N/A | N/A | N/A |
+------------------+----------+--------+--------+-----------+----------------------+
|1st Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 0 | sd0 | sd(0,0,0) | SCSI | of any |
| | | | | | | Storage Pack|
--------------------------------------------------------------------+---------------
|2rd Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 2 | sd4 | sd(0,10,0)| SCSI | of any |
|| | | | | | | Storage Pack|
+------------------+----------+--------+--------+-----------+----------------------+
|3nd Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 1 | sd2 | sd(0,8,0) | SCSI | of any |
| | | | | | | Storage Pack|
--------------------------------------------------------------------+---------------
|4th Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 3 | sd6 | sd(0,18,0)| SCSI | of any |
| | | | | | | Storage Pack|
+------------------+----------+--------+--------+-----------+----------------------+
|1st Desktop Backup| Selector | | | | mini-| unused port |
| Pack | Switch | 4 | st0 | st(0,0,0) | SCSI | of any |
| | | | | | | Storage Pack|
--------------------------------------------------------------------+---------------
|2nd Desktop Backup| Selector | | | | mini-| unused port |
| Pack | Switch | 5 | st1 | st(0,28,0)| SCSI | of any |
| | | | | | | Storage Pack|
+------------------+----------+--------+--------+-----------+----------------------+
|ESM's 1st Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 0 | sd0 | sd(0,0,0) | SCSI | SCSI port |
--------------------------------------------------------------------+---------------
|ESM's 2nd Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 2 | sd4 | sd(0,10,0)| SCSI | SCSI port |
+------------------+----------+--------+--------+-----------+----------------------+
|ESM's 1/4-inch | Preset | | | | D- | ESM's bottom|
| Tape Drive | Jumper | 4 | st0 | st(0,0,0) | SCSI | SCSI port |
--------------------------------------------------------------------+---------------
|EEM's 1st Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 1 | sd2 | sd(0,8,0) | SCSI | SCSI port |
------------------------------------------------------------------------------------
Key to Codes Used
--- -- ----- ----
--------------------------------------------------
| ESM| External Storage Module (526G, 530G, 539G)|
|----+--------------------------------------------+
| EEM| External Expansion Module (527G) |
--------------------------------------------------
| N/A| Not Applicable |
--------------------------------------------------
*** Sun-3/80 ***
* SCSI Target ID °ª : '6' -> Sun ¿¡ ÀÇÇØ ¹Ì·¡¿¡ »ç¿ëÇϱâÀ§ÇØ º¸Á¸µÈ °ª.
( À§ table ¿¡¼ »ç¿ëµÇÁö¾ÊÀº °ª) '7' -> SCSI host interface °¡ »ç¿ëÇÏ´Â °ª.
* Sun-3/80 ÀÌ Áö¿ø ÇÏ´Â SCSI devices ÀÇ ÃÖ¼ö´Â 6 ÀÌ´Ù.
( 2°³ÀÇ tape drive, 4°³ÀÇ disk drives )
SCSI Subsystem Cable Lengths for the Sun-3/80 System
---- --------- ----- ------- --- --- --- - -- ------
-----------------------------------------------------------------------
| Length (meters)| Device/Cable Description |
|----------------+-----------------------------------------------------+
| 0.3 | Sun-3/80 CPU traces and Base Unit's internal cables|
-----------------------------------------------------------------------
| 0.0 | Desktop Storage Pack internal cable |
|----------------+-----------------------------------------------------+
| 0.8 | Desktop Storage Pack external cable |
-----------------------------------------------------------------------
| 1.0 | External Storage Module's internal cable |
|----------------+-----------------------------------------------------+
| 2.0 | ESM/EEM external cable |
-----------------------------------------------------------------------
| 1.0 | External Expansion Module's internal cable |
|----------------+-----------------------------------------------------+
| 0.4 | ESM daisy-chain cable |
-----------------------------------------------------------------------
Note: Desktop Storage Packs and External Storage Modules ÀÌ °°Àº system ¿¡
¿¬°á µÉ¶§ Storage PacksµéÀº systemÀÇ SCSI port·Î ºÎÅÍ daisy-chainÀÌ µÇ¾î¾ßÇϸç,
±×´ÙÀ½ External Storage ModulesÀº »ç¿ëµÇÁö ¾ÊÀº ¸¶Áö¸· Storage PackÀÇ SCSI port
·ÎºÎÅÍ daisy-chainµÇ¾î¾ß ÇÔ.
SPARCstation 1
------------ -
----------------------------------------------------------------------------------
| | Address | SCSI | UNIX | Boot | External |
|Device Description| Selection| Target| Device| Device | SCSI Termination |
| | | | | | ---------------------+
| | Method | ID | ID | ID | Type | Location |
------------------------------------------------------------------+---------------
|SPARCstation 1's | Preset | | | | | |
| 1st Internal Disk| Jumper | 3 | sd0 | sd(0,0,0)| N/A | N/A |
+------------------+----------+-------+--------+----------+----------------------+
|SPARCstation 1's | Preset | | | | | |
| 2nd Internal Disk| Jumper | 1 | sd1 | sd(0,1,0)| N/A | N/A |
------------------------------------------------------------------+---------------
|Base Unit's Floppy| Preset | | | | | |
| Disk Drive | Jumper | N/A | fd0 | N/A | N/A | N/A |
+------------------+----------+-------+--------+----------+----------------------+
|1st Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 0 | sd3 | sd(0,3,0)| SCSI | of any |
| | | | | | | Storage Pack|
------------------------------------------------------------------+---------------
|2nd Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 2 | sd2 | sd(0,2,0)| SCSI | of any |
| | | | | | | Storage Pack|
+------------------+----------+-------+--------+----------+----------------------+
|3rd Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 1 | sd1 | sd(0,1,0)| SCSI | of any |
| | | | | | | Storage Pack|
------------------------------------------------------------------+---------------
|4th Desktop Disk | Selector | | | | mini-| unused port |
| Pack | Switch | 3 | sd0 | sd(0,0,0)| SCSI | of any |
| | | | | | | Storage Pack|
+------------------+----------+-------+--------+----------+----------------------+
|1st Desktop Backup| Selector | | | | mini-| unused port |
Pack Switch 4 st0 st(0,0,0) SCSI | of any
| | | | | | | Storage Pack|
------------------------------------------------------------------+---------------
|2nd Desktop Backup| Selector | | | | mini-| unused port |
| Pack | Switch | 5 | st1 | st(0,1,0)| SCSI | of any |
| | | | | | | Storage Pack|
+------------------+----------+-------+--------+----------+----------------------+
|ESM's 1st Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 0 | sd3 | sd(0,3,0)| SCSI | SCSI port |
------------------------------------------------------------------+---------------
|ESM's 2nd Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 2 | sd2 | sd(0,2,0)| SCSI | SCSI port |
+------------------+----------+-------+--------+----------+----------------------+
|4-inch | Preset | | | | D- | ESM's bottom|
| Tape Drive | Jumper | 4 | st0 | st(0,0,0)| SCSI | SCSI port |
------------------------------------------------------------------+---------------
|EEM's 1st Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 1 | sd1 | sd(0,1,0)| SCSI | SCSI port |
----------------------------------------------------------------------------------
* SCSI Target ID °ª : '6' -> Sun ¿¡ ÀÇÇØ ¹Ì·¡¿¡ »ç¿ëÇϱâÀ§ÇØ º¸Á¸~
µÈ °ª.
( À§ table ¿¡¼ »ç¿ëµÇÁö¾ÊÀº °ª) '7' -> SCSI host interface °¡ »ç¿ëÇÏ´Â °ª.
* Sun-4/60 ÀÌ Áö¿ø ÇÏ´Â SCSI devices ÀÇ ÃÖ¼ö´Â 6 ÀÌ´Ù.
( 2°³ÀÇ tape drive, 4°³ÀÇ disk drives )
SPARCserver 330
----------- ---
----------------------------------------------------------------------------------
| | Address | SCSI | UNIX | Boot | External |
| Device Description| Selection| Target| Device| Device | SCSI Termination |
| | | | | |----------------------+
| | Method | ID | ID | ID | Type | Location |
-------------------------------------------------------------------+---------------
| SPARCsystem 330's | Preset | | | | mini- | 330 Unit's |
| 1st Internal Disk| Jumper | 3 | sd6 | sd(0,18,0)| SCSI | SCSI port |
--------------------+----------+-------+-------+-----------+----------------------+
| SPARCsystem 330's | Preset | | | | mini- | 330 Unit's |
| 2nd Internal Disk| Jumper | 1 | sd2 | sd(0,8,0) | SCSI | SCSI port |
------------------------------------------------------------------+---------------
| SPARCsystem 330's | Preset | | | | mini- 330 Unit's |
| Internal Tape | Jumper | 4 | st0 | st(0,0,0) | SCSI | SCSI port |
|-------------------+----------+-------+-------+-----------+----------------------+
| 1st Desktop Backup| Selector | | | | mini- | unused port |
| Pack | Switch | 4 | st0 | st(0,0,0) | SCSI | of any |
| | | | | | | Storage Pack|
------------------------------------------------------------------+---------------
| 2nd Desktop Backup| Selector | | | | mini- | unused port |
| Pack | Switch | 5 | st1 | st(0,28,0)| SCSI | of any |
| | | | | | | Storage Pack|
|-------------------+----------+-------+-------+-----------+----------------------+
| ESM's 1st Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 0 | sd0 | sd(0,0,0) | SCSI | SCSI port |
------------------------------------------------------------------+---------------
| ESM's 2nd Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 2 | sd4 | sd(0,10,0)| SCSI | SCSI port |
|-------------------+----------+-------+-------+-----------+----------------------+
| ESM's 1/4-inch | Preset | | | | D- | ESM's bottom|
| Tape Drive | Jumper | 4 | st0 | st(0,0,0) | SCSI | SCSI port |
------------------------------------------------------------------+---------------
| EEM's 1st Disk | Preset | | | | D- | ESM's bottom|
| Drive | Jumper | 1 | sd2 | sd(0,8,0) | SCSI | SCSI port |
----------------------------------------------------------------------------------
******* SCSI Tape Device Driver **********
* st - driver for SCSI tape devices
**CONFIG - SUN-3, SUN-3/400, SUN-4, SPARCsystem 400 SERIES
controller si0 at vme24d16 ? csr 0x200000 priority 2 vector siintr 0x40
controller si1 at vme24d16 ? csr 0x204000 priority 2 vector siintr 0x41
controller si0 at obio ? csr 0x140000 priority 2
tape st0 at si0 drive 040 flags 1
tape st1 at si0 drive 050 flags 1
tape st2 at si0 drive 030 flags 1
tape st3 at si0 drive 020 flags 1
tape st4 at si1 drive 040 flags 1
tape st5 at si1 drive 050 flags 1
tape st6 at si1 drive 030 flags 1
tape st7 at si1 drive 020 flags 1
controller sc0 at vme24d16 ? csr 0x200000 priority 2 vector scintr 0x40
tape st0 at sc0 drive 040 flags 1
tape st1 at sc0 drive 050 flags 1
- À§ ¿¡¼ ù¹øÂ° 2 controller lineÀº Sun-3, Sun-3/400, Sun-4, and
SPARCsystem 400 VME system µéÀÇ Ã¹¹øÂ°¿Í µÎ¹øÂ°ÀÇ SCSI host adapters¸¦ ¸í½Ã ÇÑ´Ù.
¼¼¹øÂ°ÀÇ controller lineÀº Sun-3/50 and Sun-3/60 system ¿¡Àִ ù¹øÂ°¿Í À¯ÀÏÇÑ
SCSI host adapters¸¦ ¸í½Ã ÇÑ´Ù.
- controller specification lineµé µÚ¿¡ ÀÖ´Â 8°³ÀÇ lineµéÀº ÀÌ¿ëÇÒ¼ö ÀÖ´Â tape-driver
µéÀ» Ç¥½ÃÇß´Ù(st0 - st7 ).
ù¹øÂ° 4°³ÀÇ tape-device (st0 - st3) ´Â ù¹øÂ°controller ,si0¿¡ÀÇÇØ support.
´ÙÀ½ÀÇ 4°³ÀÇ tape-device( st4 - st7) ´Â µÎ¹øÂ°controller,si1¿¡ÀÇÇØ supportµÈ´Ù.
flags field´Â SCSI device typeÀ» host adapter¿¡ ¸í½ÃÇϱâÀ§ÇØ »ç¿ëµÈ´Ù.
tape device -> 1 disk device -> 0
- drive value´Â 8*target + lun : targetÀº SCSI target.
lun ˼ SCSI logical Unit Number.
**CONFIG - SPARCsystem 300 SERIES
controller sm0 at obio ? csr 0x66000000 priority 2
controller si1 at vme24d16 ? csr 0x204000 priority 2 vector siintr 0x41
tape st0 at sm0 drive 040 flags 1
tape st1 at sm0 drive 050 flags 1
tape st2 at sm0 drive 030 flags 1
tape st3 at sm0 drive 020 flags 1
tape st4 at si1 drive 040 flags 1
tape st5 at si1 drive 050 flags 1
tape st6 at si1 drive 030 flags 1
tape st7 at si1 drive 020 flags 1
**CONFIG - Desktop SPARCsystems
scsibus0 at esp
scsibus1 at esp
tape st0 at scsibus0 target 4 lun 0
tape st1 at scsibus0 target 5 lun 0
tape st2 at scsibus1 target 4 lun 0
tape st3 at scsibus1 target 5 lun 0
- device driver°¡ espÀÓÀ» Ç¥ÇØÁÖ°í ù¹øÂ°¿Í µÎ¹øÂ° tape device°¡ scsibus0 ¿¡ ºÙ¾îÀÖÀ½À» ¾Ë¼ö ÀÖ´Ù.
**CONFIG - SPARCsystem 600MP SERIES
scsibus0 at esp
tape st0 at scsibus0 target 4 lun 0
tape st1 at scsibus0 target 5 lun 0
tape st2 at scsibus0 target 1 lun 0
tape st3 at scsibus0 target 0 lun 0
scsibus1 at esp
tape st4 at scsibus1 target 4 lun 0
tape st5 at scsibus1 target 5 lun 0
scsibus2 at esp
scsibus3 at esp
tape st6 at scsibus3 target 4 lun 0
tape st7 at scsibus3 target 5 lun 0
scsibus4 at esp
**CONFIG - SUN-3/80 SYSTEMS
controller sm0 at obio ? csr 0x66000000 priority 2
tape st0 at sm0 drive 040 flags 1
tape st1 at sm0 drive 050 flags 1
tape st3 at sm0 drive 030 flags 1
tape st4 at sm0 drive 020 flags 1
- Sun-3/80 systemÀº on-board SCSI host adapter,sm0 ¸¦ »ç¿ëÇÑ´Ù.
**CONFIG - SUN-4/110 SYSTEMS
controller sw0 at obio 2 csr 0xa000000 priority 2
tape st0 at sw0 drive 040 flags 1
tape st1 at sw0 drive 050 flags 1
**CONFIG - SUN-3/E SYSTEMS
controller se0 at vme24d16 ? csr 0x300000 priority 2 vector se_intr 0x40
tape st0 at se0 drive 040 flags 1
tape st1 at se0 drive 050 flags 1
- Sun-3/E Àº VME-based SCSI host adapter, se0 ¸¦ »ç¿ëÇÑ´Ù.
**CONFIG - Sun386i SYSTEMS
controller wds0 at obmem ? csr 0xFB000000 dmachan 7 irq 16 priority 2
tape st0 at wds0 drive 32 flags 1
*** st device driver ´Â ´Ù¾çÇÑ SCSI tape devices¿Í interface¸¦ ÇÑ´Ù.
- 1/4" cartridge¸¦ Áö¿øÇÏ´Â devices´Â Archive Viper QIC-150 streaming tape drive¿Í
the Emulex MT-02 tape controller ¿Í Sysgen SC4000 tape controller¸¦ Áö¿øÇÑ´Ù.
(desktop SPARCsystems and SPARCsystem 600MP series machines ¿¡¼´Â Á¦¿Ü )
- 1/2" and 8mm ¸¦ Áö¿øÇÏ´Â devices´Â HP-88780 1/2" tape drive ¿Í
Exabyte EXB-8200/8500 8mm cartridge tape subsyste À» Áö¿øÇÑ´Ù.
***** Read Operation *****
- ¸¸¾à tape drive°¡ tape ÀÌ write µÈ format °ú ´Ù¸¥ format À¸·Îread¸¦ ÇÑ´Ù¸é,
driver´Â »ç¿ëÀÚ°¡ ¼±ÅÃÇÑ formatÀ» ¹«½ÃÇÑ´Ù.
¿¹) 1/4" cartridge tapeÀ» QIC-24 formatÀ¸·Î writeÇÑ ÈÄ QIC-11 formatÀ¸·Î read ÇÏ·ÁÇϸé
driver ´Â ù¹øÂ° read ¿¡¼ read ½ÇÆÐ¸¦ °ËÃâÇÒ °ÍÀ̸ç,ÀÚµ¿ÀûÀ¸·Î data¸¦ recoverÇϱâ
À§ÇØ QIC-24 format À¸·Î switch ÇÒ °ÍÀÌ´Ù.
***** Write Operation *****
- tape ÀÇ Ã³À½ºÎÅÍ user°¡ ¼³Á¤ÇÑ format À¸·Î Write¸¦ ¼öÇàÇÑ´Ù.
- original tape formatÀº ÀÌÀü¿¡ WriteµÈ tapeµé À§¿¡ appendÇϴµ¥ »ç¿ëµÈ´Ù.
- warning message´Â driver°¡ user°¡ ¸í½ÃÇÑ format À» ¹«½ÃÇØ¾ß¸¸ ÇÒ¶§ ¾ß±âµÈ´Ù.
***** EOT Handling *****
-Emulex and Sysgen drives Àº ÇϳªÀÇ physical end of tape (PEOT)À» °®´Â´Ù. ±×¸®ÇÏ¿©
EOT¸¦ Áö³ª¼´Â write°¡ ºÒ°¡´ÉÇÏ°Ô µÇ¾îÀÖ´Ù.
-´Ù¸¥ ¸ðµç drives´Â PEOT ÀÌÀü¿¡ a logical end of tape (LEOT)¸¦ °®´Âµ¥, ÀÌ´Â tapeÀ§¿¡
ÀÖ´Â data¸¦ ³ÑÄ¡Áö ¾Ê°Ô ÇϱâÀ§ÇÔÀÌ´Ù.
LEOT ¿Í PEOT »çÀÌÀÇ storage ¾çÀº tape drive ¿¡ µû¶ó 20 megabytes ÀÌÇÏ·Î ´Ù¾çÇϰÔ
¼³Á¤µÇ¾î ÀÖ´Ù.
**** FILES ****
- For 1/2" reel tape devices (HP-88780):
/dev/rst[0-7]
800 BPI density
/dev/rst[8-15]
1600 BPI density
/dev/rst[16-23]
6250 BPI density
/dev/rst[24-31]
data compression
/dev/nrst[0-7]
non-rewinding 800 BPI density
/dev/nrst[8-15]
non-rewinding 1600 BPI density
/dev/nrst[16-23]
non-rewinding 6250 density
/dev/nrst[24-31]
non-rewinding data compression
- For helical-scan tape devices (Exabyte):
/dev/rst[0-7]
Standard EXB-8200 (2GB) Format
/dev/rst[8-15]
EXB-8500 (5GB) Format
/dev/rst[16-23]
Compressed Format (EXB-8500 only)
/dev/rst[24-31]
Compressed Format (EXB-8500 only)
/dev/nrst[0-7]
non-rewinding Standard EXB-8200
(2GB)Format
/dev/nrst[8-15]
non-rewinding EXB-8500 (5GB) Format
/dev/nrst[16-23]
non-rewinding Compressed Format (EXB-
8500 only)
/dev/nrst[24-31]
non-rewinding Compressed Format (EXB-
8500 only)
- For QIC-150 tape devices (Archive Viper):
/dev/rst[0-7]
QIC-150 Format
/dev/rst[8-15]
QIC-150 Format
/dev/rst[16-23]
QIC-150 Format
/dev/rst[24-31]
QIC-150 Format
/dev/nrst[0-7]
non-rewinding QIC-150 Format
/dev/nrst[8-15]
non-rewinding QIC-150 Format
/dev/nrst[16-23]
non-rewinding QIC-150 Format
/dev/nrst[24-31]
non-rewinding QIC-150 Format
Note: The drive will automatically read both QIC-11 and
QIC-24 formats too.
- For QIC-24 tape devices (Emulex MT-02 and Sysgen SC4000):
/dev/rst[0-7]
QIC-11 Format
/dev/rst[8-15]
QIC-24 Format
/dev/rst[16-23]
QIC-24 Format
/dev/rst[24-31]
QIC-24 Format
/dev/nrst[0-7]
non-rewinding QIC-11 Format
/dev/nrst[8-15]
non-rewinding QIC-24 Format
/dev/nrst[16-23]
non-rewinding QIC-24 Format
/dev/nrst[24-31]
non-rewinding QIC-24 Format
Note: QIC-24 is the preferred format for all systems except
Sun-2's. For Sun-2 systems, QIC-11 is preferred.
******* SCSI Disk Device Driver ********
- sd - driver for SCSI disk devices
**CONFIG - SUN-3, SUN-3x, and SUN-4 SYSTEMS
controller si0 at vme24d16 ? csr 0x200000 priority 2 vector siintr 0x40
controller si0 at obio ? csr 0x140000 priority 2
disk sd0 at si0 drive 0 flags 0
disk sd1 at si0 drive 1 flags 0
disk sd2 at si0 drive 8 flags 0
disk sd3 at si0 drive 9 flags 0
disk sd4 at si0 drive 16 flags 0
disk sd6 at si0 drive 24 flags 0
controller sc0 at vme24d16 ? csr 0x200000 priority 2 vector scintr 0x40
disk sd0 at sc0 drive 0 flags 0
disk sd1 at sc0 drive 1 flags 0
disk sd2 at sc0 drive 8 flags 0
disk sd3 at sc0 drive 9 flags 0
disk sd4 at sc0 drive 16 flags 0
disk sd6 at sc0 drive 24 flags 0
**CONFIG - SPARCsystem 330 and SUN-3/80 SYSTEMS
controller sm0 at obio ? csr 0xfa000000 priority 2
disk sd0 at sm0 drive 0 flags 0
disk sd1 at sm0 drive 1 flags 0
disk sd2 at sm0 drive 8 flags 0
disk sd3 at sm0 drive 9 flags 0
disk sd4 at sm0 drive 16 flags 0
disk sd6 at sm0 drive 24 flags 0
**CONFIG - SUN-4/110 SYSTEM
controller sw0 at obio 2 csr 0xa000000 priority 2
disk sd0 at sw0 drive 0 flags 0
disk sd1 at sw0 drive 1 flags 0
disk sd2 at sw0 drive 8 flags 0
disk sd3 at sw0 drive 9 flags 0
disk sd4 at sw0 drive 16 flags 0
disk sd6 at sw0 drive 24 flags 0
**CONFIG - SUN-3/E SYSTEM
controller se0 at vme24d16 ? csr 0x300000 priority 2 vector se_intr 0x40
disk sd0 at se0 drive 0 flags 0
disk sd1 at se0 drive 1 flags 0
disk sd2 at se0 drive 8 flags 0
disk sd3 at se0 drive 9 flags 0
**CONFIG - Sun386i
controller wds0 at obmem ? csr 0xFB000000 dmachan 7 irq 16 priority 2
disk sd0 at wds0 drive 0 flags 0
disk sd1 at wds0 drive 8 flags 0
disk sd2 at wds0 drive 16 flags 0
**CONFIG - Desktop SPARCsystems
device-driver esp
scsibus0 at esp
disk sd0 at scsibus0 target 3 lun 0
disk sd1 at scsibus0 target 1 lun 0
disk sd2 at scsibus0 target 2 lun 0
disk sd3 at scsibus0 target 0 lun 0
**CONFIG - SPARCsystem 600MP SERIES
device-driver esp
scsibus0 at esp
disk sd0 at scsibus0 target 3 lun 0
disk sd1 at scsibus0 target 1 lun 0
disk sd2 at scsibus0 target 2 lun 0
disk sd3 at scsibus0 target 0 lun 0
disk sd16 at scsibus0 target 5 lun 0
scsibus1 at esp
disk sd4 at scsibus1 target 3 lun 0
disk sd5 at scsibus1 target 1 lun 0
disk sd6 at scsibus1 target 2 lun 0
disk sd7 at scsibus1 target 0 lun 0
scsibus2 at esp
disk sd8 at scsibus2 target 3 lun 0
disk sd9 at scsibus2 target 1 lun 0
disk sd10 at scsibus2 target 2 lun 0
disk sd11 at scsibus2 target 0 lun 0
scsibus3 at esp
disk sd12 at scsibus3 target 3 lun 0
disk sd13 at scsibus3 target 1 lun 0
disk sd14 at scsibus3 target 2 lun 0
disk sd15 at scsibus3 target 0 lun 0
scsibus4 at esp
disk sd16 at scsibus4 target 3 lun 0
disk sd17 at scsibus4 target 1 lun 0
disk sd18 at scsibus4 target 2 lun 0
disk sd19 at scsibus4 target 0 lun 0
*** DESCRIPTION ***
- minor device numbers 0 ºÎÅÍ 7 ±îÁö·ÎµÈ FilÀº drive 0ÀÇ ¿©·¯ ºÎºÐ¿¡ °üÇØ ¾ð±Þ
Çϰí ÀÖ´Ù.
- Ç¥ÁØ device À̸§µéÀº "sd"·Î ½ÃÀÛÇϸç, drive number¿Í a-h ¹®ÀÚ(partitions 0-7)·Î Ç¥½ÃµÈ´Ù.
- ¹®ÀÚ ? ´Â 0-20 ±îÁöÀÇ drive number ¸¦ ÀǹÌÇÑ´Ù.
- block-filesÀº system ÀÇ normal buffering mechanism À» ÀÌ¿ëÇÏ¿© disk¸¦ access.
¶ÇÇÑ ¹°¸®ÀûÀÎ disk ±â·ÏÀÌ ¾øÀÌ read¿Í write°¡ ¼öÇàµÈ´Ù.
- disk ¿Í user's read or write buffer »çÀÌÀÇ Á÷Á¢ÀûÀÎ transmissionÀ» Á¦°øÇϱâ
À§ÇØ "raw" interface°¡ Á¸ÀçÇÑ´Ù.
- A single read ³ª write call Àº ÇÑ I/O µ¿ÀÛÀ» ¾ß±â½ÃÄÑÁØ´Ù.
±×·¯¹Ç·Î raw I/O´Â ¸¹Àº bytes µéÀÌ Àü¼ÛµÉ¶§ º¸´Ù È¿°úÀûÀÌ´Ù.
Æí¸®ÇÏ°Ô raw filesµéÀÇ À̸§Àº `r.'·Î ½ÃÀÛÇÑ´Ù.
- SCSI disk¿¡ ´ëÇÑ I/O requestsµéÀº ÇϳªÀÇ offset À» ¼ÒÀ¯ÇØ¾ß Çϴµ¥ ÀÌ´Â 512 bytes (DEV_BSIZE)ÀÇ ¹è¼ö·Î µÇ¾îÀÖ´Ù.
±×·¸Áö¾ÊÀ¸¸é EINVAL error ¸¦ returnÇϰԵȴÙ.
-¸¸¾à Àü¼Û±æÀÌ(transfer length)°¡ 512 bytesÀÇ ¹è¼ö°¡ ¾Æ´Ï¸é transfer count´Â
driver¿¡ÀÇÇØ 󸮵ȴÙ.
**** Disk Support ****
- ÀÌdriver(esp)´Â ST-506 drives¸¦ Adaptec ACB-4000 disk controller°¡ HandlingÇϰí
ESDI drives,embedded, CCS-compatible SCSI disk drives ¸¦ Emulex MD21 disk controller°¡ handlingÇÑ´Ù.
- Sun386i ¿Í Desktop SPARCsystems¿¡¼ ÀÌ driver´Â CDC Wren III half-height¸¦
Áö¿øÇϰí,Wren IV full-height SCSI disk drives ¸¦ Áö¿øÇÑ´Ù.
- SPARCsystem 600MP series ´Â ¶ÇÇÑ Seagate Elite SCSI drive¸¦ Áö¿øÇÑ´Ù.
- disk drive ÀÇ type Àº SCSI inquiry command ( SCSI Á¶È¸ ¸í·É¾î)À» »ç¿ëÇÏ¿©
°áÁ¤µÇ°Å³ª, driveÀÇ block 0¿¡ ÀúÀå µÇ¾îÀÖ´Â volume labelÀ» readingÇÏ¿© °áÁ¤µÈ´Ù.
- volume labelÀº disk geometry ¿Í partitioning¿¡ °üÇØ ±â¼úÇϰí Àִµ¥
ÀÌ´Â ¹Ýµå½Ã ÀÖ¾î¾ßÇϸç, diskÀÇ ÀÌ¿µ¿ªÀº system¿¡ ÀÇÇØ mountµÉ ¼ö ¾ø´Ù.