From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96940001726448.tru64-unix-managers.marc@archive.invalid> From: "Todd B. Acheson" Date: Tue, 19 Sep 2000 21:50:03 +0000 To: tru64-unix-managers Subject: Summary: 5.0A ethernet device naming problems X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96940001726448 The solution we used to remap the tu devices: First Step: Removal Remove hardware persistence entries from the database but does not affect any hardware component currently using the name. It only affects the persistence of the name across reboots. hwmgr -remove name -entry tu0 hwmgr -remove name -entry tu1 hwmgr -remove name -entry tu2 hwmgr -remove name -entry tu3 hwmgr -remove name -entry tu4 hwmgr -remove name -entry tu5 hwmgr -remove name -entry tu6 hwmgr -remove name -entry tu7 Second Step: Deletion Deletes the hardware component from all system databases. hwmgr -delete name -entry tu0 hwmgr -delete name -entry tu1 hwmgr -delete name -entry tu2 hwmgr -delete name -entry tu3 Third Step: Reboot Once the machine reboots it rebuild the device database recreating tu0, tu1, tu2, tu3. It will then mark tu4, tu5, tu6, tu7 as not being in use which allows hwmgr to delete them from the database. Fourth Step: Deletion hwmgr -delete name -entry tu4 hwmgr -delete name -entry tu5 hwmgr -delete name -entry tu6 hwmgr -delete name -entry tu7 There are two ways to verify that the devices are now correctly configured. 1.) Show current configured devices that map to a slot. hwmgr -show name | grep tu 101: tu3 redbudcm1a CONTROLLER pci2 slot 7 100: tu2 redbudcm1a CONTROLLER pci2 slot 6 99: tu1 redbudcm1a CONTROLLER pci2 slot 5 98: tu0 redbudcm1a CONTROLLER pci2 slot 4 2.) Show all components even the devices that are not mapped to a controller. hwmgr -show components full | grep tu 98: redbudcm1a r---- none tu0 99: redbudcm1a r---- none tu1 100: redbudcm1a r---- none tu2 101: redbudcm1a r---- none tu3 NOTE: You should no longer see tu4-tu7. There was a lot of interest in this issue. Compaq support is pretty unprepared in this area. another method that probably works but we didn't test was to use: dsfmgr -m tu0 tu4 A couple of suggestions pointed us at exploring the scripts executed at boot time (bcheckrc in particular), which sounds promising. Another suggestion was to move the ROM with the ethernet addresses on it from the failed board to the new board which should have eliminated the creation of the new "tu" entries. We didn't try this. Input came from the following folks: dkleinh@phy.ucsf.edu jbarriau@endeavor.dwc.edu speno@lopan.isc-net.upenn.edu Niels.Roetert@pqr.nl HarkemaA@vertis.nl LAUER@hepmail.physics.yale.edu nayle@ncsbah.com "Dr. Tom Blinn, 603-884-0646" The original problem description : > I have run into a problem in 5.0a with hardware device naming. > > I have a system (5.0A cluster) with a quad ethernet card DE504 in one > of the machines. The card failed and I replaced it with the same model > card in the same slot. Originally the devices were named tu0 - tu3. > After replacing the card the devices for the card were now tu4 - tu7. > > I would like to again have the devices named tu0 - tu4. > > How can I do this? > > The man page for hwmgr implies that I can use hwmgr to delete devices > and then they can be renumbered: > > > -delete name > Deletes a hardware persistence entry. When you delete a hardware com- > ponent it cannot be used. For example, if the system has a network > adapter named tu0 and you add a second network adapter in a lower slot, > the new adapter will be automatically named tu1. However, if you > delete tu0 then both adapters will be automatically renamed in the > order they are discovered (when the system probes buses and controll- > ers). The new network adapter in the lower slot becomes tu0 and the > original adapter is renamed to tu1. (See also the -remove operation.) > > I can delete the tu0 - tu3, but cannot delete tu4 which is the running > port and in any event the man page does not explain how to initiate a > bus probe. > > ---------------------- Todd Acheson 740 593-0034 acheson@ohiou.edu