[LU-10921] Re-striping of DoM file returns success but no effect/change Created: 17/Apr/18  Updated: 25/Jun/18  Resolved: 19/Jun/18

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

Type: Bug Priority: Minor
Reporter: Rahul Deshmukh (Inactive) Assignee: Mikhail Pershin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   
  • Create dom file with stripe size of 1M
  • Re-stripe the same file with another valid value stripe size.
    This command returns success but value is not updated.
# lfs setstripe -E 1M -L mdt /mnt/lustre/dom
# lfs setstripe -E 64K -L mdt /mnt/lustre/dom
# lfs getstripe /mnt/lustre/dom
/mnt/lustre/dom
 lcm_layout_gen: 1
 lcm_mirror_count: 1
 lcm_entry_count: 1
 lcme_id: 1
 lcme_mirror_id: 0
 lcme_flags: init
 lcme_extent.e_start: 0
 lcme_extent.e_end: 1048576
 lmm_stripe_count: 0
 lmm_stripe_size: 1048576
 lmm_pattern: mdt
 lmm_layout_gen: 0
 lmm_stripe_offset: 0


 Comments   
Comment by Peter Jones [ 18/Apr/18 ]

Mike

Could you please advise?

Thanks

Peter

Comment by Andreas Dilger [ 19/Apr/18 ]

This appears to be true for any composite layout (i.e. using -E), regardless of whether DoM is used or not. Using lfs setstripe with a plain layout (e.g. only -c2) prints an error "stripe already set".

Comment by Mikhail Pershin [ 15/May/18 ]

yes, I've noticed that too while trying to create FLR layouts. Andreas, do you think it will be enough to return the same error for composite layout case?

Comment by Andreas Dilger [ 15/May/18 ]

It would probably be OK, but it is also tricky since components can be added to existing files, while it is not possible to do this with plain layouts.

Comment by Gerrit Updater [ 16/May/18 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/32442
Subject: LU-10921 utils: improve lfs setstripe error message
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c541f6e0a42a8a2b1d7bf24cff03a998dba52241

Comment by Andreas Dilger [ 16/May/18 ]

This patch doesn't resolve the core problem, but at least improves the existing error messages to be more user friendly.

Comment by Gerrit Updater [ 14/Jun/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/32442/
Subject: LU-10921 utils: improve lfs setstripe error message
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 18fa5cc885539b7beb79fed5061b0fffbb8fa090

Comment by Peter Jones [ 19/Jun/18 ]

Landed for 2.12

Generated at Sat Feb 10 02:39:21 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.