Enabling large file systems

Follow these instructions if you did not enable large file support during the initial installation of InfoPrint Manager and you want to use this function. These instructions apply to both the /var/pd and /var/psf file systems. You should have at least 7 gigabytes of available hard drive space to properly configure your system for large file support.
  1. Log into the InfoPrint server as root.
  2. Open a terminal window.
  3. Stop all InfoPrint related processes by using this command: /usr/lpp/InfoPrint/install/bin/killprocs.ksh
    Note: InfoPrint is capitalized.
  4. Use this command to unmount the /var/psf/segments, /var/pd, and /var/psf file systems:
    umount <file system name>
    Where <file system name> is /var/psf/segments, /var/psf, or /var/pd.
    Note: You need to umount /var/psf/segments to umount /var/psf. However, you do not need to large file enable /var/psf/segments because the segment files are limited to a approximately to 5 megabytes in size by default.
  5. Gather three pieces of information:
    • File system size
    • Volume group name
    • Does the file system currently support large files?
    1. Issue this command:
      lsfs -q <file system name>
      Where <file system name> is /var/pd or /var/psf. Check both of these file systems. If you see bf: false in the response text, the file system is not large file enabled. If you see bf: true in the response text, the file system is already large file enabled. However, continue with these steps to make sure that your file system is also large enough to support large file processing.
    2. Find the volume group name:
      1. Look in the Name column on the far left of the window for the logical volume name for the file system.
      2. Issue this command:
        lslv <logical volume name>
        Where <logical volume name> is the name that appears in the Name column in the previous step. For example: lslv lvpsfs. The volume group name is listed in the first row. For example: VOLUME GROUP: rootvg.
      3. Make a note of the volume group name.
    3. Find the size of the file system. The size of the file system will be displayed like: fs size: 1.445678. This is the number of blocks that the file system occupies. You will need to determine the number of megabytes in the file system. To find this number, divide the number of blocks by 2,048. For example:
      fs size: 2097152
      2,097,152/2,048 = 1,024
      There are 1,024 megabytes in the file system or 1 gigabyte.
    4. Make a note of the number of megabytes in the file system.

    It is necessary for the /var/psf and /var/pd file systems to be larger than 2.14 gigabytes in size to support files that are larger than 2.14 gigabytes in size. In our example, the file system is only 1 gigabyte and needs to be increased in size. Even if the file system is already large file enabled (bf: true), the size of the file system must also be greater than 2.14 gigabytes to be truly capable of supporting large files.

  6. Use these steps to enable large file support on the file system:
    1. Create a temporary directory:
      mkdir /tmp/psf
      mkdir /tmp/pd
      Note: make sure that the temporary directory that you create has enough space for the file systems you are copying. Sometimes the /tmp file system is not large enough for this process. Choose a location with enough space to store the contents of /var/psf and /var/pd. You could also enable large file support for /var/psf and /var/pd one at a time.
    2. Copy the file system contents to another location temporarily:
      cp -hfr <fsname> <temporary location>
      For example: cp -hfr /var/psf /tmp/psf.
    3. Issue this command to remove the file system:
      rmfs <fsname>
      For example: rmfs /var/psf.
    4. Recreate the file system as a large file enabled file system of the appropriate size:
      /usr/lpp/InfoPrint/install/bin/allocfs.ksh -n <fsname> -g <vgname> 
            -s <mb> -l
      Where <fsname> is the file system name, <vgname> is the volume group name, and <mb> is the size in megabytes of the new file system.

      For example:

      /usr/lpp/InfoPrint/install/bin/allocfs.ksh -n /var/psf -g rootvg 
            -s 3072 -l

      Ignore any messages like A file or directory in the path name does not exist. These are normal messages and do not indicate a relevant failure.

        Important:
      • The file system size must be larger than 2,140 megabytes. A minimum size of 3,072 megabytes in both the /var/psf and /var/pd file systems is required.
      • If your file system is already large file enabled, the -l flag can be omitted.
    5. Copy the file system contents back from the temporary directory:
      mv <temporary location>/* <fsname>
      For example: mv /tmp/* /var/psf.
    6. Verify that the new file system is in fact large file enabled with these two commands:
      lmktemp 1GB 1073741824
      cat 1GB 1GB 1GB > /var/psf/3GB
    7. Edit the limits file in the /etc/security directory with vi so that the operating system will support large files:
      1. Enter vi /etc/security/limits from the command line. For more information about using vi, enter man vi from the command line.
      2. Change the file size limit or fsize to a size that supports your needs. Setting the file size limit to -1 sets the file size to unlimited. For example: fsize = -1.
      3. Save your changes.
    8. Restart the server:
      startsrv <servername>
      where <servername> is the name of your InfoPrint Manager server process (pdserver).