NFS Directory Setting Is Added for Operation Log Dumping

If you do not need to save operation logs to a local disk, perform the operations described in this section to save the operation logs to the NFS directory.

This operation depends on the NFS client.

Procedure

  1. Use PuTTY to log in to the eReplication Server.

    Log in as user DRManager, and run the su root command to switch to user root.

    The default password of user DRManager and root See the default password of the account for the target node on the Type A (Background) sheet in the OceanStor BCManager 8.5.0 eReplication Account List(Traditional Disaster Recovery). Run the TMOUT=0 command to prevent PuTTY from exiting due to session timeout.

  2. After you run the preceding command, the system continues to run even when no operation is performed, resulting in security risks. For security purposes, you are advised to run the exit command to exit the system after completing your operations.

  3. Run the mount -o rw xxx:/xxx/xxx /opt/BCManager/Runtime/LegoRuntime/datastorage/sysoptlog command.

    xxx:/xxx/xxx indicates the NFS shared directory. Ensure that the BCManager user has the read and write permissions and the BCManager server has the access permission on the NFS shared directory.

    Run the mount command to view the mounted directory.

  4. Run the vi /etc/fstab command and add the following content to the end of the file:

    xxx:/xxx/xxx  /opt/BCManager/Runtime/LegoRuntime/datastorage/sysoptlog  nfs_version  rw  0  0

    Save the /etc/fstab file and exit.

    xxx:/xxx/xxx indicates the NFS shared directory (Ensure that the BCManager user has the read and write permissions and the BCManager server has the access permission on the NFS shared directory). nfs_version indicates the version supported by the NFS server, for example, nfs4.

  5. If the HA mode is used, repeat the preceding steps on the standby server.

Copyright © Huawei Technologies Co., Ltd.