[LU-5033] invalid UID for inode on ost?? Created: 08/May/14  Updated: 29/Oct/14  Resolved: 29/Oct/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.3
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Mahmoud Hanafi Assignee: Niu Yawei (Inactive)
Resolution: Duplicate Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 13916

 Description   

I ran into some inode on the ost with invalid UID info. Is this correct???

debugfs -c /dev/mapper/nbp7-ost31
debugfs 1.42.7.wc2 (07-Nov-2013)
/dev/mapper/nbp7-ost31: catastrophic mode - not reading inode or group bitmaps
debugfs: stat /O/0/d14/7469710
Inode: 50828 Type: regular Mode: 0666 Flags: 0x80000
Generation: 455490692 Version: 0x0000000c:00f37784
User: -312902144 Group: 27113 Size: 2234682
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 4368
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
atime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
mtime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
crtime: 0x52e170c0:60f59854 – Thu Jan 23 11:42:56 2014
Size of extra inode fields: 28
Extended attributes stored in inode body:
lma = "00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 8e fa 71 00 00 00 00 00 " (24)
lma: fid=[0x100000000:0x71fa8e:0x0] compat=0 incompat=0
fid = "f1 1f 03 00 02 00 00 00 8f 51 00 00 00 00 00 00 " (16)
fid: parent=[0x200031ff1:0x518f:0x0] stripe=0
EXTENTS:
(0-255):116465152-116465407, (256-511):116472576-116472831, (512-545):13938454-13938487

the uid for this file should be 9637.



 Comments   
Comment by Mahmoud Hanafi [ 08/May/14 ]

The heading should be "invalid UID for inode on ost"

Comment by Mahmoud Hanafi [ 08/May/14 ]

Some more info:

Changed UID to 0 without changing GUID Note how GUID become negative

debugfs: stat /O/0/d14/7469710
Inode: 50828 Type: regular Mode: 0666 Flags: 0x80000
Generation: 455490692 Version: 0x0000000c:00f37784
User: 0 Group: -30713 Size: 2234682
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 4368
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
atime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
mtime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
crtime: 0x52e170c0:60f59854 – Thu Jan 23 11:42:56 2014
Size of extra inode fields: 28
Extended attributes stored in inode body:
lma = "00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 8e fa 71 00 00 00 00 00 " (24)
lma: fid=[0x100000000:0x71fa8e:0x0] compat=0 incompat=0
fid = "f1 1f 03 00 02 00 00 00 8f 51 00 00 00 00 00 00 " (16)
fid: parent=[0x200031ff1:0x518f:0x0] stripe=0
EXTENTS:
(0-255):116465152-116465407, (256-511):116472576-116472831, (512-545):13938454-13938487

Changed ONLY UID to 9637
debugfs: stat /O/0/d14/7469710
Inode: 50828 Type: regular Mode: 0666 Flags: 0x80000
Generation: 455490692 Version: 0x0000000c:00f37784
User: 9637 Group: -30705 Size: 2234682
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 4368
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
atime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
mtime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
crtime: 0x52e170c0:60f59854 – Thu Jan 23 11:42:56 2014
Size of extra inode fields: 28
Extended attributes stored in inode body:
lma = "00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 8e fa 71 00 00 00 00 00 " (24)
lma: fid=[0x100000000:0x71fa8e:0x0] compat=0 incompat=0
fid = "f1 1f 03 00 02 00 00 00 8f 51 00 00 00 00 00 00 " (16)
fid: parent=[0x200031ff1:0x518f:0x0] stripe=0
EXTENTS:
(0-255):116465152-116465407, (256-511):116472576-116472831, (512-545):13938454-13938487

Changed ONLY GUID to 27113
debugfs: stat /O/0/d14/7469710
Inode: 50828 Type: regular Mode: 0666 Flags: 0x80000
Generation: 455490692 Version: 0x0000000c:00f37784
User: 1909890792 Group: 27113 Size: 2234682
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 4368
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
atime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
mtime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
crtime: 0x52e170c0:60f59854 – Thu Jan 23 11:42:56 2014
Size of extra inode fields: 28
Extended attributes stored in inode body:
lma = "00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 8e fa 71 00 00 00 00 00 " (24)
lma: fid=[0x100000000:0x71fa8e:0x0] compat=0 incompat=0
fid = "f1 1f 03 00 02 00 00 00 8f 51 00 00 00 00 00 00 " (16)
fid: parent=[0x200031ff1:0x518f:0x0] stripe=0
EXTENTS:
(0-255):116465152-116465407, (256-511):116472576-116472831, (512-545):13938454-13938487

Changed UID=9637 and GUID=27113
debugfs: stat /O/0/d14/7469710
Inode: 50828 Type: regular Mode: 0666 Flags: 0x80000
Generation: 455490692 Version: 0x0000000c:00f37784
User: 9637 Group: 27113 Size: 2234682
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 4368
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
atime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
mtime: 0x52e1791f:00000000 – Thu Jan 23 12:18:39 2014
crtime: 0x52e170c0:60f59854 – Thu Jan 23 11:42:56 2014
Size of extra inode fields: 28
Extended attributes stored in inode body:
lma = "00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 8e fa 71 00 00 00 00 00 " (24)
lma: fid=[0x100000000:0x71fa8e:0x0] compat=0 incompat=0
fid = "f1 1f 03 00 02 00 00 00 8f 51 00 00 00 00 00 00 " (16)
fid: parent=[0x200031ff1:0x518f:0x0] stripe=0
EXTENTS:
(0-255):116465152-116465407, (256-511):116472576-116472831, (512-545):13938454-13938487

Comment by Peter Jones [ 08/May/14 ]

Niu

Could you please comment on this one?

Thanks

Peter

Comment by Niu Yawei (Inactive) [ 09/May/14 ]

This problem is described in LU-4345, and patch for master is in review stage: http://review.whamcloud.com/10223

Comment by John Fuchs-Chesney (Inactive) [ 10/Jun/14 ]

Hello Mahmoud,
I see that patch 10223 is now merged.
Can I go ahead and mark this ticket as resolved – duplicate?
Thanks,
~ jfc.

Comment by Mahmoud Hanafi [ 29/Oct/14 ]

please close.

Comment by Peter Jones [ 29/Oct/14 ]

ok thanks

Generated at Sat Feb 10 01:47:57 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.