[LU-3846] Sanity 56u error with two OSTs Created: 28/Aug/13 Updated: 14/Jan/18 Resolved: 14/Jan/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Li Xi (Inactive) | Assignee: | Emoly Liu |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9961 | ||||||||
| Description |
|
We ran sanity tests with 2 OSTs and got following errors. == sanity test 56u: check lfs find -stripe-index works == 08:53:30 (1377824010) We found that the newly created files located on two OSTs rather than one. This might happen when the default stripe of mount point is two. So I think when creating the file, 'lfs setstripe -i 1' might not be enough, '-c 1' should be added too. I will push the patch soon. |
| Comments |
| Comment by Li Xi (Inactive) [ 28/Aug/13 ] |
|
Here is the patch. |
| Comment by Peter Jones [ 28/Aug/13 ] |
|
Emoly Could you please take care of this patch? Thanks Peter |
| Comment by Emoly Liu [ 09/Sep/13 ] |
|
Do you mean the default stripe count of mount point is two? |
| Comment by Li Xi (Inactive) [ 10/Sep/13 ] |
|
Sorry, that is a mistake. I found the default stripe count of mount point is -1, not 2. Here is the stripe informantion after running the test suit. Somehow, the new files were created with 2 stripe_count rather than 1 when the directory stripe count was -1. I thought the new file should have stripe count of 1 as the right behavior, am I wrong? [root@vm1 ~]# lfs getstripe /mnt/lustre/ /mnt/lustre/d0.sanity/d56u//file2 /mnt/lustre/d0.sanity/d56u//f.sanity.56u.2 /mnt/lustre/d0.sanity/d56u//dir1 /mnt/lustre/d0.sanity/d56u//dir2 /mnt/lustre/d0.sanity/d56u//f.sanity.56u.1 /mnt/lustre/d0.sanity/d56u//file3 /mnt/lustre/d0.sanity/d56u/dir1//file3 /mnt/lustre/d0.sanity/d56u/dir1//file2 [root@vm1 ~]# lfs getstripe /mnt/lustre/d0.sanity/d56u/dir2/ /mnt/lustre/d0.sanity/d56u/dir2//file3 /mnt/lustre/d0.sanity/d56u/dir2//file2 [root@vm1 ~]# lfs getstripe /mnt/lustre/d0.sanity/d56u/dir3/ /mnt/lustre/d0.sanity/d56u/dir3//file3 /mnt/lustre/d0.sanity/d56u/dir3//file2 |
| Comment by Emoly Liu [ 10/Sep/13 ] |
|
stripe_count=-1 means full striping, I guess your system has 2 OSTs, lmm_string_count of your new created files is 2. In lustre, the default stripe count should be 1, if you run "setstripe -d" you will see like this: [root@centos6-3 master]# ./lustre/utils/lfs getstripe -v /mnt/lustre/d (Default) /mnt/lustre/d stripe_count: 1 stripe_size: 1048576 stripe_offset: -1 There is a keyword "Default". That is why I suggested to add "setstripe -d" in your patch. |
| Comment by Gerrit Updater [ 14/Jan/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/7479/ |
| Comment by Peter Jones [ 14/Jan/18 ] |
|
Landed for 2.11 |