[LU-819] "lfs getstripe -M" broken Created: 02/Nov/11  Updated: 23/Feb/12  Resolved: 23/Feb/12

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

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: None

Story Points: 1
Severity: 3
Rank (Obsolete): 4716

 Description   

I'm just testing sanity.sh test_56, and wanted to see whether "lfs getstripe -M" is working correctly. However, it doesn't do what I would expect:

# lfs getstripe -v /mnt/lustre/d0.sanity/d56g/f56s.0
/mnt/lustre/d0.sanity/d56g/f56s.0
lmm_magic:          0x0BD10BD0
lmm_seq:            0x200002b10
lmm_object_id:      0x1b4
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_stripe_pattern: 1
lmm_stripe_offset:  1
        obdidx           objid          objid            group
             1           10567         0x2947                0

# lfs getstripe -M /mnt/lustre/d0.sanity/d56g/f56s.0
/mnt/lustre/d0.sanity/d56g/f56s.0 MDT index: 53

I definitely do not have 54 MDTs in my filesystem.

Secondly, the output format is very difficult to parse. I would expect that the MDT index is printed as part of the "lfs getstripe -v" output, or possibly in addition to the normal "-v" output if "-v -M" is used?

In contrast, "lfs getstripe -c" prints just the requested stripe count:

# lfs getstripe -c /mnt/lustre/d0.sanity/d56g/f56s.0
1


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

I can't find reference to 'lfs getstripe -M' in the manual. What does it do?

Comment by Di Wang [ 04/Nov/11 ]

It get MDT index of the file, and it is only useful when there are multiple MDTs(DNE). Currently, it is broken, I post the patch here http://review.whamcloud.com/#change,1646

Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/llite/llite_lib.c
  • lustre/lmv/lmv_obd.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre_lib.h
  • lustre/include/lustre/lustre_user.h
  • lustre/tests/sanity.sh
  • lustre/llite/llite_internal.h
  • lustre/llite/dir.c
  • lustre/llite/file.c
  • lustre/include/linux/lustre_lib.h
  • lustre/include/obd.h
  • lustre/tests/test-framework.sh
  • lustre/utils/lfs.c
  • lustre/include/lustre/liblustreapi.h
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/llite/dir.c
  • lustre/include/linux/lustre_lib.h
  • lustre/tests/test-framework.sh
  • lustre/utils/lfs.c
  • lustre/lmv/lmv_obd.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre_lib.h
  • lustre/include/lustre/lustre_user.h
  • lustre/tests/sanity.sh
  • lustre/include/lustre/liblustreapi.h
  • lustre/include/obd.h
  • lustre/llite/llite_internal.h
  • lustre/llite/llite_lib.c
  • lustre/llite/file.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,client,el5,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/llite/llite_lib.c
  • lustre/utils/lfs.c
  • lustre/utils/liblustreapi.c
  • lustre/lmv/lmv_obd.c
  • lustre/llite/llite_internal.h
  • lustre/include/lustre/lustre_user.h
  • lustre/tests/sanity.sh
  • lustre/include/linux/lustre_lib.h
  • lustre/include/lustre_lib.h
  • lustre/include/lustre/liblustreapi.h
  • lustre/include/obd.h
  • lustre/llite/dir.c
  • lustre/tests/test-framework.sh
  • lustre/llite/file.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/llite/llite_internal.h
  • lustre/tests/sanity.sh
  • lustre/include/lustre_lib.h
  • lustre/tests/test-framework.sh
  • lustre/llite/dir.c
  • lustre/include/lustre/lustre_user.h
  • lustre/llite/llite_lib.c
  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/liblustreapi.c
  • lustre/include/linux/lustre_lib.h
  • lustre/lmv/lmv_obd.c
  • lustre/utils/lfs.c
  • lustre/include/obd.h
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/utils/lfs.c
  • lustre/include/obd.h
  • lustre/llite/llite_internal.h
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/tests/sanity.sh
  • lustre/lmv/lmv_obd.c
  • lustre/include/lustre/lustre_user.h
  • lustre/llite/llite_lib.c
  • lustre/include/lustre_lib.h
  • lustre/llite/dir.c
  • lustre/include/linux/lustre_lib.h
  • lustre/tests/test-framework.sh
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,server,el5,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/include/lustre_lib.h
  • lustre/llite/llite_lib.c
  • lustre/llite/llite_internal.h
  • lustre/utils/liblustreapi.c
  • lustre/include/linux/lustre_lib.h
  • lustre/tests/sanity.sh
  • lustre/lmv/lmv_obd.c
  • lustre/include/obd.h
  • lustre/llite/dir.c
  • lustre/llite/file.c
  • lustre/include/lustre/lustre_user.h
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/lfs.c
  • lustre/tests/test-framework.sh
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,client,el5,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/include/linux/lustre_lib.h
  • lustre/utils/liblustreapi.c
  • lustre/llite/llite_internal.h
  • lustre/llite/dir.c
  • lustre/llite/llite_lib.c
  • lustre/include/lustre/lustre_user.h
  • lustre/tests/test-framework.sh
  • lustre/include/lustre/liblustreapi.h
  • lustre/tests/sanity.sh
  • lustre/include/lustre_lib.h
  • lustre/llite/file.c
  • lustre/utils/lfs.c
  • lustre/include/obd.h
  • lustre/lmv/lmv_obd.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,server,el5,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/llite/dir.c
  • lustre/lmv/lmv_obd.c
  • lustre/llite/file.c
  • lustre/include/lustre_lib.h
  • lustre/tests/test-framework.sh
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/llite_internal.h
  • lustre/tests/sanity.sh
  • lustre/llite/llite_lib.c
  • lustre/include/linux/lustre_lib.h
  • lustre/include/obd.h
  • lustre/include/lustre/lustre_user.h
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,client,el6,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/utils/liblustreapi.c
  • lustre/include/lustre_lib.h
  • lustre/include/obd.h
  • lustre/include/linux/lustre_lib.h
  • lustre/tests/test-framework.sh
  • lustre/llite/llite_internal.h
  • lustre/include/lustre/lustre_user.h
  • lustre/llite/file.c
  • lustre/lmv/lmv_obd.c
  • lustre/llite/llite_lib.c
  • lustre/utils/lfs.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/tests/sanity.sh
  • lustre/llite/dir.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,server,el6,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/tests/test-framework.sh
  • lustre/include/lustre_lib.h
  • lustre/include/lustre/lustre_user.h
  • lustre/llite/dir.c
  • lustre/lmv/lmv_obd.c
  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/llite_lib.c
  • lustre/include/obd.h
  • lustre/llite/llite_internal.h
  • lustre/tests/sanity.sh
  • lustre/include/linux/lustre_lib.h
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,server,el6,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/include/linux/lustre_lib.h
  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/llite_internal.h
  • lustre/include/lustre_lib.h
  • lustre/llite/dir.c
  • lustre/tests/sanity.sh
  • lustre/tests/test-framework.sh
  • lustre/llite/llite_lib.c
  • lustre/utils/liblustreapi.c
  • lustre/lmv/lmv_obd.c
  • lustre/include/obd.h
  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/include/lustre/lustre_user.h
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,client,el5,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/tests/sanity.sh
  • lustre/include/lustre/lustre_user.h
  • lustre/utils/lfs.c
  • lustre/lmv/lmv_obd.c
  • lustre/include/linux/lustre_lib.h
  • lustre/include/lustre/liblustreapi.h
  • lustre/include/lustre_lib.h
  • lustre/llite/dir.c
  • lustre/include/obd.h
  • lustre/tests/test-framework.sh
  • lustre/llite/llite_lib.c
  • lustre/llite/llite_internal.h
  • lustre/utils/liblustreapi.c
  • lustre/llite/file.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/tests/test-framework.sh
  • lustre/llite/dir.c
  • lustre/include/obd.h
  • lustre/include/linux/lustre_lib.h
  • lustre/include/lustre_lib.h
  • lustre/llite/file.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/utils/lfs.c
  • lustre/tests/sanity.sh
  • lustre/lmv/lmv_obd.c
  • lustre/include/lustre/lustre_user.h
  • lustre/llite/llite_internal.h
  • lustre/llite/llite_lib.c
  • lustre/utils/liblustreapi.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,server,el5,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/utils/lfs.c
  • lustre/lmv/lmv_obd.c
  • lustre/include/lustre/liblustreapi.h
  • lustre/include/lustre_lib.h
  • lustre/llite/dir.c
  • lustre/tests/sanity.sh
  • lustre/include/linux/lustre_lib.h
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/include/obd.h
  • lustre/llite/llite_lib.c
  • lustre/include/lustre/lustre_user.h
  • lustre/tests/test-framework.sh
  • lustre/llite/llite_internal.h
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/llite/file.c
  • lustre/tests/test-framework.sh
  • lustre/include/linux/lustre_lib.h
  • lustre/utils/liblustreapi.c
  • lustre/utils/lfs.c
  • lustre/llite/llite_internal.h
  • lustre/include/obd.h
  • lustre/tests/sanity.sh
  • lustre/include/lustre/liblustreapi.h
  • lustre/lmv/lmv_obd.c
  • lustre/include/lustre/lustre_user.h
  • lustre/llite/dir.c
  • lustre/include/lustre_lib.h
  • lustre/llite/llite_lib.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,client,el6,inkernel #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/llite/llite_lib.c
  • lustre/llite/llite_internal.h
  • lustre/include/lustre/liblustreapi.h
  • lustre/include/obd.h
  • lustre/llite/file.c
  • lustre/tests/sanity.sh
  • lustre/include/linux/lustre_lib.h
  • lustre/utils/liblustreapi.c
  • lustre/llite/dir.c
  • lustre/utils/lfs.c
  • lustre/include/lustre/lustre_user.h
  • lustre/tests/test-framework.sh
  • lustre/lmv/lmv_obd.c
  • lustre/include/lustre_lib.h
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,server,el6,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/include/lustre/lustre_user.h
  • lustre/include/linux/lustre_lib.h
  • lustre/llite/dir.c
  • lustre/tests/test-framework.sh
  • lustre/include/obd.h
  • lustre/tests/sanity.sh
  • lustre/include/lustre/liblustreapi.h
  • lustre/llite/llite_lib.c
  • lustre/llite/file.c
  • lustre/llite/llite_internal.h
  • lustre/utils/liblustreapi.c
  • lustre/include/lustre_lib.h
  • lustre/lmv/lmv_obd.c
  • lustre/utils/lfs.c
Comment by Build Master (Inactive) [ 23/Feb/12 ]

Integrated in lustre-master » i686,client,el6,ofa #486
LU-819 utils: Fix lfs getstripe -M (Revision 322968acf183ab16d952cd3026f6580957b31259)

Result = SUCCESS
Oleg Drokin : 322968acf183ab16d952cd3026f6580957b31259
Files :

  • lustre/include/obd.h
  • lustre/llite/llite_lib.c
  • lustre/include/lustre_lib.h
  • lustre/tests/test-framework.sh
  • lustre/include/lustre/lustre_user.h
  • lustre/utils/lfs.c
  • lustre/llite/file.c
  • lustre/utils/liblustreapi.c
  • lustre/include/linux/lustre_lib.h
  • lustre/llite/llite_internal.h
  • lustre/include/lustre/liblustreapi.h
  • lustre/tests/sanity.sh
  • lustre/lmv/lmv_obd.c
  • lustre/llite/dir.c
Comment by Peter Jones [ 23/Feb/12 ]

Landed for 2.2

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