Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
When I execute the following command to create a DoM file with specific striping settings:
lfs setstripe -E 128k -L mdt -E 2M -c 1 -E 4M -c 2 -E -1 -c 4
I notice that the stripe size for components beyond the component 0 defaults to 128k, which I am not sure (on behavior). Usually, if I create striping without specifying the -s option, the stripe size defaults to 1MB.
My question is whether DoM files should also default to a 1MB stripe size for unspecified components. For instance, in the above example, should Component 0 be 128k, and the rest follow the 1MB default?
Below is the output detailing this behavior. Is this a bug or it should be a document change explaining the behavior
case 1-----
lfs setstripe -E 128k -L mdt -E 2M -c 1 -E 4M -c 2 -E -1 -c 4 /mnt/lustre/rajeev
[root@test2-single-node rocky]# lfs getstripe /mnt/lustre/rajeev
/mnt/lustre/rajeev
lcm_layout_gen: 4
lcm_mirror_count: 1
lcm_entry_count: 4
lcme_id: 1
lcme_mirror_id: 0
lcme_flags: init
lcme_extent.e_start: 0
lcme_extent.e_end: 131072
lmm_stripe_count: 0
lmm_stripe_size: 131072
lmm_pattern: mdt
lmm_layout_gen: 0
lmm_stripe_offset: 0
lcme_id: 2
lcme_mirror_id: 0
lcme_flags: 0
lcme_extent.e_start: 131072
lcme_extent.e_end: 2097152
lmm_stripe_count: 1
lmm_stripe_size: 131072
lmm_pattern: raid0
lmm_layout_gen: 0
lmm_stripe_offset: -1
lcme_id: 3
lcme_mirror_id: 0
lcme_flags: 0
lcme_extent.e_start: 2097152
lcme_extent.e_end: 4194304
lmm_stripe_count: 2
lmm_stripe_size: 131072 <<<<
lmm_pattern: raid0
lmm_layout_gen: 0
lmm_stripe_offset: -1
lcme_id: 4
lcme_mirror_id: 0
lcme_flags: 0
lcme_extent.e_start: 4194304
lcme_extent.e_end: EOF
lmm_stripe_count: 4
lmm_stripe_size: 131072 <<<<<
lmm_pattern: raid0
lmm_layout_gen: 0
lmm_stripe_offset: -1
case 2 —
[root@test2-single-node rocky]#
[root@test2-single-node rocky]# lfs getstripe /mnt/lustre/rajeev1
/mnt/lustre/rajeev1
lmm_stripe_count: 1
lmm_stripe_size: 1048576 <<<<<
lmm_pattern: raid0
lmm_layout_gen: 0
lmm_stripe_offset: 0
obdidx objid objid group
0 6 0x6 0