[LU-16227] "lfs setdirstripe -D -i x,y,x" should not create a default striped directory layout Created: 07/Oct/22  Updated: 01/May/23  Resolved: 01/May/23

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

Type: Improvement Priority: Critical
Reporter: Andreas Dilger Assignee: Tim Day
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Related
Rank (Obsolete): 9223372036854775807

 Description   

Users have repeatedly used "lfs setdirstripe -D -i x,y,z <directory>" with the mistaken belief that this will load balance or round-robin subdirectory creation among the x,y,z MDTs. That is not the case, and instead this will cause all new subdirectories to be striped across all of the specified MDTs, which is a terrible idea and can lead to filesystem problems if too many striped directories are created (too large REMOTE_PARENT_DIR, slow performance, running out of inodes, etc).

The use of "-i x,y,z" should return a clear error that this is creating a default striped directory layout and that this is a bad idea, if it is not accompanied by "-c N" that matches the number of index values given. That makes it more clear that this command is creating an N-striped directory instead of leading users in the wrong direction.



 Comments   
Comment by Gerrit Updater [ 15/Dec/22 ]

"Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49420
Subject: LU-16227 utils: Add warning for lfs setdirstripe -i flag
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 233049af321b8318205d7c3179e5fa16e23b2477

Comment by Gerrit Updater [ 13/Jan/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49420/
Subject: LU-16227 utils: Add warning for lfs setdirstripe -D -i x,y,z
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 6c93b9c3fcf581bb1fb04577fbcd803d0d02f802

Generated at Sat Feb 10 03:25:08 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.