NetWorker: Red Hat Pacemaker 클러스터에 배포된 NetWorker Server에서 restapi.log 파일이 생성되지 않음
Resumen: Red Hat Pacemaker 클러스터에 배포된 NetWorker Server에서는 restapi.log 파일이 생성되지 않습니다.
Este artículo se aplica a
Este artículo no se aplica a
Este artículo no está vinculado a ningún producto específico.
No se identifican todas las versiones del producto en este artículo.
Síntomas
- NetWorker Server는 Red Hat HA(Pacemaker) 클러스터에 배포됩니다.
- /nsr/logs/restapi 로그 아래의 REST(Representational State Transfer) API(Application Programming Interface) 로그가 생성되지 않습니다.
Causa
공유 드라이브가 REST API 로깅에 매핑되지 않습니다.
Resolución
- 활성 노드에 루트로 로그인합니다.
액티브 노드는 다음과 같이 표시할 수 있습니다.
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
- 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;
- REST API logback.xml 복제본을 만듭니다.
cp /nsr/authc/webapps/nwrestapi/WEB-INF/classes/logback.xml /nsr/authc/webapps/nwrestapi/WEB-INF/classes/logback.xml.bak
- 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 명령으로 출력된 공유 폴더 이름과 일치하는지 확인합니다.
- 수동으로 로그 폴더 생성
mkdir /nsr_share/nsr/logs/restapi
- 디렉토리의 소유권을 nsrtomcat으로 변경합니다.
chown nsrtomcat:nsrtomcat /nsr_share/nsr/logs/restapi
- REST API 디렉토리에 대한 사용 권한을 설정합니다.
chmod 755 /nsr_share/nsr/logs/restapi
- 클러스터 NetWorker 서비스를 재시작합니다.
pcs resource restart nws
- 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
Información adicional
Productos afectados
NetWorkerProductos
NetWorker Family, NetWorker SeriesPropiedades del artículo
Número del artículo: 000206436
Tipo de artículo: Solution
Última modificación: 16 dic 2025
Versión: 4
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.