Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] automating SCSI (SATA) device add/remove



Hi. I'm not sure with the first one, but maybe these are what you're
looking for?

  echo "- - -" > $(dirname $(grep -lx 4
/sys/class/scsi_host/host*/unique_id))/scan
  echo 1 > /sys/block/sdc/device/delete

> But I'd really prefer smarter approach, a command line (assuming I am
> OK to do the off-by-one math).
>
>>> Can you point me to an easier way/command to do the following:
>>>
>>> 1. (attach) When I see "ata5: hard resetting link" do COMMAND ata5 and
>>> have it rescan the host
>>> 2. (detach) When I want to detach sdf, do COMMAND2 sdf and have it
>>> powered down and remove the device from kernel


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links