RESCAN-SCSI-BUS.SH(8)

πŸ“¦ version 0.12, in ubuntu jammy

πŸ‘‘ 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 LUNs 0 .. 7 (default is just 0). she's expanding her horizons πŸ’«
  • -L NUM β€” turns on scanning for LUNs 0 .. 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 IDs 0 .. 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 channels 0 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 if 0 is not found. she does NOT quit early, she keeps searching, she's committed 🫑
  • --color β€” use coloured prefixes OLD/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 πŸ™βœ¨


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