[LU-2587] Quota error after upgrade from 2.1.4 to 2.4 Created: 08/Jan/13  Updated: 29/Jan/13  Resolved: 23/Jan/13

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

Type: Bug Priority: Blocker
Reporter: Sarah Liu Assignee: Niu Yawei (Inactive)
Resolution: Fixed Votes: 0
Labels: HB
Environment:

before upgrade server and client: 2.1.4
after upgrade server and client: lustre-master tag-2.3.58 build#1142


Attachments: Text File upgrade-downgrade..dmesg.fat-amd-1.1357629993.log     Text File upgrade-downgrade..dmesg.fat-amd-3.1357629993.log    
Severity: 3
Rank (Obsolete): 6030

 Description   

The test steps is:
1.on lustre-2.1.4, set quota limit for quota_2usr and run IOZONE to use up the limit
2.stop lustre, upgrade the whole system to 2.4, enable quota on the new system
3.run IOZONE again on lustre-2.4 with the same user, should expect EDQUOT but the user can still write data exceed quota limit a lot.

Lustre: DEBUG MARKER: upgrade-downgrade : @@@@@@ FAIL: iozone did not fail with EDQUOT

Quota info on lustre-2.1.4 filesystem before running IOZONE:

Listing quotas for user "quota_2usr" and group "quota_2usr" on client-5,client-6...
client-5: Disk quotas for user quota_2usr (uid 60001):
client-5:      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
client-5:     /mnt/lustre       0       0 1048576       -       0       0    5120       -
client-5: lustre-MDT0000_UUID
client-5:                       0       -  131072       -       0       -    1280       -
client-5: lustre-OST0000_UUID
client-5:                       0       -   65536       -       -       -       -       -

client-5: Disk quotas for group quota_2usr (gid 60001):
client-5:      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
client-5:     /mnt/lustre       0       0 1048576       -       0       0    5120       -
client-5: lustre-MDT0000_UUID
client-5:                       0       -  131072       -       0       -    1280       -
client-5: lustre-OST0000_UUID
client-5:                       0       -   65536       -       -       -       -       -

Quota info on lustre-2.1.4 filesystem after running IOZONE :

Listing quotas for user "quota_2usr" and group "quota_2usr" on client-5,client-6...
client-5: Disk quotas for user quota_2usr (uid 60001):
client-5:      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
client-5:     /mnt/lustre 1049108*      0 1048576       -       3       0    5120       -
client-5: lustre-MDT0000_UUID
client-5:                       4       -    1024       -       3       -     640       -
client-5: lustre-OST0000_UUID
client-5:                 1049104*      - 1047552       -       -       -       -       -

client-5: Disk quotas for group quota_2usr (gid 60001):
client-5:      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
client-5:     /mnt/lustre 1049108*      0 1048576       -       3       0    5120       -
client-5: lustre-MDT0000_UUID
client-5:                       4       -    1024       -       3       -     640       -
client-5: lustre-OST0000_UUID
client-5:                 1049104*      - 1047552       -       -       -       -       -

Quota info after upgrade from 2.1.4 to 2.4, before running IOZONE:

Listing quotas for user "quota_2usr" and group "quota_2usr" on client-5,client-6...
client-5: Disk quotas for user quota_2usr (uid 60001):
client-5:      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
client-5:     /mnt/lustre 1049108*      0 1048576       -       3       0    5120       -
client-5: lustre-MDT0000_UUID
client-5:                       4       -       0       -       3       -       0       -
client-5: lustre-OST0000_UUID
client-5:                 1049104       -       0       -       -       -       -       -

client-5: Disk quotas for group quota_2usr (gid 60001):
client-5:      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
client-5:     /mnt/lustre 1049108*      0 1048576       -       3       0    5120       -
client-5: lustre-MDT0000_UUID
client-5:                       4       -       0       -       3*      -       3       -
client-5: lustre-OST0000_UUID
client-5:                 1049104       -       0       -       -       -       -       -

Quota info on lustre-2.4 filesystem after running IOZONE:

Listing quotas for user "quota_2usr" and group "quota_2usr" on client-5,client-6...
client-5: Disk quotas for user quota_2usr (uid 60001):
client-5:      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
client-5:     /mnt/lustre 3146264*      0 1048576       -       0       0    5120       -
client-5: lustre-MDT0000_UUID
client-5:                       0       -       0       -       0       -    1024       -
client-5: lustre-OST0000_UUID
client-5:                 3146264       -       0       -       -       -       -       -


 Comments   
Comment by Johann Lombardi (Inactive) [ 08/Jan/13 ]

Sarah, did you enable quota on the MGS via lctl conf_param? If not, enforcement won't be enabled and this behavior is expected.

Comment by Niu Yawei (Inactive) [ 08/Jan/13 ]

Seems there is a defect: after the global index & global index copy were created, they both set the initial version as 1, so even if the global index migration happened, slave will not reintegrate the global index...

Comment by Niu Yawei (Inactive) [ 08/Jan/13 ]

http://review.whamcloud.com/4969

Comment by Sarah Liu [ 08/Jan/13 ]

Sarah, did you enable quota on the MGS via lctl conf_param? If not, enforcement won't be enabled and this behavior is expected.

I did lctl conf_param lustre.quota.mdt/ost=ug

Comment by Niu Yawei (Inactive) [ 23/Jan/13 ]

landed for 2.4

Comment by Sarah Liu [ 29/Jan/13 ]

verified, close.

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