MVDEVS(1M)
Series 300, 500 Only
NAME
mvdevs − move mass storage device files to /dev subdirectories
SYNOPSIS
/etc/mvdevs [ −ivlu ]
DESCRIPTION
This command is provided to assist the HP-UX system administrator in relocating device files for magnetic storage media (hard and floppy disks, magnetic and cartridge tapes) to the newly supported device subdirectories /dev/[r]dsk, /dev/rmt, /dev/[r]ct. The command creates the new directories, taking care not to destroy existing device files with the same names, and moves all supported magnetic storage devices to these new locations, renaming them with the newly adopted naming conventions for HP-UX devices as it does so.
A full discussion of the new naming convention is contained in intro(7), disk(7), ct(7), mt(7) and in the HP-UX System Adminstrator Manual.
This command also automatically edits the /etc/backup and /etc/backupf scripts as well as the /etc/checklist data file, changing all occurances of the old names to the new ones. It also leaves a script, /etc/sed.mvdevs, which can be used to perform the same editing function on any user-written files that depend upon the absolute names of device files. To edit user-written files using the sed script, execute the sed command as follows:
sed −f /etc/sed.mvdevs source_file > dest_file
This command copies source_file to dest_file, changing any occurrences of old device file names so that they conform to the new file naming convention.
Mvdevs attempts to retain the function of specific devices. For example, /dev/rmt8 (the old default device for the tar(1) command) is moved to /dev/rmt/0m (the new default device for tar). Similarly, /dev/rmt12 is moved to /dev/rmt/0mn, the new default for the mt(1) command.
Mvdevs interogates CS/80 and SS/80 mass storage devices to determine their type, then selects a subdirectory for placement. For this reason, devices should be connected and power applied before running this program.
While it is not mandatory that mvdevs be used to move devices, it is strongly recommended because the old device locations in /dev are considered obsolete and some commands may not work with them in future releases.
The options are:
−i Move files in interactive mode. The user is asked to verify each move. If the default name is not acknowledged, the user is prompted to provide a name, skip the file, or abort the program.
−v Verbose mode. Print out details of all actions taken.
−l Use long names instead of the short names. Devices will be assigned the full name described in Section 4 of the HP-UX Reference. For example, disk /dev/hd1 with a minor number of 0x0e0200 will be moved to /dev/dsk/c1402d0s0 instead of /dev/dsk/1s0. Note that /dev/root will still be moved to /dev/dsk/0s0, since its minor number is derived at boot time. Use of this option defeats the rational naming of magnetic tape devices expected by tar(1) and mt(1).
−u Undo all changes made by the last previously executed mvdevs command. Mvdevs maintains a log of all changes made in file /etc/mvdevs.log. The contents of that file are then used by the −u option to reverse the previous changes. If the file does not exist or is empty, no changes are made.
WARNINGS
Mvdevs is a temporary conversion tool to assist in adopting the new device naming conventions for magnetic storage devices. It may not be supported in subsequent releases.
FILES
/etc/sed.mvdevs File containing sed commands that can be used to edit user files containing references to device files that were changed by the mvdevs command.
/etc/mvdevs.log File containing a record of all changes made by mvdevs command. This file is used by the −u option when reversing changes from a previous mvdevs command. The −u option removes this file when finished.
SEE ALSO
intro(7), disk(7), ct(7), mt(7), sed(1).
HP-UX System Adminstrator Manual.
Hewlett-Packard Company — May 11, 2021