Print

Moving the MPP logs to a different location

About this task

If you need to free up space on an MPP server, you can use the mppMoveLogs.sh script to create a new directory and move the MPP logs to that directory.

Procedure

  1. If necessary, install the target drive or create the target partition as described in your operating system documentation.
    importantImportant:

    Do not create the new directory on this drive or partition, as the script will fail if a directory already exists.

    The drive or partition must be local to the MPP server and it must contain either 2 GB of free space or as large in size as the current $AVAYA_MPP_HOME/logs directory, whichever value is greater.

    tipTip:

    For a good tutorial about creating a partition, see http://tldp.org/HOWTO/html_single/Partition/.

  2. If you created a new partition, add an entry for the partition in the /etc/fstab file so that it is automatically mounted when the system is booted.

    If the partition for the directory will only host the Experience Portal log directory, you can improve security by setting its properties in the /etc/fstab file to rw,nosuid,noexec,auto,nouser,async,noatime,nodev. For more information about these options, see http://www.faqs.org/docs/securing/chap5sec45.html.

  3. Log on to the EPM web interface by using an account with the Administration or Operations user role.
  4. Stop the MPP whose logs you want to move:
    1. From the EPM main menu, select System Management > MPP Manager.
    2. On the MPP Servers page, click the Selection check box next to the name of the MPP you want to stop.
    3. Click Stop in the State Commands group
    4. Confirm the action when requested.
    5. Wait until the operational state becomes Stopped. To check this, click Refresh and look at the State field.
      noteNote:

      The operational state changes when the last active call completes or the grace period expires, whichever comes first.

  5. Log on to Linux on the Experience Portal MPP server.

    If you are an Avaya Services representative, and use Avaya Enterprise Linux, the Avaya Service accounts will not be available after the Avaya Enterprise Linux upgrade. The Avaya Service accounts will be available through EASG configuration during the Experience Portal upgrade.

    • Log on to the local Linux console as root.

    • Or log on remotely as a non-root user and then change the user to root by entering the su - root command.

  6. Enter the bash mppMoveLogs.sh [-logdir directory_name] command, where -logdir directory_name is an optional parameter specifying the directory name that you want to use.

    If you do not specify this parameter on the command line, the script prompts you for the directory name during execution. If the directory you specify already exists, the script returns an error message and fails. This ensures that no existing files will be overwritten by the script.

    When the script completes successfully, all of the current logs will reside in the new location, and all future logs will be stored in the new location.

  7. Restart the MPP:
    1. From the EPM main menu, select System Management > MPP Manager.
    2. On the MPP Servers page, click the Selection check box next to the name of the MPP you want to start.
    3. Click Retart in the State Commands group
    4. Wait until the operational state becomes Running. To check this, click Refresh and look at the State field.