[LU-1667] setstripe, stripe size of 4G error is inaccurate. Created: 23/Jul/12  Updated: 03/Feb/15  Resolved: 03/Feb/15

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.4.0

Type: Bug Priority: Minor
Reporter: Richard Henwood (Inactive) Assignee: Richard Henwood (Inactive)
Resolution: Done Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 4422

 Description   

The wording on the error message you get from setstripe -s 4G is inaccurate.

[root@centos62_vanilla ~]# lfs setstripe -s 4G /mnt/lustre
warning: stripe size larger than 4G is not currently supported and would wrap: Invalid argument (22)
error: setstripe: create stripe file '/mnt/lustre' failed
[root@centos62_vanilla ~]# lfs setstripe -s 4095M /mnt/lustre

More suitable wording would be stripe size of 4G or larger is not currently supported and would wrap.

  • I might also question the value of the 'and would wrap'.


 Comments   
Comment by Richard Henwood (Inactive) [ 15/Aug/12 ]

http://review.whamcloud.com/#change,3464

Comment by Richard Henwood (Inactive) [ 26/Sep/12 ]

landed

Comment by parinay v kondekar (Inactive) [ 17/Jun/13 ]
  • Either the error is wrong or the check is wrong
    [admin@sjsc-6 admin]$ lfs setstripe -c 4 -s 4g stripe4_4g_chunk
    warning: stripe size larger than 4G is not currently supported and would wrap: Invalid argument (22)
    error: setstripe: create stripe file 'stripe4_4g_chunk' failed
    [admin@sjsc-6 admin]$ lfs setstripe -c 4 -s 4095m stripe4_4g_chunk
    
    if (stripe_size >= (1ULL << 32)){ rc = -EINVAL; llapi_error(LLAPI_MSG_ERROR, rc, "warning: stripe size larger than 4G " "is not currently supported and would wrap"); return rc; }
    
  • Also note the error code returned should be re-evaluated as -22 may not be appropriate.
  • This should be a trivial fix by correctly wording the error message:
    "warning: stripe size equal to or greater than 4G " ; With appropriate error code.
  • After the change it would be ,

[root@osh-1 ~]# lfs setstripe -s 4G -c -1 /mnt/client/file.log
warning: stripe size equal to OR greater than 4G : Operation not permitted (-1)
error: setstripe: create stripe file '/mnt/client/file.log' failed
[root@osh-1 ~]#

Need to re-open this bug.

Xyratex-bug-id= MRP-857

Comment by parinay v kondekar (Inactive) [ 16/Apr/14 ]

http://review.whamcloud.com/9972

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

The additional change was denied, re-closing this ticket as at least a year has gone past since last activity.

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