HP-UX Reference (11i v2 03/08) - 1M System Administration Commands A-M (vol 3)

f
fsadm_vxfs(1M) fsadm_vxfs(1M)
NAME
fsadm_vxfs: fsadm - resize or reorganize a VxFS file system
SYNOPSIS
fsadm [-F vxfs][-V
][-d][-D][-e][-E
][-s][-v][-a days]
[
-k ckpt_name ][-l
largesize][-p passes ][-r rawdev][-t time] mount_point
fsadm [-F vxfs][-V
][-b newsize][-r rawdev] mount_point
fsadm [-F vxfs][-V
][-o largefiles|nolargefiles] mount_point |special
fsadm [-F vxfs][
-V][-c] mount_point
fsadm [-F vxfs][-V
][-d][-D][-e][-E
] -f filename |
DESCRIPTION
fsadm performs online administration functions on VxFS file systems, Storage Checkpoints, or individual
files and directories. fsadm supports file-system resizing, extent reorganization, directory reorganiza-
tion, and querying or changing the largefiles flag.
fsadm operates on file systems mounted for
read/write access, however, the
-o option can also operate on a special device containing a clean,
unmounted file system. Only a privileged user can change the
largefiles flag on a mounted file sys-
tem, or resize or reorganize a file system. You can invoke only one instance of fsadm per file system at a
time.
If mount_point is a Storage Checkpoint,
fsadm performs the specified operation on the entire file system,
including all of its Storage Checkpoints.
VxFS file systems running on HP-UX 10.20 and later contain features that are incompatible with earlier
versions of HP-UX and applications. These features are large files (file sizes greater than two gigabytes),
and hierarchical storage management via the DMAPI (Data Management Applications Programming
Interface).
The online reorganization and online resize features of
fsadm are available only with the HP OnLineJFS
product.
Options
fsadm recognizes the following options:
-a days Consider files not accessed within the specified number of days as aged files. The
default is 14 days. The -d option moves aged files to the end of the directory. The
-a
days option applies only with -d.
-b newsize Resize the file system to newsize sectors. -b cannot be used with the
-cdDeEo
options.
-c Convert the inode format of files upgraded from the Version 2 disk layout so that they
can grow beyond a two-gigabyte offset. This option is required because some file sys-
tems upgraded from the Version 2 disk layout could not be extended past two gigabytes
or contain more than 8 million inodes.
-d Reorganize directories. Directory entries are reordered to place subdirectory entries
first, then all other entries in decreasing order of time of last access. The directory is
also compacted to remove free space.
-D Report on directory fragmentation. If specified in conjunction with the -d option, the
fragmentation report is produced both before and after the directory reorganization.
-e Reorganize extents. Minimize file system fragmentation. Files are reorganized to have
the minimum number of extents.
-E Report on extent fragmentation. If specified in conjunction with the -e option, the
fragmentation report is produced both before and after the extent reorganization.
-f filename Performs and reports extent reorganization or directory reorganization on an indivi-
dual file or directory. For example, when used with the -d option, a reorganization is
performed on the specified directory. When used with the -e option, an extent reor-
ganization is performed on a specified file. If you specify (dash), the command reads
input from the standard input device instead of using a file name or directory name.
-F vxfs Specify the VxFS file system type.
Section 1M206 Hewlett-Packard Company 1 HP-UX 11i Version 2: August 2003