[LU-825] lfs getstrip fails on a file when parent dir cannot be read. Created: 04/Nov/11  Updated: 03/Feb/15  Resolved: 03/Feb/15

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.0.0, Lustre 2.1.0, Lustre 2.2.0, Lustre 1.8.7, Lustre 1.8.6
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Richard Henwood (Inactive) Assignee: Richard Henwood (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 10477

 Description   

to reproduce:

[build@rhel6_21 ~]$ mkdir -p /mnt/lustre/foo/bar
[build@rhel6_21 ~]$ touch /mnt/lustre/foo/bar/baz
[build@rhel6_21 ~]$ chmod ugo-r /mnt/lustre/foo/bar
[build@rhel6_21 ~]$ lfs getstripe /mnt/lustre/foo/bar/baz
error: getstripe failed for /mnt/lustre/foo/bar/baz.
[build@rhel6_21 ~]$ 
[build@rhel6_21 ~]$ 
[build@rhel6_21 ~]$ 
[build@rhel6_21 ~]$ # check that the file is really ok:
[build@rhel6_21 ~]$ stat /mnt/lustre/foo/bar/baz
  File: `/mnt/lustre/foo/bar/baz'
  Size: 0         	Blocks: 0          IO Block: 2097152 regular empty file
Device: 2c54f966h/743766374d	Inode: 144115205255725059  Links: 1
Access: (0664/-rw-rw-r--)  Uid: (  500/   build)   Gid: (  500/   build)
Access: 2011-11-04 20:50:11.000000000 -0400
Modify: 2011-11-04 20:50:11.000000000 -0400
Change: 2011-11-04 20:50:11.000000000 -0400


This is effect is most likely caused by the implementation of getstripe within lfs. When getstripe is called with against a file, getstripe opens the parent directory of the file in question.



 Comments   
Comment by Richard Henwood (Inactive) [ 07/Nov/11 ]

After discussion with Andreas: the current implementation avoids instantiating inodes on the client for every single file that is found by lfs getstripe -r. Otherwise, if each file is opened to do an ioctl to get the layout, this will increase the RPC traffic to the client dramatically

Comment by Richard Henwood (Inactive) [ 10/Nov/11 ]

Will this implementation (opening the parent dir) play nicely with DNE - when it lands?

Comment by Richard Henwood (Inactive) [ 03/Feb/15 ]

I haven't had any interest in this in 3 years, so I'm closing it.

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