Rajat Jain, Noida [EMAIL PROTECTED] wrote: > Linux 2.6 ????? Uhh .... I thought you did not wanted to REBOOT the > system???? > > > The command syntax is same. Devices can be removed using the following > command: > > echo "scsi remove-single-device <h> <b> <t> <l>" > /proc/scsi/scsi > > where the variables are host, bus (channel), target (scsi id) and lun. >
on 2.6 you can use the sysfs attributes to add and delete devices. echo "1" > scsi/devices/1:0:0:0/delete to delete a device. echo "- - -" > class/scsi_host/host0/scan to scan a host. You can alter the "-" wild cards if you want to scan a smaller set of targets / luns . Also using this scan method allows a report luns command to be sent out. -andmike -- Michael Anderson [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

