Configure Preventive Maintenance Policy Deleting Files in Logical File System

Contents

1Introduction
1.1Prerequisites

2

Procedure

1   Introduction

This document describes how to configure a file group preventive maintenance policy, which automatically deletes files in the logical file system. Automatic file deletion is used to avoid storage issues in the Managed Element (ME) and is applied to files that are no longer of interest for the user.

The following two automatic file deletion policy aspects can be configured:

The procedure in this document focuses on the latter case.

Do!

Carefully read the following information before proceeding.

File group preventive maintenance policies must not be configured for the predefined file groups PerformanceManagementReportFiles, AlarmLogs, and AlertLogs. These file groups are subject to internal preventive maintenance policies.

It is recommended not to configure more than one FileGroupPolicy Managed Object (MO) per file group subtree, to keep the configuration simple.

1.1   Prerequisites

This section describes the prerequisites, which must be fulfilled before using the procedure.

1.1.1   Conditions

The following conditions must apply:

2   Procedure

To configure a file group preventive maintenance policy in the logical file system:

  1. Navigate to the FileM MO, for example:

    >dn ManagedElement=NODE06ST,SystemFunctions=1,FileM=1

  2. Enter Config mode:

    (FileM=1)>config

  3. Create the FileGroupPolicy MO, for example:

    (config-FileM=1)>FileGroupPolicy=3daysRetention

  4. Associate the policy to the chosen file group:

    (config-FileGroupPolicy=3daysRetention)>fileGroup="ManagedElement=NODE06ST,SystemFunctions=1,FileM=1,LogicalFs=1,FileGroup=Function1Files"

  5. Define the attribute values of the new MO, for example:

    (config-FileGroupPolicy=3daysRetention)>retentionTime=4320

    This example value means that files older than 3 days (4320 minutes) in the file group are deleted automatically. Attribute fullFileGroupAction is left at the default value (that is, DISCARD_OLDEST).

  6. Commit the definition:

    (config-FileGroupPolicy=3daysRetention)>commit

  7. Verify that the new file group policy exists and the attribute values are correct, for example:

    (FileGroupPolicy=3daysRetention)>show -v

    The following is an example output:

    FileGroupPolicy=3daysRetention
       fileGroup="ManagedElement=NODE06ST,SystemFunctions=1,FileM=1,⇒
    LogicalFs=1,FileGroup=Functions1Files"
       fileGroupPolicyId=3daysRetention
       fullFileGroupAction=DISCARD_OLDEST <default>
       maxFileGroupSize=0 <default>
       maxNumberFiles=0 <default>
       retentionTime=4320
       userLabel=[] <empty>


Copyright

© Ericsson AB 2016. All rights reserved. No part of this document may be reproduced in any form without the written permission of the copyright owner.

Disclaimer

The contents of this document are subject to revision without notice due to continued progress in methodology, design and manufacturing. Ericsson shall have no liability for any error or damage of any kind resulting from the use of this document.

Trademark List
All trademarks mentioned herein are the property of their respective owners. These are shown in the document Trademark Information.

    Configure Preventive Maintenance Policy Deleting Files in Logical File System