Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Managing File Systems
Chapter 6644
fsadm -d -D -e -E
/mount_point
For detailed information, consult fsadm_vxfs (1M).
Daily Defragmentation
To maintain optimal performance on busy file systems, it may be
necessary to defragment them nightly.
For example, to defragment every evening at 9 p.m. all the extents and
directories within the file system mounted at /home, include the
following entry in a file used by cron (1M):
0 21 * * * fsadm -d -e /home
Converting Existing File Systems to JFS
There are three ways to convert an HFS file system to a JFS (vxfs) file
system. In choosing which method to use, consider the relative
importance of the following factors for your system:
• available disk space
• downtime
• flexibility in file system arrangement
• presence of ACLs in the file system
• safety
The three methods are:
1. Create a new logical volume with a new JFS file system and copy the
existing HFS file system to it.
Benefits: minimal downtime, safe, flexible
Requirements: • free space greater than or equal to the existing
file system
• if the HFS file system uses ACLs, you must
write a script to convert them to JFS ACLs
• the HFS file system must be mounted
read-only while it is being copied.
See “Method 1: Copying the HFS to JFS on a New Logical Volume”
on page 646 below for the procedure.