<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:26:04 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-9423] Wrong uid and gid for ost objects</title>
                <link>https://jira.whamcloud.com/browse/LU-9423</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We have discovered&#160; objects that have the wrong UID or GID. For example on one filesystem there are over &amp;gt;600000 files effect.&lt;/p&gt;

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

&lt;p&gt;Here is the details:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&#160;ls -ln /nobackupp8/file_removed_for_security
-rw-r--r-- 1 10576 40770 0 Dec 8 21:40 /nobackupp8/file_removed_for_security


lfs path2fid /nobackupp8/file_removed_for_security
[0x36045b238:0x6f94:0x0]


lfs getstripe /nobackupp8/file_removed_for_security

/nobackupp8/file_removed_for_security
lmm_stripe_count: 1
lmm_stripe_size: 1048576
lmm_pattern: 1
lmm_layout_gen: 0
lmm_stripe_offset: 272
 obdidx objid objid group
 272 48704742 0x2e72ce6 0

# debugfs -c -R &lt;span class=&quot;code-quote&quot;&gt;&quot;stat /O/0/d$((48704742 % 32))/48704742&quot;&lt;/span&gt; /dev/mapper/nbp8_13_OST272
debugfs 1.42.13.wc5 (15-Apr-2016)
/dev/mapper/nbp8_13_OST272: catastrophic mode - not reading inode or group bitmaps
Inode: 361442 Type: regular Mode: 0666 Flags: 0x80000
Generation: 2149307429 Version: 0x00000027:023c6769
User: 0 Group: 0 Size: 0
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 0
Fragment: Address: 0 &lt;span class=&quot;code-object&quot;&gt;Number&lt;/span&gt;: 0 Size: 0
 ctime: 0x584a43d1:00000000 -- Thu Dec 8 21:40:33 2016
 atime: 0x00000000:00000000 -- Wed Dec 31 16:00:00 1969
 mtime: 0x584a43d1:00000000 -- Thu Dec 8 21:40:33 2016
crtime: 0x584a43c0:3db75e98 -- Thu Dec 8 21:40:16 2016
Size of extra inode fields: 28
Extended attributes stored in inode body: 
 lma = &lt;span class=&quot;code-quote&quot;&gt;&quot;08 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e6 2c e7 02 00 00 00 00 &quot;&lt;/span&gt; (24)
 lma: fid=[0x100000000:0x2e72ce6:0x0] compat=8 incompat=0
 fid = &lt;span class=&quot;code-quote&quot;&gt;&quot;38 b2 45 60 03 00 00 00 94 6f 00 00 00 00 00 00 &quot;&lt;/span&gt; (16)
 fid: parent=[0x36045b238:0x6f94:0x0] stripe=0
EXTENTS:




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

&lt;p&gt;What would cause this discrepancy and how do we fix them.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="45794">LU-9423</key>
            <summary>Wrong uid and gid for ost objects</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="pjones">Peter Jones</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 May 2017 19:37:13 +0000</created>
                <updated>Tue, 20 Feb 2018 18:42:40 +0000</updated>
                            <resolved>Tue, 20 Feb 2018 18:42:40 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="194111" author="adilger" created="Tue, 2 May 2017 03:01:31 +0000"  >&lt;p&gt;The UID nand GID are only set on objects when they are written by the client or ownership explicitly changed by chown/chmod . In this example you can see that the object size is zero, so it has no data in it. &lt;/p&gt;

&lt;p&gt;Even if the OST object ownership is incorrect, this does not affect the access permissions to the file, only the quota accounting. The access to the file is controlled solely by the MDS. &lt;/p&gt;</comment>
                            <comment id="198704" author="mhanafi" created="Thu, 8 Jun 2017 22:42:40 +0000"  >&lt;p&gt;I found an example of file with non-zero object size and wrong GID. There are other with wrong UID. This is having an effect on our quota account. How should we try to correct this.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;ls -l /xxxxxx&lt;span class=&quot;code-comment&quot;&gt;//xxxxxx/ecco_orbit20_Kah-Song_sgi-wkload_SEE_ReadME
&lt;/span&gt;-rwx------ 1 xxxxxxx g1119 354 Jun  7  2010 /xxxxxxx&lt;span class=&quot;code-comment&quot;&gt;//xxxxxx/ecco_orbit20_Kah-Song_sgi-wkload_SEE_ReadME
&lt;/span&gt;
lfs getstripe /xxxxx/xxxxx/ecco_orbit20_Kah-Song_sgi-wkload_SEE_ReadME
/xxxxx/xxxxxx/ecco_orbit20_Kah-Song_sgi-wkload_SEE_ReadME
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_pattern:        1
lmm_layout_gen:     0
lmm_stripe_offset:  37
	obdidx		 objid		 objid		 group
	    37	       2943541	     0x2cea35	             0

# debugfs -c -R &lt;span class=&quot;code-quote&quot;&gt;&quot;stat /O/0/d$((2943541 %32))/2943541&quot;&lt;/span&gt; /dev/mapper/nbp7-ost37
debugfs 1.42.13.wc5 (15-Apr-2016)
/dev/mapper/nbp7-ost37: catastrophic mode - not reading inode or group bitmaps
Inode: 7808805 Type: regular Mode: 0666 Flags: 0x80000
Generation: 3578042382 Version: 0x0000000c:0013b4c7
User: 1968 Group: 0 Size: 354
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 8
Fragment: Address: 0 &lt;span class=&quot;code-object&quot;&gt;Number&lt;/span&gt;: 0 Size: 0
 ctime: 0x529619dd:00000000 -- Wed Nov 27 08:12:13 2013
 atime: 0x5293db12:00000000 -- Mon Nov 25 15:19:46 2013
 mtime: 0x4c0d292a:00000000 -- Mon Jun 7 10:15:22 2010
crtime: 0x529616bc:e828e8cc -- Wed Nov 27 07:58:52 2013
Size of extra inode fields: 28
Extended attributes stored in inode body: 
 lma = &lt;span class=&quot;code-quote&quot;&gt;&quot;00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 35 ea 2c 00 00 00 00 00 &quot;&lt;/span&gt; (24)
 lma: fid=[0x100000000:0x2cea35:0x0] compat=0 incompat=0
 fid = &lt;span class=&quot;code-quote&quot;&gt;&quot;7c 4e 01 00 02 00 00 00 3a 01 00 00 00 00 00 00 &quot;&lt;/span&gt; (16)
 fid: parent=[0x200014e7c:0x13a:0x0] stripe=0
EXTENTS:
(0):1999046356


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;As you can see the OST GID is 0&lt;/p&gt;</comment>
                            <comment id="198714" author="adilger" created="Fri, 9 Jun 2017 03:15:25 +0000"  >&lt;p&gt;Based on the age of this file (2013)  it is entirely possible that this is from some older problem that has been fixed in the code already. &lt;/p&gt;

&lt;p&gt;One way to fix this problem is to run LFSCK &quot;&lt;tt&gt;layout&lt;/tt&gt;&quot; scan and repair the OST objects. If that functionality is not available in your version of Lustre is to run a &quot;find&quot; across the whole filesystem and &quot;chown&quot; the files back to the same owner and group. That will reset the ownership on the OST objects, but will also affect the ctime of every file. &lt;/p&gt;</comment>
                            <comment id="221312" author="mhanafi" created="Tue, 20 Feb 2018 18:31:10 +0000"  >&lt;p&gt;We can close this case.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="221315" author="pjones" created="Tue, 20 Feb 2018 18:42:40 +0000"  >&lt;p&gt;ok - thanks Mahmoud&lt;/p&gt;</comment>
                    </comments>
                    <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|hzzbjr:</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>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>