![]() |
s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
4. What Are The Requirements To Use It?
4.1 Kernel ConfigurationYou must have a supported SCSI controller, obviously. Furthermore,
your kernel must have controller support as well as generic support
compiled in. Configuring the Linux kernel (via
If available, modules can of course be build instead.
4.2 Device FilesThe generic SCSI driver uses its own device files, separate from those
used by the other SCSI device drivers. They can be generated using
the
Note that these are character devices for raw access. On some systems
these devices may be called
4.3 Device MappingThese device files are dynamically mapped to SCSI id/LUNs on your SCSI bus (LUN = logical unit). The mapping allocates devices consecutively for each LUN of each device on each SCSI bus found at time of the SCSI scan, beginning at the lower LUNs/ids/buses. It starts with the first SCSI controller and continues without interruption with all following controllers. This is currently done in the initialisation of the SCSI driver. For example, assuming you had three SCSI devices hooked up with ids 1, 3, and 5 on the first SCSI bus (each having one LUN), then the following mapping would be in effect:
If you now add a new device with id 4, then the mapping (after the next rescan) will be:
Notice the change for id 5 -- the corresponding device is no longer
mapped to Luckily newer kernels allow for changing this order.
Dynamically insert and remove SCSI devicesIf a newer kernel and the To remove a SCSI device:
and similar, to add a SCSI device, do
where
So in order to swap the
since generic devices are mapped in the order of their insertion. When adding more devices to the scsi bus keep in mind there are limited spare entries for new devices. The memory has been allocated at boot time and has room for 2 more devices.
Next Previous Contents |