Professional Documents
Culture Documents
Overview
Things will generally work fine until you decide to remove or move a
device in the system. I have had situations where I have run out of devices
on a host because of Sun's poor ability to remove invalid (hanging) disk
device files after removing a device. This is one area where Sun could
really improve. It looks like they are trying new things with the boot -p
option but I've only ever seen it remove things once.
There are other times when I simply wanted to replace a certain type of
SCSI controller and wanted to reuse the controller ID's from a previously
removed card. For example, I have a host (an E450) which had 2 internal
controllers (0 and 1) and a dual differential SCSI card installed
(controllers 2 and 3). I removed the dual differential SCSI host adapter
and decided to replace it with a Single-Ended SCSI host adapter but
Solaris would always assign them controller numbers 4 and 5. I wanted
the system to reassign controller numbers 2 and 3 for the new host adapter
but links still existed for the original dual differential SCSI host adapter.
The devfsadm command was introduced with Solaris 7 and can be found
in /usr/sbin/devfsadm. This command is used to maintain the /dev and
/devices namespaces. The devfsadm command replaces the previous
suite of devfs administration tools including drvconfig(1M), disks(1M),
tapes(1M), ports(1M), audlinks(1M), and devlinks(1M). To maintain
backwards compatibility, all previous devfs commands are hard links to
devfsadm.
# devfsadm -C
to invoke the cleanup routines that are not normally invoked to remove
dangling logical links.
Manual Methods
The devfsadm command was introduced with Solaris 7. For those running
older versions of Solaris (i.e. Solaris 2.6) or simply want to perform all
manual steps, this section describes the procedures to do just that.
ok boot -srv