RESCAN-SCSI-BUS.SH(8)
π rescan-scsi-bus.sh β the manual, but make it cute π
okay bestie, welcome to RESCAN-SCSI-BUS.SH(8), straight out of the System Manager's Manual section. yes we're doing manpage lore today. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
rescan-scsi-bus.sh β rescan the SCSI bus. that's it. that's the whole vibe. it rescans the SCSI bus. iconic behavior honestly π¦
πΈ SYNOPSIS πΈ
rescan-scsi-bus.sh [ -l ] [ -w ] [ -c ] [ -r ] [ host... ]
π DESCRIPTION π
so rescan-scsi-bus.sh is a program (a whole entire program, we love her) that rescans the SCSI bus. and the way she does it?? she uses the SCSI add-single-device feature of the Linux SCSI layer. no cap. that's the mechanism, that's the tea, that's the whole plot π«Ά
π OPTIONS π
the way that there are SO many flags and every single one of them matters. let's go one by one, no skipping, periodt π
-lβ turns on scanning for LUNs0 .. 7(default is just0). she's expanding her horizons π«-L NUMβ turns on scanning for LUNs0 .. LUN(default:0). you give her the number, she gives you the LUNs.--luns=LISTβ scan only the LUNs in LIST. selective queen π-wβ enables scanning for device IDs0 .. 15(default:0 .. 7). more IDs, more drama.--ids=LISTβ scan only the device IDs in LIST.-i,--issue-lipβ issue a FibreChannel LIP reset (default: disabled). big move. very main character. she's not doing this unless you ask β¨-r,--removeβ enables removing of devices (default: disabled). breaking up is hard but sometimes necessary π--forceremoveβ remove and readd every device. > β οΈ this one is dangerous. like, for real dangerous. do not just vibe into this one, bestie. she said what she said π-cβ enables scanning of channels0 1(default:0).--channels=LISTβ scan only the channels in LIST.host,--hosts=LISTβ if host adapters are given, only these are scanned (default: all). pick your faves π--nooptscanβ don't stop looking for LUNs if0is not found. she does NOT quit early, she keeps searching, she's committed π«‘--colorβ use coloured prefixesOLD/NEW/DEL. aesthetic AND functional, we love to see it π
one more thing, and this one's important so i'm putting it on its own line like the queen it is:
LIST is a comma separated list of single values and ranges β no spaces allowed β for example:
0,2-3,8,10-15
π¦ AUTHOR π¦
rescan-scsi-bus.sh was written by Kurt Garloff <garloff@suse.de>. absolute legend behavior, we thank him for his service πβ¨
π§ COPYRIGHT π§
this program is free software π you can use it under the terms of the GNU GPL (General Public License) Version 2 β or any later version, at your option, because she's flexible like that.
β οΈ note that the GNU GPL implies that there is NO WARRANTY at all. like none. zero. nada. don't come for her if something breaks π
the full text of the GPL can be found in the /usr/share/common-licenses/GPL file. go read it if you're feeling scholarly π
π AVAILABILITY π
rescan-scsi-bus.sh is available from:
http://www.garloff.de/kurt/linux/scsidev/
and that's the whole page, bestie!! π this one's dated March 1998, from the System Manager's Manual, and it lives at RESCAN-SCSI-BUS.SH(8). go forth and rescan your bus responsibly π
π¦β¨
π¦ where this page comes from
- ubuntu jammy: scsitools 0.12-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms