DCOPY(8,C) AIX Commands Reference DCOPY(8,C) ------------------------------------------------------------------------------- dcopy PURPOSE Copies file systems for the best access time. SYNTAX +----------------+ +-- -a7 --+ +-------------------+ dcopy -| +------------+ |--| |--+- -ffsize 1-+- oldfs - newfs -| +-| -d |-+ +- -anum -+ +- -ffsize : isize -+ ^| -v || || -sCyl:skip || |+------------+| +--------------+ ----------------- 1 If not specified, the values from oldfs are used. DESCRIPTION Warning: oldfs and newfs must not refer to the same minidisk. Doing so will destroy the old file system. The dcopy command copies an existing file system oldfs to a new file system newfs, appropriately sized to hold the reorganized results. For best results, oldfs should be the raw device, and newfs should be the block device. If oldfs or newfs is a file system name, dcopy uses the corresponding block device given in /etc/filesystems. You should run dcopy on unmounted file systems (in the case of the root file system, copy to a new minidisk). If you do not specify any flags, dcopy copies files from oldfs, compressing directories by removing vacant entries and spacing consecutive blocks in a file by the optimal rotational gap. The dcopy command makes newfs identical to oldfs and preserves the pack and volume labels. Thus, to compress a file system without moving it, use the dcopy command to copy the file to another file system and the dd command to copy the file back. The dcopy command catches INTERRUPT and QUIT signals and reports on its progress. To end dcopy, send a QUIT signal (Ctrl-\) and dcopy no longer catches INTERRUPT or QUIT. dcopy also attempts to modify its command line arguments so that its progress can be monitored with the ps command. Processed November 8, 1990 DCOPY(8,C) 1 DCOPY(8,C) AIX Commands Reference DCOPY(8,C) Note: If the Transparent Computing Facility is installed and dcopy is run on a non-primary copy of a replicated file system, dcopy will not perform directory compression. Directory compression on replicated file systems 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. Also, when dcopy is performed on a replicated file system the original inode numbers are preserved to avoid unnecessary propagation. On a non-replicated file system inode numbers are changed to use the lowest set of inodes. Warning: When run on a mounted primary copy of a replicated file system, it is important to guarantee that no updates to the file system are made while the dcopy operation is in progress or until the copied file system replaces the original. Failure to insure that updates do not occur can result in inconsistencies between the new primary copy of the file system and its other non-primary copies. For this reason, it is highly advised that a dcopy on a primary copy of a file system that cannot be unmounted be done while the system is in single-user state with cluster communications disabled (see the clusterstop command) and absence of updates can be reasonably guaranteed. FLAGS -anum Places files not accessed in the specified number of days after the free blocks of the destination file system. The default value of num is 7. If you do not specify num, no files are moved. -d Leaves the order of directory entries as is. If you do not specify this flag, dcopy moves subdirectories to the beginning of directories. -ffsize[:isize] Specifies the file system and inode list sizes (in blocks). If not specified, the value from oldfs is used. -scyl:skip Supplies device information for creating the best organization of blocks in a file, where cyl is the number of block per cylinder and skip is the number of blocks to skip. -v Reports how many files were processed and how big the source and destination free lists are. RELATED INFORMATION See the following commands: "fsck, dfsck" and "mkfs." Processed November 8, 1990 DCOPY(8,C) 2