dcopy(1M) — Series 800 Only
NAME
dcopy − copy file system with compaction.
SYNOPSIS
dcopy -v|-f fsize[ :isize ] | -scyl:skip | -d source_fs destination_fs
DESCRIPTION
dcopy copies an existing file system (source_fs) to a new file system (destination_fs), appropriately sized to hold the reorganized results. For best results, source file system should be a raw device, and the destination file system should be a block device. Always run dcopy on unmounted file systems (in the case of the root file system, copy to a new minidisk).
If no options are specified, dcopy copies files from source_fs, compressing directories by removing vacant entries and spacing consecutive blocks in a file by the optimal rotational gap. If options such as -f or -s are specified, the destination file system structure will be different from that of the source file system.
dcopy makes the destination file system identical to the source file system and preserves the pack and volume labels. Thus, to compress a file system without moving it, use dcopy to copy the files to another file system and dd to copy the file back (see dd(1)).
Directory compression is accomplished by running dcopy on the primary copy of the file system and allowing the modified directories to propagate to the other copies of the file system in the normal manner.
Options
dcopy recognizes the following options and command-line arguments:
-ffsize[:isize] Specifies the file system and inode-list size in blocks. If this option is not specified, the source file-system value is used.
-scyl:skip Supply device information for creating the best organization of blocks in a file. cyl is the number of block per cylinder; skip is the number of blocks to skip.
-v Report size of source and destination file system.
-d source_fs Move subdirectories to the beginning of directories.
EXAMPLES
dcopy can be executed with or without options. If no options are specified as in this example, source and destination file systems are identical. Any differences between the two file systems lie only in the available disk space.
dcopy /dev/rdsk/c2d0s4 /dev/dsk/c2d0s5
If options are specified, expect a major difference between the source and destination file system structure:
dcopy -f40960:260 -s45:5 -d /dev/rdsk/c2d0s4 /dev/dsk/c2d0s5
WARNINGS
dcopy produces invalid results if run on a mounted file system. dcopy Figures specified in option arguments cannot be smaller than corresponding figures in the source file system.
AUTHOR
dcopy was developed by HP.
Hewlett-Packard Company — HP-UX Release 9.0: August 1992