Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Managing File Systems
Chapter 6646
NOTE See “Managing Access to Files and Directories” on page 753 for more
information about Access Control Lists, or ACLs, on HFS and JFS.
NOTE Before converting an existing HFS file system to a JFS file system, it is
critical to do a full backup of the file system.
Method 1: Copying the HFS to JFS on a New Logical Volume
Method 1:
Create and Copy
Use this method to convert an HFS file system to a JFS file system when
you want to minimize downtime and you have enough free space.
Step 1. Create a new logical volume using lvcreate (1M). For example, to create a
logical volume in volume group /dev/vg00:
lvcreate -l
new-size
/dev/vg00
See “Example: Creating a Logical Volume Using HP-UX Commands” on
page 575 for more detail.
Step 2. Create a new JFS file system on the new logical volume. For example:
mkfs -F vxfs /dev/vg00/rlvol5
See “Creating a File System” on page 603 for more detail.
Step 3. Mount the existing HFS file system read-only. For example:
Need ACL
conversion
script
yes yes maybe
Flexible yes yes no
Safe yes yes some risk
Table 6-9 File System Conversion Methods Comparison (Continued)
Method One:
Create and Copy
Method Two:
Replace HFS
with JFS
Method Three:
vxfsconvert