Are these all IBM LTO drives using the lin_tape driver? My experience on RHEL7 w/ FC-attached drives is that the devices show up automatically, though I can't remember if it removes them if the drive falls off the fabric. I suspect not, just so that a transient problem doesn't leave the system in an inconsistent state. You might try unloading the kernel module to get rid of the devices:
modprobe -r lin_tape And then ask udev to reprocess its rules and clean up device links it can't find: udevadm trigger That assumes the WWNs of the drives in your udev rules don't need updating. At that point, you ought to be able to re-load lin_tape: modprobe lin_tape If you're having trouble getting the drives to show up afterwards, you might try a FC LIP: echo 1 > /sys/class/fc_host/hostX/issue_lip Followed by a SCSI rescan: echo "- - -" > /sys/class/scsi_host/hostN/scan On Thu, Feb 02, 2023 at 03:38:21PM +0000, Loon, Eric van (ITOP DI) - KLM wrote: > Hi everybody, > > I'm having some issues with missing persistent names after a HBA replacement > on a Linux server. I like to remove all tape devices, so all /dev/IBMTape*, > all /dev/lin_tape/by-id/drive* devices and the SCSI devices. What is the > proper way to do that in Linux? > Afterwards, I like to run a SCSI rescan to have everything redefined, so I > can start with a clean sheet. > Thanks for any help in advance! > > Kind regards, > Eric van Loon > Air France/KLM > ******************************************************** > For information, services and offers, please visit our web site: > https://urldefense.com/v3/__http://www.klm.com__;!!K-Hz7m0Vt54!mj3-YqICmARjV6b_WPIXbqoM-r_YP44rh-TgAQqwCFuCBlztgWcHLVxjPSTXJa99xAcg2QUJQVSJle1GprJKpQ$ > . This e-mail and any attachment may contain confidential and privileged > material intended for the addressee only. If you are not the addressee, you > are notified that no part of the e-mail or any attachment may be disclosed, > copied or distributed, and that any other action related to this e-mail or > attachment is strictly prohibited, and may be unlawful. If you have received > this e-mail by error, please notify the sender immediately by return e-mail, > and delete this message. > > Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its > employees shall not be liable for the incorrect or incomplete transmission of > this e-mail or any attachments, nor responsible for any delay in receipt. > Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch > Airlines) is registered in Amstelveen, The Netherlands, with registered > number 33014286 > ******************************************************** -- -- Skylar Thompson (skyl...@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His