
Device reconfiguration procedures
163
Additional Notes
The unloading of the module can be done with either the
modprobe (with the -r switch) or rmmod command. These
commands are used to unload the loadable modules from the
running kernel if they are not in use and if other modules are not
dependent on them.
Echoing the /proc filesystem
If the /proc filesystem is enabled in the kernel, echoing the /proc can
be used to add and/or remove single SCSI devices. To add a device,
you must first identify the host, channel, target ID and LUN numbers
for the device to be added to
/proc/scsi/scsi.
The command to be run follows this format:
echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi
where:
0 is the host ID.
1 is the channel ID.
2 is the target ID.
3 is the LUN.
This command will add the new device to the file
/proc/scsi/scsi.
If one does not already exist, a device file name may need to be
created via for this newly added device in the
/dev directory.
To remove a device, use the appropriate host, channel, target ID, and
LUN numbers and issue a command similar to the following:
echo "scsi remove-single-device 0 1 2 3" > /proc/scsi/scsi
where:
0 is the host ID.
1 is the channel ID.
2 is the target ID.
3 is the LUN.
Komentarze do niniejszej Instrukcji