[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
System Management Guide: Operating System and Devices

Creating a File System Log on a Dedicated Disk for a User-Defined Volume Group

A file system log is a formatted list of file system transaction records. The log for this system is called the JFS log (journaled file system log) and is used in case the system goes down before the transactions have been completed. The JFS log ensures file system integrity but not necessarily data integrity. A dedicated disk is created on hd8 for rootvg when the system is installed. The JFS log size is 4MB. You can also create a JFS log on a separate disk for other volume groups, as shown in the following procedure. You might want to do this to improve performance under certain conditions, for example, if you have an NFS server and you want the transactions for this server to be processed without competition from other processes. See "Resource Requirements of Diskless Workstations" in AIX Versions 3.2 and 4 Performance Tuning Guide for more details.

Prerequisites

Procedure

You can use the Web-based System Manager fast path wsm lvm instead of the following procedure. If you use the following procedure, a volume group (fsvg1) is created, with two physical volumes, one of which will be the dedicated device for the file system log. The log will be on hdisk1 and the file system will be on hdisk2 (a 256MB file system mounted at /u/myfs).

Note: You can place little-used programs, for example, /blv, on this physical volume without impacting performance. It is not required that it be empty except for the JFS log.
  1. Add a new volume group (in this example, fsvg1 will be the new volume group name). Use the SMIT fast path:
    smit mkvg
  2. Select the volume group name you created using the SMIT fast path:
    smit mklv
  3. On the Add a Logical Volume dialog screen, set the following fields with your data. For example:
    Logical Volumes NAME                     
    fsvg1log
       
    Number of LOGICAL PARTITIONS             1
       
    PHYSICAL VOLUME names                    hdisk1
       
    Logical volume TYPE                      jfslog
       
    POSITION on Physical Volume              center
    After you set the fields, press Enter.

  4. Exit SMIT and enter the following on a command line:
    /usr/sbin/logform /dev/fsvg1log
    Answer y to the following prompt:
    Destroy /dev/fsvg1log
    and press Enter.
    Note: The preceding command formats the JFS-log logical volume so that it can record file-system transactions. Nothing is destroyed despite the wording in the prompt.
  5. Enter the following SMIT fast path:
    smit mklv
  6. Enter the name of the new volume group (fsvg1 in this example). In the Logical Volumes dialog screen, fill in the following fields with your data. For example:
    Logical Volumes NAME                     
    fslv1
       
    Number of LOGICAL PARTITIONS             64
       
    PHYSICAL VOLUME names                    hdisk2
       
    Logical volume TYPE                      jfs
    Press Enter.

  7. Exit SMIT and enter the following on the command line:
    crfs -v jfs -d fslv1 -m /u/myfs -a 
    logname=/dev/fsvg1log
       
    mount /u/myfs
  8. To verify that you have set up the file system and log correctly, use the following command:
    lsvg -l fsvg1
    There should be two logical volumes of the following types listed:
    /dev/fsvg1log   jfslog
    then:
    fslv1      jfs

[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]