Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Expanding the file system

&pagelevel(4)&pagelevel

POSIX offers a space-saving direct method in which the file system is expanded at BS2000 level (BS2000 containers) without copying it beforehand. The internal structures of the POSIX file system are subsequently adapted to the new size by POSIX. This has the advantage that only the additional disk storage space is required for the new file system.

This file system expansion can take place online and offline in interactive or batch mode. If a file system is expanded online, the file system is mounted regardless of the automount setting provided it was already mounted beforehand .

The following options for expanding file systems are avaialble to you:

  • POSIX installation program in interactive mode, offline (POSIX not started)

    This variant enables all POSIX file systems to be expanded, also the root and var file systems. Proceed as follows:

    • Call the POSIX installation program with /START-POSIX-INSTALLATION.

    • In the start mask, select the function Expand of POSIX filesystem.

    • In the follow-up mask enter the required file system and the new values, see section “Expand POSIX filesystems”.

  • POSIX installation program in interactive mode, online (POSIX started)

    This variant enables you to expand all POSIX file systems except rootand var, provided the file system can be unmounted. Proceed as follows:

    • Call the POSIX installation program with /START-POSIX-INSTALLATION.

    • In the start mask, select the function Administrate POSIX filesystems.

    • In the Administrate POSIX filesystems mask select the required file system, and in the input field select the E (expand) option, see section “Administer POSIX filesystems”.

    • In the follow-up mask enter the new values, see section “Expand POSIX Filesystems”

  • POSIX installation program in batch mode, offline or online

    With the offline call all POSIX file systems can be expanded, with the online call only the unmountable file systems; root and var cannot be expanded online as they cannot be unmounted when POSIX is running.

    Proceed as follows:

    • Create a parameter file with the identification line [ExpandFileSystem], see section “Expand POSIX file systems”.

    • Call the POSIX installation program with /START-POSIX-INSTALLATION INPUT-INTERFACE=*FILE(<parameter-file>

    Example

    #
    # Batch installation file
    #
    [ExpandFileSystem]
    # <file>;<size>
    $SYSROOT.FS.ROOT;10000    #  root file system 10 000 PAM pages more 
    $SYSROOT.FS.VAR;20000     #  var file system 20 000 PAM pages more
    
  • fsexpand command

    This enables all file systems except root and var to be expanded.

    • Log onto the POSIX shell.

    • Enter the fsexpand command with the required options. The following syntax applies, see the POSIX “Commands (Related publications )” manual [1]:

      fsexpand-i][ -p pam-pages| -c cylinder-groups] device

      For device enter the file system which is to be expanded.