<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:25:11 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-16232] emergency llog cleanup server scripts</title>
                <link>https://jira.whamcloud.com/browse/LU-16232</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There can be situations when update llog or changelog files are corrupted and we are just removing/truncating them. Scripts are needed to remove corrupted llogs properly with all plain llogs, so no orphaned data remains on server&lt;/p&gt;</description>
                <environment></environment>
        <key id="72741">LU-16232</key>
            <summary>emergency llog cleanup server scripts</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="tappro">Mikhail Pershin</assignee>
                                    <reporter username="tappro">Mikhail Pershin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Oct 2022 08:51:17 +0000</created>
                <updated>Thu, 31 Aug 2023 06:29:57 +0000</updated>
                            <resolved>Tue, 30 May 2023 16:44:04 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="349349" author="tappro" created="Wed, 12 Oct 2022 09:24:37 +0000"  >&lt;p&gt;Copied from EX-4969:&lt;/p&gt;

&lt;p&gt;For both scripts the steps to cleanup problematic llogs are:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;mount MDT filesystem locally on server as ldiskfs mount&lt;/li&gt;
	&lt;li&gt;run script first in dry-run mode to make sure it parses llogs as needed and that all needed tools are in place:&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt; # bash remove_(changelog|updatelog) -n &amp;lt;ldiskfs_mount&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul&gt;
	&lt;li&gt;run it to save all llogs for analysis&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# bash remove_(changelog|updatelog) -n -z /tmp/llogs_saved &amp;lt;ldiskfs_mount&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul&gt;
	&lt;li&gt;to be sure check that &lt;tt&gt;/tmp/llogs_saved.tar.gz&lt;/tt&gt; (or whatever name prefix you&apos;ve used) exists and has all llogs inside:&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# ls -ali /tmp/llogs_saved.tar.gz
# tar -tf /tmp/llog_saved.tar.gz&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul&gt;
	&lt;li&gt;finally run script to delete all llogs:&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt; # bash remove_(changelog|updatelog) &amp;lt;ldiskfs_mount&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Note: for better llogs compression &lt;tt&gt;xz&lt;/tt&gt; can be used as well, pass it to the script via GZIP env variable:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# GZIP=xz bash remove_(changelog|updatelog) -n -z /tmp/llogs_saved &amp;lt;ldiskfs_mount&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Archive name will ends with &lt;tt&gt;.xz&lt;/tt&gt; in that case instead of &lt;tt&gt;.gz&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="349350" author="gerrit" created="Wed, 12 Oct 2022 09:39:37 +0000"  >&lt;p&gt;&quot;Mikhail Pershin &amp;lt;mpershin@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/48838&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48838&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16232&quot; title=&quot;emergency llog cleanup server scripts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16232&quot;&gt;&lt;del&gt;LU-16232&lt;/del&gt;&lt;/a&gt; scripts: changelog/updatelog emergency cleanup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9129cea32def94999b67e942c69d0a5517613fd3&lt;/p&gt;</comment>
                            <comment id="351470" author="gerrit" created="Wed, 2 Nov 2022 07:11:41 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/48838/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48838/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16232&quot; title=&quot;emergency llog cleanup server scripts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16232&quot;&gt;&lt;del&gt;LU-16232&lt;/del&gt;&lt;/a&gt; scripts: changelog/updatelog emergency cleanup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b533700add91fe4220f50d057a470e0b6f4893c9&lt;/p&gt;</comment>
                            <comment id="351511" author="pjones" created="Wed, 2 Nov 2022 14:55:44 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="357369" author="adilger" created="Fri, 23 Dec 2022 23:11:13 +0000"  >&lt;p&gt;In further discussion, it would be useful to allow a &quot;&lt;tt&gt;-m &amp;lt;mdt_index&amp;gt;&lt;/tt&gt;&quot; argument to the script to have it selectively delete only the update logs for the specified MDT index.  Otherwise, if the script is run on a remote MDT, then it will delete the update logs for &lt;b&gt;all other&lt;/b&gt; MDTs, and then those MDTs will then have issues during operation and/or later recovery.&lt;/p&gt;</comment>
                            <comment id="358292" author="chuntera" created="Mon, 9 Jan 2023 15:43:51 +0000"  >&lt;p&gt;I receive an error message when using the script:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;./remove_updatelog.lu16232.sh: line 100: syntax error near unexpected token `&amp;lt;&apos;
./remove_updatelog.lu16232.sh: line 100: ` &#160; &#160; &#160; &#160;read -r -d &apos;&apos; -a OPT_MDTS &amp;lt; &amp;lt;(hexdump -v -e &apos;2/8 &quot; %16x&quot; 2/8 &quot;\n&quot;&apos; $catlist |&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;appears to be an issue with shell pipe&lt;br/&gt;
eg)&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;read -r -d &apos;&apos; -a OPT_MDTS &amp;lt; &amp;lt;(hexdump -v -e &apos;2/8 &quot; %16x&quot; 2/8 &quot;\n&quot;&apos; $catlist | awk &apos;{print &quot;[0x&quot;$2&quot;:0x&quot;$1&quot;:0x0]&quot;}&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;instead of&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;read -r -d &apos;&apos; -a OPT_MDTS &amp;lt;&amp;lt;&amp;lt; $(hexdump -v -e &apos;2/8 &quot; %16x&quot; 2/8 &quot;\n&quot;&apos; $catlist | awk &apos;{print &quot;[0x&quot;$2&quot;:0x&quot;$1&quot;:0x0]&quot;}&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="358308" author="tappro" created="Mon, 9 Jan 2023 20:04:51 +0000"  >&lt;p&gt;Chris, try it with bash : &lt;tt&gt;# bash ./remove_updatelog&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;The syntax of &apos;&lt;tt&gt;&amp;lt; &amp;lt;()&lt;/tt&gt;&apos; correct in bash (that is process substitution, creates temp file and redirects from it) but may be not in other shells. Your proposal is possible replacement so it is worth to update script in that manner but for now just call bash explicitly&lt;/p&gt;</comment>
                            <comment id="368629" author="gerrit" created="Thu, 6 Apr 2023 08:22:58 +0000"  >&lt;p&gt;&quot;Mikhail Pershin &amp;lt;mpershin@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50558&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50558&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16232&quot; title=&quot;emergency llog cleanup server scripts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16232&quot;&gt;&lt;del&gt;LU-16232&lt;/del&gt;&lt;/a&gt; scripts: clean specific MDTs update llogs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a399335cdcc6561077a1400572128b523c461a16&lt;/p&gt;</comment>
                            <comment id="370510" author="tappro" created="Tue, 25 Apr 2023 11:14:15 +0000"  >&lt;p&gt;I&apos;ve just added to the ticket another script which allows to collect update logs on live server node by using debugfs. It helps to get llogs for further analysis and replace multiple commands need to be executed for that&lt;/p&gt;</comment>
                            <comment id="371459" author="gerrit" created="Sat, 6 May 2023 08:44:40 +0000"  >&lt;p&gt;&quot;Yang Sheng &amp;lt;ys@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50876&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50876&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16232&quot; title=&quot;emergency llog cleanup server scripts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16232&quot;&gt;&lt;del&gt;LU-16232&lt;/del&gt;&lt;/a&gt; script: fix the argument parse&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: aa0ded5d3504187b1f3fe852bb5e464569f5eb7c&lt;/p&gt;</comment>
                            <comment id="372828" author="gerrit" created="Fri, 19 May 2023 07:08:01 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50558/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50558/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16232&quot; title=&quot;emergency llog cleanup server scripts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16232&quot;&gt;&lt;del&gt;LU-16232&lt;/del&gt;&lt;/a&gt; scripts: clean specific MDTs update llogs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8546628c23b1ba1785e42ec9b1bc4b77acced5c6&lt;/p&gt;</comment>
                            <comment id="384322" author="gerrit" created="Thu, 31 Aug 2023 06:29:57 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50876/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50876/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16232&quot; title=&quot;emergency llog cleanup server scripts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16232&quot;&gt;&lt;del&gt;LU-16232&lt;/del&gt;&lt;/a&gt; script: fix the argument parse&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 99144a595b767ef79acec058c838759bea73c579&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="48903" name="collect_updatelog" size="3198" author="tappro" created="Tue, 25 Apr 2023 11:16:04 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i032jj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>