NetWorker:Red Hat Pacemakerクラスターに導入されたNetWorkerサーバーでrestapi.logファイルが生成されない
Summary: restapi.logファイルは、Red Hat Pacemakerクラスターに導入されたNetWorkerサーバーでは生成されません。
Acest articol se aplică pentru
Acest articol nu se aplică pentru
Acest articol nu este legat de un produs specific.
Acest articol nu acoperă toate versiunile de produs existente.
Symptoms
- NetWorkerサーバーは、Red Hat HA(ペースメーカー)クラスターに導入されます。
- /nsr/logs/restapiログの下にあるRepresentational State Transfer (REST)アプリケーション プログラミング インターフェイス(API)ログが生成されません。
Cause
共有ドライブがREST APIログにマッピングされていません。
Resolution
- rootとしてアクティブ ノードにログインします。
アクティブ ノードは次のように表示されます。
pcs resource show
Example:
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
- ペースメーカーによって使用されるマッピングを確認します。
lcmap
Example:
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>
...
To:
<?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
Additional Information
Produse afectate
NetWorkerProduse
NetWorker Family, NetWorker SeriesProprietăți articol
Article Number: 000206436
Article Type: Solution
Ultima modificare: 16 dec. 2025
Version: 4
Găsiți răspunsuri la întrebările dvs. de la alți utilizatori Dell
Servicii de asistență
Verificați dacă dispozitivul dvs. este acoperit de serviciile de asistență.