NetWorker: Red Hat Pacemaker 클러스터에 배포된 NetWorker Server에서 restapi.log 파일이 생성되지 않음

Riepilogo: Red Hat Pacemaker 클러스터에 배포된 NetWorker Server에서는 restapi.log 파일이 생성되지 않습니다.

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Sintomi

  • NetWorker Server는 Red Hat HA(Pacemaker) 클러스터에 배포됩니다.
  • /nsr/logs/restapi 로그 아래의 REST(Representational State Transfer) API(Application Programming Interface) 로그가 생성되지 않습니다.

Causa

공유 드라이브가 REST API 로깅에 매핑되지 않습니다.

Risoluzione

  1.  활성 노드에 루트로 로그인합니다.
액티브 노드는 다음과 같이 표시할 수 있습니다.
pcs resource show
예:
root@NWrhelNodeC:~# pcs resource show
 Resource Group: NW_group
     fs (ocf::heartbeat:Filesystem):    Started NWrhelNodeC.emclab.local
     ip (ocf::heartbeat:IPaddr):        Started NWrhelNodeC.emclab.local
     nws        (ocf::EMC_NetWorker:Server):    Started NWrhelNodeC.emclab.local
  1. pacemaker에서 사용하는 매핑을 확인합니다.
lcmap
예:
root@NWrhelNodeC:~# lcmap
type: NSR_CLU_TYPE;
clu_type: NSR_LC_TYPE;
interface version: 1.0;

type: NSR_CLU_VIRTHOST;
hostname: 192.168.25.40;
local: TRUE;
owned paths: /nsr_share;
  1. REST API logback.xml 복제본을 만듭니다.
cp /nsr/authc/webapps/nwrestapi/WEB-INF/classes/logback.xml /nsr/authc/webapps/nwrestapi/WEB-INF/classes/logback.xml.bak
  1. REST API 로그 디렉토리의 절대 경로를 사용하도록 logback.xml 수정합니다. 
vi /nsr_share/nsr/authc/webapps/nwrestapi/WEB-INF/classes/logback.xml
잔돈:
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="10 seconds">
  <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
    <resetJUL>true</resetJUL>
  </contextListener>

  <define name="logdir" class="com.emc.nw.webapi.LogDir"/>


  <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>${logdir}/restapi.log</file>
    <encoder>
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{15} - %msg%n</pattern>
    </encoder>
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <fileNamePattern>${logdir}/restapi_%i.log.zip</fileNamePattern>
      <minIndex>1</minIndex>
      <maxIndex>10</maxIndex>
      <totalSizeCap>500MB</totalSizeCap>
...
수정 후:
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="10 seconds">
  <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
    <resetJUL>true</resetJUL>
  </contextListener>

  <define name="logdir" class="com.emc.nw.webapi.LogDir"/>


  <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>/nsr_share/nsr/logs/restapi/restapi.log</file>
    <encoder>
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{15} - %msg%n</pattern>
    </encoder>
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <fileNamePattern>/nsr_share/nsr/logs/restapi/restapi_%i.log.zip</fileNamePattern>
      <minIndex>1</minIndex>
      <maxIndex>10</maxIndex>
      <totalSizeCap>500MB</totalSizeCap>
...
참고: 공유 경로 이름이 lcmap 명령으로 출력된 공유 폴더 이름과 일치하는지 확인합니다.
  1. 수동으로 로그 폴더 생성
mkdir /nsr_share/nsr/logs/restapi
  1. 디렉토리의 소유권을 nsrtomcat으로 변경합니다.
chown nsrtomcat:nsrtomcat /nsr_share/nsr/logs/restapi
  1. REST API 디렉토리에 대한 사용 권한을 설정합니다.
chmod 755 /nsr_share/nsr/logs/restapi
  1. 클러스터 NetWorker 서비스를 재시작합니다.
pcs resource restart nws
  1. nws 리소스가 시작되면 restapi.log 파일이 생성되고 있는지 확인합니다.
root@NWrhelNodeC:~# ls -l /nsr_share/nsr/logs/restapi/
total 7428
-rw-------. 1 nsrtomcat nsrtomcat 7603829 Dec 14 11:01 restapi.log
-rw-------. 1 nsrtomcat nsrtomcat       0 Dec 14 10:46 rest_index.raw

Informazioni aggiuntive

Prodotti interessati

NetWorker

Prodotti

NetWorker Family, NetWorker Series
Proprietà dell'articolo
Numero articolo: 000206436
Tipo di articolo: Solution
Ultima modifica: 16 dic 2025
Versione:  4
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.