rmsf.1m (2011 09)

r
rmsf(1M) rmsf(1M)
With the -L option, rmsf disables the legacy naming model, removing all legacy I/O nodes and their dev-
ice special files from the system.
If the
-u and -H
options are specified, rmsf performs an unbind on the driver associated with the given
hw_path . The hw_path must be a LUN hardware path (see intro (7)).
The
-x option removes stale device special files and the stale IO nodes from the system. A specific stale
hw_path can be specified with
-H. If the given node has children, all the children devices will be
removed. Note that when
-H is used, no special files will be removed. Stale device special files can be
displayed using the lssf command with -s
option (see lssf (1M)).
Note that most drivers do not support the ability to be removed from the system.
If the device being removed from the system uses a dynamically assigned major number, that number will
be freed up for future allocation only when used with
-m option.
Options
rmsf recognizes the following options:
-a Remove the definition of the device from the system along with all special files that
refer to the device. This option cannot be used with
-k.
-c Initiates and displays the Critical Resource Analysis (CRA) report. The
-q (quiet)
option can be used to suppress the CRA report. Also note that this option cannot be
used in single user mode.
-C class Match devices that belong to a given device class, class . Device classes can be listed
with the lsdev command (see lsdev (1M)). This option cannot be used with -d.
-d driver Match devices that are controlled by the specified device driver, driver .Device
drivers can be listed with the
lsdev command (see lsdev (1M)). This option cannot
be used with -C.
-D directory Override the default device installation directory /dev and remove the special files
from directory instead. directory must exist; otherwise, rmsf displays an error
message and exits. See WARNINGS .
-H hw_path Match devices at a given hardware path, hw-path. Hardware paths can be listed
with the ioscan command (see ioscan (1M)).
A hardware path specifies the addresses of the hardware components leading to a
device. It consists of a string of numbers separated by periods (
.), such as
52 (a
card),
52.3 (a target address), and 52.3.0 (a device).
If a hardware component is a bus converter, the following period, if any, is replaced
by a slash (
/)asin2, 2/3, and 2/3.0. In the agile view (see intro (7)), the devices
will have new hardware path formats, which can be displayed with the
ioscan -N
command (see ioscan (1M)).
See WARNINGS section for more about using this option for critical resources.
-k Remove the definition of the device from the system, but not any special files. This
option cannot be used with -a.
-L Disable legacy naming model. This command removes all legacy I/O nodes and
their device special files. Also this command removes legacy stale device special
files found in the following directories:
/dev/dsk /dev/rdsk /dev/rmt /dev/ct
/dev/floppy /dev/rfloppy /dev/rscsi
Therefore, before running this command, all applications should have been
migrated to use the agile naming model.
The
iofind command (see iofind(1M)) can be used to find all the ASCII files on
the system containing legacy device file names or hardware paths.
The
rmsf -L command will not complete successfully if any legacy I/O nodes are
in the open state. If this is the case, the command will fail and it will return infor-
mation about the processes that opened the legacy I/O nodes, such as process name,
PID, and device special file.
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2011