[LU-3861] Quota issues after upgrade from 2.1.4 to 2.4 Created: 29/Aug/13 Updated: 29/Oct/13 Resolved: 29/Oct/13 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.4.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Mahmoud Hanafi | Assignee: | Niu Yawei (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 10014 | ||||||||
| Description |
|
filesystem was create with lustre 2.1.4 with quota off. Files were created. The the filesystem was upgraded. Did run tunefs.lustre --quota on all osts and mdt. inode quota doesn't release when you go over the remove the files. Also how do you run a "quotacheck" to account for all the files created when quota was off |
| Comments |
| Comment by Mahmoud Hanafi [ 29/Aug/13 ] |
|
ok we figured out why this was. inodes are aquired 1024 at a time. But the other question remains why is not account for the files that where created before the upgrade. |
| Comment by Peter Jones [ 29/Aug/13 ] |
|
Niu Could you please advise here? Thanks Peter |
| Comment by Niu Yawei (Inactive) [ 30/Aug/13 ] |
The 'quotacheck' would be run when you enable the quota feature by 'tunefs.lustre --quota', and quota accounting will always be enabled form then on. Do you mean the files created before upgrade were not accounted? Could you show me the out of 'lfs quota' and the real file count? |
| Comment by Mahmoud Hanafi [ 30/Aug/13 ] |
|
yes files created pre-upgrade are not accounted for in the inode count. As you can see I have > 20 files but lfs quota says i have 4. And those are the 4 I created post upgrade. pfe21 /nobackupp7 # find /nobackupp7 -user mhanafi -type f | wc -l |
| Comment by Niu Yawei (Inactive) [ 31/Aug/13 ] |
|
What's the e2fsprogs version on MDS? Was there any error messages when running 'tune2fs.lustre --quota'? Could you paste the output of 'dumpe2fs met_device' and try to collect debug log when start mdt and when running 'lfs quota'? |
| Comment by Niu Yawei (Inactive) [ 05/Sep/13 ] |
|
I believe it's the same problem described in |
| Comment by Mahmoud Hanafi [ 05/Sep/13 ] |
|
No errors where seen during the tune2fs.lustre --quota. attach is debug logs while running quota command |
| Comment by Niu Yawei (Inactive) [ 06/Sep/13 ] |
|
Hi, Mahmoud Could install the e2fsprogs from http://build.whamcloud.com/job/e2fsprogs-reviews/173/ (see http://review.whamcloud.com/#/c/7556/), and disable/enable quota for all your mdt and ost devices by:
Then setup lustre to see if the problem is resloved? Thanks. |
| Comment by Jay Lan (Inactive) [ 06/Sep/13 ] |
|
Which branch should I use to build for lustre-2.4? Thanks! |
| Comment by Jay Lan (Inactive) [ 06/Sep/13 ] |
|
Please ignore my question earlier wrt branch of e2fsprogs git. I pulled things down and did a 'make rpm'. It failed here... 154 tests succeeded 1 tests failed What mistake could I have made? Please advise. Thanks! |
| Comment by Jay Lan (Inactive) [ 06/Sep/13 ] |
|
The tests/m_quota/expect.1 file generated during 'make rpm'. This test failed. The source is at https://github.com/jlan/e2fsprogs-nas. Branch nas-2.4.0. |
| Comment by Niu Yawei (Inactive) [ 09/Sep/13 ] |
|
Hi, Jay You can download rpm from http://build.whamcloud.com/job/e2fsprogs-reviews/173/ directly. If you want to build by yourself, you'd build patchset2, and if m_quota test failed, it probably because the users/groups on your building system is different with ours, you can just check the m_quota.failed file and correct the m_quota/expect.1. |
| Comment by Jay Lan (Inactive) [ 09/Sep/13 ] |
|
Attached the m_quota.failed file. It does not seem to be the users/groups ID problem. Can you check the file and let me know what the failure was about? Thanks! |
| Comment by Niu Yawei (Inactive) [ 10/Sep/13 ] |
|
Jay, you can just correct your m_quota/expect.1 as the m_quota.failed shows. |
| Comment by Jay Lan (Inactive) [ 10/Sep/13 ] |
|
Hi Niu, yeah, that worked. Thanks! Hmm, I would assume the tests/m_quota/expect.1 file specifies expected values out of a good test run. If I change the expected values to get tests passed, I am wondering what's the point of running the tests? |
| Comment by Niu Yawei (Inactive) [ 11/Sep/13 ] |
|
I'm not quite sure why the free blocks are not constant on different building system when quota feature enabled. |
| Comment by Mahmoud Hanafi [ 11/Sep/13 ] |
|
Installing the new e2fsprogs and running tune2fs -O ^quota $device/tune2fs -O quota $device had fixed the issue. lfs quota is now reporting correctly. mhanafi@pfe21:~> lfs quota -u mhanafi /nobackupp7 |
| Comment by Mahmoud Hanafi [ 29/Oct/13 ] |
|
This case can be closed |
| Comment by Peter Jones [ 29/Oct/13 ] |
|
Thanks Mahmoud |