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

Administering a System: Managing Disks and Files
Managing File Systems
Chapter 6 619
For more information on fsck, see Disk and File Management Tasks on
HP-UX.
Replacing an Existing File System with a Smaller One
How to substitute a smaller file system for an existing larger one
depends on the type of file system being used and whether or not you are
using logical volumes.
If You Are Using JFS
If you have HP OnLineJFS, you can reduce the size of a file system using
a single command (fsadm). (See fsadm_vxfs (1M) for syntax and also Disk
and File Management Tasks on HP-UX for further information.)
If you do not have OnLineJFS, the steps are identical to those shown
below for HFS and depend upon whether you are using logical volumes.
If You Are Not Using Logical Volumes
If an HFS file system is contained on a non-LVM disk, follow these steps
to reduce its size:
1. Back up the file system.
Whatassurance
is there of file
system
integrity?
No assurance fsck can repair a file
system after a crash, although it
usually can; is sometimes unable
to repair a file system that crashed
before completing a file system
operation. Even a repairable file
system has no guarantee its
structure will be preserved: fsck
puts “orphan files” into the
lost+found directory.
Complete assurance of file system
integrity following a crash
(excepting disk failure). JFS
ensures any transaction pending
when the system crashes will
either be completed entirely or
returned to its pre-transaction
state.
What do I do in
the event of a
disk failure?
The file system must be scanned
from beginning to end for
inconsistencies, with no
assurances of file system integrity.
As with HFS, the file system must
be scanned from beginning to end
for inconsistencies, with no
assurances of file system integrity.
Table 6-7 HFS vs. JFS File Checking after System Failure (Continued)
Concern HFS JFS