<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:44:31 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-11512] DL-SNAP: Directory Level Snapshot </title>
                <link>https://jira.whamcloud.com/browse/LU-11512</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;DL-SNAP is a feature designed for directory level file backups.&lt;/p&gt;

&lt;p&gt;It is implemented on top of lustre ldiskfs without modification of ext4 disk format, though we set a special original flag to FEATURE of the superblock in order to check whether DL-SNAP is enabled.&lt;/p&gt;

&lt;p&gt;The feature makes execution of e2fsck command failed although no modification to ext2 file system structure.&lt;/p&gt;

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

&lt;p&gt;DL-SNAP uses COW(Copy On Write) mechanism to reduce backup time and storage usage.&#160; When we create a snapshot, only inodes are created. At this point, new data blocks are not allocated on OST.&#160; Data blocks of snapshot are allocated when original file is modified.&lt;/p&gt;

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

&lt;p&gt;Not only root users but also ordinary users can create snapshots. Users can create a snapshot of a directory using lfs command with snapshot option, and restore files by usual process such as cp command.&lt;/p&gt;

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

&lt;p&gt;For more information, please check the &lt;a href=&quot;http://wiki.lustre.org/images/8/80/LUG2016D2_DL-SNAP_Sumimoto.pdf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;presentation at LUG2016&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="53590">LU-11512</key>
            <summary>DL-SNAP: Directory Level Snapshot </summary>
                <type id="2" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11311&amp;avatarType=issuetype">New Feature</type>
                                            <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="takamura">Tatsushi Takamura</assignee>
                                    <reporter username="takamura">Tatsushi Takamura</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 12 Oct 2018 10:05:57 +0000</created>
                <updated>Mon, 12 Jul 2021 18:29:41 +0000</updated>
                                            <version>Lustre 2.6.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>13</watches>
                                                                            <comments>
                            <comment id="235191" author="adilger" created="Mon, 22 Oct 2018 03:10:13 +0000"  >&lt;p&gt;This ticket has the &quot;patch&quot; label, but I don&apos;t see a patch attached to this ticket or in Gerrit?&lt;/p&gt;</comment>
                            <comment id="236139" author="takamura" created="Thu, 1 Nov 2018 12:41:45 +0000"  >&lt;p&gt;Sorry for the late reply. I have attached dl_snapshot patch to this ticket.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/31390/31390_dl_snapshot.patch&quot; title=&quot;dl_snapshot.patch attached to LU-11512&quot;&gt;dl_snapshot.patch&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="236220" author="gerrit" created="Fri, 2 Nov 2018 10:02:18 +0000"  >&lt;p&gt;Tatsushi Takamura (takamr.tatsushi@jp.fujitsu.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33555&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33555&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11512&quot; title=&quot;DL-SNAP: Directory Level Snapshot &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11512&quot;&gt;LU-11512&lt;/a&gt; ldiskfs: DL-SNAP Directory Level Snapshot&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_6&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 303f237c5e116ac271f03db3cc1a3aeb2568b7f0&lt;/p&gt;</comment>
                            <comment id="236239" author="wshilong" created="Fri, 2 Nov 2018 15:14:30 +0000"  >&lt;p&gt;Still not look into the detailed codes, but from PPT, a quick question:&lt;/p&gt;

&lt;p&gt;Is DL-SNAP recursive for sub dir?&lt;/p&gt;</comment>
                            <comment id="236268" author="adilger" created="Sat, 3 Nov 2018 00:04:32 +0000"  >&lt;p&gt;Thank you for contributing the patch.  Is there any kind of design documentation or description that was written before or during development?  Even if it is in Japanese, we can try machine translation to try and understand the implementation better.&lt;/p&gt;</comment>
                            <comment id="236270" author="lixi_wc" created="Sat, 3 Nov 2018 00:19:30 +0000"  >&lt;p&gt;I&apos;ve been looking into the Ext4 patch a little bit. Please correct me if I am wrong  Tatsushi-san, but I think on Ext4 level, recurisve subdirectory snapshot is not supported. It might be implemented on Lustre level? I have a feeling that data on MDT might causes some difficulty for this snapshot implementation.&lt;/p&gt;</comment>
                            <comment id="236312" author="takamura" created="Mon, 5 Nov 2018 09:03:48 +0000"  >&lt;p&gt;We didn&apos;t understand that adding original code to ldiskfs is not acceptable, because there are some patches(lustre/kernel_patches/patches/) modifying original kernel source.&lt;br/&gt;
This DL-SNAP code is impossible to be merged into Ext4 mainline and it is impossible to realize DL-SNAP feature without adding code to ldiskfs.&lt;br/&gt;
So we think it is impossible to be merged into lustre.&lt;/p&gt;

&lt;p&gt;For future reference, could you tell us the rules(which sources are acceptable or not to modify), difference in contents or polices of &quot;ldiskfs/kernel_patches/patches/&quot; and &quot;lustre/kernel_patches/patches/&quot;.&lt;br/&gt;
For example, can we create patches(not merged in mainline) which modify kernel code in &quot;lustre/kernel_patches/patches/&quot;?&lt;/p&gt;</comment>
                            <comment id="236334" author="adilger" created="Mon, 5 Nov 2018 17:52:20 +0000"  >&lt;p&gt;Tatsushi-san, it is not impossible to get changes included into the upstream ext4, but it takes time, effort,  and coordination to do so. It is unfortunate that this patch is already several years old, as we could have used that time to discuss such changes with the upstream ext4 maintainers (of which I am one) and work to include the changes into the upstream ext4 code over that time. Maybe the changes could have already been in the upstream kernel (even RHEL or SLES distro kernels), as was done with project quotas, large xattrs, and large directory support. &lt;/p&gt;

&lt;p&gt;The  patches under &lt;tt&gt;lustre/kernel_patches/patches&lt;/tt&gt; are for the Lustre server kernel. While we &lt;b&gt;do&lt;/b&gt; allow patches to be included there, they cannot be required patches, only optional patches (eg. to improve performance or to backport fixes and features from upstream kernels).  We have moved away from adding features only to the Lustre kernel, since this adds maintenance burden for each new kernel added, and makes it difficult for users to update their kernels. The current Lustre server can build and run without any &lt;b&gt;server&lt;/b&gt; patches, though an ldiskfs patch series is still needed for each kernel, but not if ZFS is used.&lt;/p&gt;

&lt;p&gt;I will take a look at the DL Snap changes when I have a chance, and see whether they are acceptable to be submitted upstream for ext4.  At a minimum, they would need to be updated to the latest kernel, but there may be other changes needed in order to make them compatible with newer features. &lt;/p&gt;</comment>
                            <comment id="236520" author="takamura" created="Wed, 7 Nov 2018 06:29:18 +0000"  >&lt;p&gt;Thank you very much for teaching me in great detail, Andreas.&lt;br/&gt;
We think DL_SNAP patch is difficut to be merged into Ext4 mainline, because it don&apos;t work as a stand-alone.&lt;br/&gt;
But, could you please look at this patch if that is okay. If you need design documentations still, we will send you.&lt;/p&gt;</comment>
                            <comment id="236521" author="takamura" created="Wed, 7 Nov 2018 06:42:25 +0000"  >&lt;p&gt;Hello Wang and Li&lt;/p&gt;

&lt;p&gt;DL-SNAP can create snapshot files recursivly for subdirectory. &lt;br/&gt;
It scans files under the target directory and sends snapshot creation requests correspond to the original files(for the number of files times).&lt;/p&gt;</comment>
                            <comment id="306993" author="artem_blagodarenko" created="Mon, 12 Jul 2021 18:29:41 +0000"  >&lt;p&gt;HAS_SNAPSHOT feature has been being reserved too long without the feature implementation.&#160;&#160;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt; guarded the flag in EXT4 today, but at some moment without any progress, the flag can be excluded.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="31390" name="dl_snapshot.patch" size="347446" author="takamura" created="Thu, 1 Nov 2018 12:40:31 +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|i00453:</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>