- 论坛徽章:
- 0
|
如果是rh的
首先
[root@blc2 proc]# more scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Promise Model: 8 Disk RAID5 Rev: 1.10
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 16 Lun: 00
Vendor: Promise Model: RAID Console Rev: 1.00
Type: Processor ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: Promise Model: 8 Disk RAID5 Rev: 1.10
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 16 Lun: 00
Vendor: Promise Model: RAID Console Rev: 1.00
Type: Processor ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD1600JS-22N Rev: 10.0
Type: Direct-Access ANSI SCSI revision: 05
你那上边有相关位置的显示的
然后用
echo "scsi add-single-device * * * * ">/proc/scsi/scsi
具体如下:
Assuming that you have the necessary permissions for writing to /proc/scsi/scsi. The following are some individual commands available for viewing/manipulating scsi controllers and devices:
* echo "scsi add-single-device <H> <C> <I> <L>" > /proc/scsi/scsi where <H> <C> <I> <L> represents Host <H>, Channel <C>, Id <I>, and Lun <L>. Will add the device specified so that it is accessible to the system.
* echo "scsi remove-single-device <H> <C> <I> <L>" > /proc/scsi/scsi where <H> <C> <I> <L> represents Host <H>, Channel <C>, Id <I>, and Lun <L>. Will remove the device specified so that it is no longer accessible to the system.
* echo "scsi scan-new-devices" > /proc/scsi/scsi will scan all host adapters again to see if there are any new devices.
* echo "scsi dump <#>" > /proc/scsi/scsi will dump the status of all current SCSI commands. <#> is the number specifing the level of detail for the dump, 0-9 are valid.
* echo "scsi log <T> <#>" > /proc/scsi/scsi will change the detail level of SCSI logging represented by <T> of error, scan, mlqueue, mlcomplete, llqueue, llcomplete, hlqueue, or hlcomplete, to the level specified by the <#> number.
然后就能有了 |
|