[clue] Re-scanning SATA disks with rebooting

Chris Fedde chris at fedde.us
Fri Jul 18 11:29:57 MDT 2014


iirc  I have something like that in one of my SAN procedures....

== Disk rescan via the FC_HOST ==

 for f in /sys/class/fc_host/*/issue_lip; do echo 'l' > $f; done

so very similar


On Fri, Jul 18, 2014 at 11:16 AM, David L. Willson <DLWillson at thegeek.nu>
wrote:

> # # This is purported to work in Debian* (which includes Ubuntu)
> # # It actually *did* work for me on Ubuntu Precise
> # # I found it at:
> http://www.debuntu.org/how-to-rescan-a-scsi-bus-without-rebooting/
> # # Credit to Michael Zieher
>
> # for i in /sys/class/scsi_host/*; do echo '- - -' > $i/scan; done
>
>
> === console log ===
>
> root at pbuild04:~# lsb_release -v
> No LSB modules are available.
> root at pbuild04:~# cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=12.04
> DISTRIB_CODENAME=precise
> DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
> root at pbuild04:~# lsb_release -c
> Codename:       precise
> root at pbuild04:~# for i in /sys/class/scsi_host/*; do echo '- - -' >
> $i/scan; done
> root at pbuild04:~#
>
>
> --
> David L. Willson
> Teacher, Engineer, Evangelist
> RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 UbuntuCP NovellCLA
> Mobile 720-333-LANS(5267)
> http://sofree.us
>
> This is a good time for a r3VOLution.
>
>
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20140718/82908ad6/attachment.html 


More information about the clue mailing list