>>> Mike Christie <[email protected]> schrieb am 27.08.2014 um 23:49 in Nachricht <[email protected]>: > On 08/27/2014 02:24 AM, Ulrich Windl wrote: >>>>> Learner Study <[email protected]> schrieb am 27.08.2014 um 02:13 in >> Nachricht >> <CAP8+hKW=HApS+=vxeaaibtbbd7yzndu4squt+84se99aglc...@mail.gmail.com>: >>> Hi Mike, >>> >>> Thanks for suggestions.... >>> >>> I think you meant, >>> >>> echo 1 > /sys/block/sdX/device/delete >>> >>> I don't see /sys/block/sdX/device/remove in my setup. >> >> I'm not sure: Is it "echo offline > /sys/block/sdX/device/state", "echo >> "scsi > remove-single-device" ${host} ${channel} ${id} ${lun} > /proc/scsi/scsi", or > "echo 1 > > /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device/delete" > ? >> > > To delete a device just do > > echo 1 > /sys/block/sdX/device/delete
I think the confusing thing is that you don't see a "delete" in /sys/block/sdX/device. > > You can also do it through proc if it is enabled for your kernel. > > No need to offline the device before deleting. The scsi layer will > handle the device state transitions. > > -- > You received this message because you are subscribed to the Google Groups > "open-iscsi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/open-iscsi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.
