Anchor |
---|
| TopDSSIPageTOCTopDSSIPage |
---|
| TOC |
---|
|
Include Page |
---|
| KBCOMMON:KB-CSSstyle |
---|
| KBCOMMON:KB-CSSstyle |
---|
|
...
This section describes how to find proper "/dev/sg" device for CHARON mapping
...
Include Page |
---|
| KBCOMMON:DOC-GoToToc |
---|
| KBCOMMON:DOC-GoToToc |
---|
|
Procedures of finding the target "/dev/sg" device
First method
In xterm console issue:
# cat /proc/scsi/sg/device_hdr; cat /proc/scsi/sg/devices |
The output will look something like:
host chan id lun type opens qdepth bus online
4 0 0 0 5 1 1 0 1
5 0 0 0 0 1 1 0 1
|
The fifth field ("type") is the device type.
Value | Device |
---|
0 | Disk |
1 | Tape |
5 | CD-ROM |
8 | Tape changer |
The "N" in the "/dev/sgN" is the line number in this table (starting from 0) corresponded to the devices CHARON will use.
Thus "/dev/sg0" will be CD-ROM mapping in this example.
...
Include Page |
---|
| KBCOMMON:DOC-GoToToc |
---|
| KBCOMMON:DOC-GoToToc |
---|
|
Second method
On a freshly booted system please issue the following command:
The output will look like that:
[ 1.503622] sr 4:0:0:0: Attached scsi generic sg0 type 5
[ 1.780897] sd 5:0:0:0: Attached scsi generic sg1 type 0
|
This table lists all the devices, not only the real SCSI ones (SATA/IDE for example). CHARON supports only real SCSI devices.