Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Administering a System: Managing Disks and Files
Managing File Systems
Chapter 6656
Changing from a Large-Files File System
You can change a file system back and forth between large files and no
large files using the fsadm command. It is important to realize that the
conversion of these file systems must be done on an unmounted file
system, and fsck will be called after a successful conversion.
The following example shows how to convert a no-large-files file system
to a large-files file system.
/usr/sbin/fsadm -F hfs -o largefiles /dev/vg02/rlvol1
NOTE While converting a no-large-files file system to a large-files file system
should always succeed, the same is not true for converting a large-files
file system to a no-large-files file system. The latter will succeed only if
there are no large files on the file system. If even one large file is detected
on the file system being converted, then the fsadm command will not
convert the file system. Therefore, to convert a large-files file system that
actually has large files on it to a no-large-files file system, you must first
remove the large files.
Command Support for Large Files
As of HP-UX Release 10.20 and later all of the file system administration
commands for HFS and JFS support large files (greater than 2 GB). All
file system user commands support large files.
If a command that does not support large files encounters a large file, the
command will return an [EOVERFLOW] error and print a message like the
following:
Value too large to be stored in data type
Repairing a Large-Files File System with fsck
The fsck (1M) command repairs damaged file systems. Typically, large
files should not appear in a no-large-files file system. There are two ways
fsck recovers from this situation if a large file does appear.
In the first scenario, you use fsck in the interactive mode. fsck finds a
large file on a no-large-files file system, marks the file system dirty and
stops. You can then correct the situation using the fsadm command with