Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] automating SCSI (SATA) device add/remove
- Date: Mon, 6 Dec 2010 19:39:11 +0900
- From: Taisuke Yamada <tai@example.com>
- Subject: Re: [tlug] automating SCSI (SATA) device add/remove
- References: <AANLkTimyuai7h7eJyYSuGXVHGPBqir5bBzJX5v8bgxdC@example.com> <BDAC8152-59C0-46F5-BF50-0D0187746719@example.com> <AANLkTim1n7bLBLn=ZrPd+3Tzi0r8yQsGqdFFoTXqxKCq@example.com>
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
- References:
- [tlug] automating SCSI (SATA) device add/remove
- From: Kalin KOZHUHAROV
- Re: [tlug] automating SCSI (SATA) device add/remove
- From: Jawaad Mahmood
- Re: [tlug] automating SCSI (SATA) device add/remove
- From: Kalin KOZHUHAROV
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] automating SCSI (SATA) device add/remove
- Next by Date: [tlug] [announcement] nomikai December 17 (Friday)
- Previous by thread: Re: [tlug] automating SCSI (SATA) device add/remove
- Next by thread: [tlug] [announcement] nomikai December 17 (Friday)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links