Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-09 14:55:21 +00:00

194 lines
18 KiB
HTML

<a name="mrs_01_0789"></a><a name="mrs_01_0789"></a>
<h1 class="topictitle1">DBService Log Overview</h1>
<div id="body1590116319937"><div class="section" id="mrs_01_0789__s08b4d140517e4a7e881db716307fe03e"><h4 class="sectiontitle">Log Description</h4><p id="mrs_01_0789__en-us_topic_0046736729_p61612656"><strong id="mrs_01_0789__b3644152316403">Log path</strong>: The default storage path of DBService log files is <strong id="mrs_01_0789__b17338194017405">/var/log/Bigdata/dbservice</strong>.</p>
<ul id="mrs_01_0789__en-us_topic_0046736729_ul24569252"><li id="mrs_01_0789__en-us_topic_0046736729_li19796676">GaussDB: <strong id="mrs_01_0789__b11245451194114">/var/log/Bigdata/dbservice/DB</strong> (GaussDB run log directory), <strong id="mrs_01_0789__b6589102820421">/var/log/Bigdata/dbservice/scriptlog/gaussdbinstall.log</strong> (GaussDB installation log), and <strong id="mrs_01_0789__b128516169430">/var/log/gaussdbuninstall.log</strong> (GaussDB uninstallation log).</li><li id="mrs_01_0789__en-us_topic_0046736729_li43952359">HA: <strong id="mrs_01_0789__b831419913442">/var/log/Bigdata/dbservice/ha/runlog</strong> (HA run log directory) and <strong id="mrs_01_0789__b82091724154419">/var/log/Bigdata/dbservice/ha/scriptlog</strong> (HA script log directory)</li><li id="mrs_01_0789__en-us_topic_0046736729_li60026919">DBServer: <strong id="mrs_01_0789__b1646861794514">/var/log/Bigdata/dbservice/healthCheck</strong> (Directory of service and process health check logs)<p id="mrs_01_0789__en-us_topic_0046736729_p3371364"><strong id="mrs_01_0789__b0682132414465">/var/log/Bigdata/dbservice/scriptlog</strong> (run log directory), <strong id="mrs_01_0789__b103917426462">/var/log/Bigdata/audit/dbservice/</strong> (audit log directory)</p>
</li></ul>
<p id="mrs_01_0789__en-us_topic_0046736729_p30342279">Log archive rule: The automatic DBService log compression function is enabled. By default, when the size of logs exceeds 1 MB, logs are automatically compressed into a log file named in the following format: <em id="mrs_01_0789__i1268811557013">&lt;Original log file name&gt;-[No.]</em><strong id="mrs_01_0789__b119713581704">.gz</strong>. A maximum of 20 latest compressed files are reserved.</p>
<div class="note" id="mrs_01_0789__en-us_topic_0046736729_note4645057"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="mrs_01_0789__en-us_topic_0046736729_p41805515">Log archive rules cannot be modified.</p>
</div></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0789__en-us_topic_0046736729_table40705318" frame="border" border="1" rules="all"><caption><b>Table 1 </b>DBService log list</caption><thead align="left"><tr id="mrs_01_0789__en-us_topic_0046736729_row538217"><th align="left" class="cellrowborder" valign="top" width="24.709999999999997%" id="mcps1.3.1.6.2.4.1.1"><p id="mrs_01_0789__en-us_topic_0046736729_p43595579"><strong id="mrs_01_0789__b139302046205014">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.04%" id="mcps1.3.1.6.2.4.1.2"><p id="mrs_01_0789__en-us_topic_0046736729_p38684921"><strong id="mrs_01_0789__b7619203661112">Log File Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.25%" id="mcps1.3.1.6.2.4.1.3"><p id="mrs_01_0789__en-us_topic_0046736729_p15584974"><strong id="mrs_01_0789__b1149817318511">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0789__en-us_topic_0046736729_row20048509"><td class="cellrowborder" rowspan="14" valign="top" width="24.709999999999997%" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p13316560">DBServer run log</p>
</td>
<td class="cellrowborder" valign="top" width="42.04%" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p4899555">dbservice_serviceCheck.log</p>
</td>
<td class="cellrowborder" valign="top" width="33.25%" headers="mcps1.3.1.6.2.4.1.3 "><p id="mrs_01_0789__en-us_topic_0046736729_p61319646">Run log file of the service check script</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row15005906"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p7518910">dbservice_processCheck.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p5051941">Run log file of the process check script</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row45467475"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p58986881">backup.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p13208031">Run logs of backup and restoration operations (The DBService backup and restoration operations need to be performed.)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row51763415"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p32087105">checkHaStatus.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p48918703">Log file of HA check records</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row37615147"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p26928091">cleanupDBService.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p33691780">Uninstallation log file (You need to uninstall DBService logs.)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row34790565"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p66572341">componentUserManager.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p23650513">Log file that records the adding and deleting operations on the database by users</p>
<p id="mrs_01_0789__p4774133132213">(Services that depend on DBService need to be added.)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row11528032"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p61355386">install.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p3730389">Installation log file</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row33573506"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p35099489">preStartDBService.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p24486356">Pre-startup log file</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row19050617"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p66704998">start_dbserver.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p34395739">DBServer startup operation log file (DBService needs to be started.)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row41126201"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p42887950">stop_dbserver.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p51371903">DBServer stop operation log file (DBService needs to be stopped.)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row59693950"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p3371814">status_dbserver.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p4681502">Log file of the DBServer status check (You need to execute the <strong id="mrs_01_0789__b1250562912316">$DBSERVICE_HOME/sbin/status-dbserver.sh</strong> script.)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row42133519"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p57371907">modifyPassword.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p16612891">Run log file of changing the DBService password script. (You need to execute the <strong id="mrs_01_0789__b121652344306">$DBSERVICE_HOME/sbin/modifyDBPwd.sh</strong> script.)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row15298296"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p31202498">modifyDBPwd_yyyy-mm-dd.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p44374437">Run log file that records the DBService password change tool</p>
<p id="mrs_01_0789__p9357131120539">(You need to execute the <strong id="mrs_01_0789__b12486174633011">$DBSERVICE_HOME/sbin/modifyDBPwd.sh</strong> script.)</p>
</td>
</tr>
<tr id="mrs_01_0789__row3316138910170"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__p493851110170">dbserver_switchover.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__p6447512510170">Log for DBServer to execute the active/standby switchover script (the active/standby switchover needs to be performed)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row63825615"><td class="cellrowborder" rowspan="5" valign="top" width="24.709999999999997%" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p2492297">GaussDB run log</p>
<p id="mrs_01_0789__p1061494119513"></p>
</td>
<td class="cellrowborder" valign="top" width="42.04%" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p549487">gaussdb.log</p>
</td>
<td class="cellrowborder" valign="top" width="33.25%" headers="mcps1.3.1.6.2.4.1.3 "><p id="mrs_01_0789__en-us_topic_0046736729_p44508523">Log file that records database running information</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row65032387"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p33132024">gs_ctl-current.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p66448310">Log file that records operations performed by using the <strong id="mrs_01_0789__b74313124557">gs_ctl</strong> tool</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row61163879"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p55327172">gs_guc-current.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p52315966">Log file that records operations, mainly parameter modification performed by using the <strong id="mrs_01_0789__b109703212559">gs_guc</strong> tool</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row1081649"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p20504736">gaussdbinstall.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p50270944">GaussDB installation log file</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row49785318"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p6078946">gaussdbuninstall.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p22632578">GaussDB uninstallation log file</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row2366611"><td class="cellrowborder" rowspan="5" valign="top" width="24.709999999999997%" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p57477797">HA script run log</p>
</td>
<td class="cellrowborder" valign="top" width="42.04%" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p25189967">floatip_ha.log</p>
</td>
<td class="cellrowborder" valign="top" width="33.25%" headers="mcps1.3.1.6.2.4.1.3 "><p id="mrs_01_0789__en-us_topic_0046736729_p27121466">Log file that records the script of floating IP addresses</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row42766607"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p41543166">gaussDB_ha.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p9553281">Log file that records the script of GaussDB resources</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row18870670"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p52129291">ha_monitor.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p61723024">Log file that records the HA process monitoring information</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row18636310"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p33146107">send_alarm.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p480124">Alarm sending log file</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row4321123"><td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p14466715">ha.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p30953251">HA run log file</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row10143804"><td class="cellrowborder" valign="top" width="24.709999999999997%" headers="mcps1.3.1.6.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p16341824">DBService audit log</p>
</td>
<td class="cellrowborder" valign="top" width="42.04%" headers="mcps1.3.1.6.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p48619368">dbservice_audit.log</p>
</td>
<td class="cellrowborder" valign="top" width="33.25%" headers="mcps1.3.1.6.2.4.1.3 "><p id="mrs_01_0789__en-us_topic_0046736729_p45854749">Audit log file that records DBService operations, such as backup and restoration operations</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_0789__sfc9e7a8722ef41d799c7be88ec1ea5b4"><h4 class="sectiontitle">Log Format</h4><p id="mrs_01_0789__en-us_topic_0046736729_p23247174">The following table lists the DBService log formats.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0789__en-us_topic_0046736729_table7897978" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Log format</caption><thead align="left"><tr id="mrs_01_0789__en-us_topic_0046736729_row4194840"><th align="left" class="cellrowborder" valign="top" width="12.36%" id="mcps1.3.2.3.2.4.1.1"><p id="mrs_01_0789__en-us_topic_0046736729_p4237727"><strong id="mrs_01_0789__b137911944805">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.64%" id="mcps1.3.2.3.2.4.1.2"><p id="mrs_01_0789__en-us_topic_0046736729_p2295787"><strong id="mrs_01_0789__b1336617461603">Format</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48%" id="mcps1.3.2.3.2.4.1.3"><p id="mrs_01_0789__en-us_topic_0046736729_p63016113"><strong id="mrs_01_0789__b16267347702">Example</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0789__en-us_topic_0046736729_row36283926"><td class="cellrowborder" valign="top" width="12.36%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p53316885">Run log</p>
</td>
<td class="cellrowborder" valign="top" width="39.64%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p23700453">[&lt;<em id="mrs_01_0789__i157721729273">yyyy-MM-dd HH:mm:ss</em>&gt;] &lt;<em id="mrs_01_0789__i17452183312720">Log level</em>&gt;: [&lt; <em id="mrs_01_0789__i162421208119">Name of the script that generates the log</em>: <em id="mrs_01_0789__i58271613411">Line number</em> &gt;]: &lt; <em id="mrs_01_0789__i783220394611">Message in the log</em>&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="48%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_0789__p289819272911">[2020-12-19 15:56:42] INFO [postinstall.sh:653] Is cloud flag is false. (main)</p>
</td>
</tr>
<tr id="mrs_01_0789__en-us_topic_0046736729_row30652703"><td class="cellrowborder" valign="top" width="12.36%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_0789__en-us_topic_0046736729_p66949839">Audit log</p>
</td>
<td class="cellrowborder" valign="top" width="39.64%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_0789__en-us_topic_0046736729_p54227851">[&lt;<em id="mrs_01_0789__i163001519111113">yyyy-MM-dd HH:mm:ss,SSS</em>&gt;] UserName:&lt;<em id="mrs_01_0789__i126511049143716">Username</em>&gt; UserIP:&lt;<em id="mrs_01_0789__i340012211388">User IP address</em>&gt; Operation:&lt;<em id="mrs_01_0789__i12429195503710">Operation content</em>&gt; Result:&lt;<em id="mrs_01_0789__i959485914376">Operation results</em>&gt; Detail:&lt;<em id="mrs_01_0789__i1573215215388">Detailed information</em>&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="48%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_0789__en-us_topic_0046736729_p30379836">[2020-05-26 22:00:23] UserName:omm UserIP:192.168.10.21 Operation:DBService data backup Result: SUCCESS Detail: DBService data backup is successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2356.html">Using DBService</a></div>
</div>
</div>