<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:52:01 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-12373] detach and delete the PCC cached files when remove a PCC backend from a client</title>
                <link>https://jira.whamcloud.com/browse/LU-12373</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Currently when remove a PCC backend from a client, it does not deal with previously PCC-cached files at all. These files can still use PCC caching service.&lt;/p&gt;

&lt;p&gt;That&apos;s to say, after remove the corresponding PCC backend:&lt;/p&gt;

&lt;p&gt;1) For RW-PCC cached files, we do not restore the data back into Lustre OSTs of the main filesystem. Although the PCC backend falls back as a tranditional HSM storage solution since the lhsmtool_posix copytool is still running at this client. But this is dangerous, and likly to cuase user data to be lost if the PCC device maybe permanently unaviailable.&lt;/p&gt;

&lt;p&gt;2) The space used by these PCC cached files may not release.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thus, we need to add an option to&#160;detach and delete the PCC cached files when remove a PCC backend from a client.&lt;/p&gt;

&lt;p&gt;The practical and feasible methods is to scan the PCC backend fs, execute the detach operations via &quot;lfs pcc detach&quot; command or the corresponding llapi.&lt;/p&gt;

&lt;p&gt;i.e.&#160; For RW-PCC cached files, it can do as follows:&lt;/p&gt;

&lt;p&gt;&#160;&quot;find /mnt/pcc -type f -name &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9a-f:&amp;#93;&lt;/span&gt;&apos;&quot; to generate a FID list, then &quot;lfs pcc detach_fid $fid&quot; for each FID.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Here we still need to patch the PCC detach, as the the scanned regular files in the PCC backend fs may be detached involuntary by the Layout lock revocation due to the LRU lock shrinking or by the inode reclaim.&#160;&lt;/p&gt;

&lt;p&gt;For these kind of files,&#160; PCC detach still needs to restore the file into Lustre OSTs, wait the restore finish, and then send HSM remove requests to remove them for RW-PCC; while for RO-PCC, we need to simply delete the crresponding files.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="55819">LU-12373</key>
            <summary>detach and delete the PCC cached files when remove a PCC backend from a client</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="56799">LU-12714</parent>
                                    <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="qian_wc">Qian Yingjin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 Jun 2019 03:02:37 +0000</created>
                <updated>Fri, 6 May 2022 06:58:43 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="249270" author="gerrit" created="Fri, 14 Jun 2019 10:06:09 +0000"  >&lt;p&gt;Yingjin Qian (qian@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35230&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35230&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12373&quot; title=&quot;detach and delete the PCC cached files when remove a PCC backend from a client&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12373&quot;&gt;LU-12373&lt;/a&gt; pcc: uncache the pcc copies when remove a PCC backend&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: pcc&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b95cbf57e8ff6ddfcbe14b385e2e822f3144e3f2&lt;/p&gt;</comment>
                            <comment id="268471" author="gerrit" created="Fri, 24 Apr 2020 08:50:04 +0000"  >&lt;p&gt;Yingjin Qian (qian@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38352&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38352&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12373&quot; title=&quot;detach and delete the PCC cached files when remove a PCC backend from a client&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12373&quot;&gt;LU-12373&lt;/a&gt; pcc: uncache the pcc copies when remove a PCC backend&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 50c8f0b64488704e801b56ab6c52c61cc782cfb2&lt;/p&gt;</comment>
                            <comment id="282969" author="gerrit" created="Thu, 22 Oct 2020 08:31:58 +0000"  >&lt;p&gt;Yingjin Qian (qian@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40359&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40359&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12373&quot; title=&quot;detach and delete the PCC cached files when remove a PCC backend from a client&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12373&quot;&gt;LU-12373&lt;/a&gt; pcc: delete stale PCC copy when remove PCC backend&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e5c3fd080e9f112b5d3c8c4e676000574727f6d7&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                            <outwardlinks description="is blocking">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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|i00he7:</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>