[LU-11609]  e2fsprogs-1.42.13.wc6-7 allowed formating larget MDT without extents feature Created: 03/Nov/18  Updated: 22/Mar/19  Resolved: 22/Mar/19

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

Type: Question/Request Priority: Major
Reporter: Mahmoud Hanafi Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Rank (Obsolete): 9223372036854775807

 Description   

e2fsprogs-1.42.13.wc6-7 allowed formatting large MDT (16TB) with ^extents. But the new version e2fsprogs-1.44.3.wc1-0 blocks this with error:


 mkfs_cmd = mke2fs -j -b 4096 -L nbp16:MDT0000 -m 0 -i 4000000 -t ext4 -J size=4096 -I 1024 -q -O dirdata,uninit_bg,^extents,mmp,dir_nlink,quota,huge_file,flex_bg -E lazy_journal_init -F /dev/mapper/nbp16_1-MDT0 3106406400
   Extents MUST be enabled for a 64-bit filesystem.  Pass -O extents to rectify.

Is this an issue since we have MDTs created with older version of e2fsporgs and the don't have the "extents" feature enabled.



 Comments   
Comment by Andreas Dilger [ 03/Nov/18 ]

Just to clarify, a 16TiB MDT is not considered a "large" MDT, so it shouldn't need the "64bit" or "extents" feature, since all 2^32 4KB blocks can be addressed without the use of extents. For MDTs that do not store data, the use of extents reduces directory efficiency somewhat and is intentionally disabled.

It isn't clear why mke2fs 1.44 is complaining in this case, because the specified block count 3106406400 = 0xb9280000 blocks is significantly less than 2^32 blocks. If the blocks count was specified as exactly 2^32 (or 16TB) I'd suggest to use a slightly smaller value to avoid this warning. You could try to add "--mkfsoptions="-O ^64bit"" to remove the 64bit option in case this is being inherited from your environment?

Comment by Gerrit Updater [ 03/Nov/18 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33568
Subject: LU-11609 mke2fs: allow 64bit feature without extents
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set: 1
Commit: 4124ebad28cc7706a5c567e6d4a83fa6488bfb68

Comment by Gerrit Updater [ 19/Dec/18 ]

Li Dongyang (dongyangli@ddn.com) uploaded a new patch: https://review.whamcloud.com/33897
Subject: LU-11609 mke2fs: allow 64bit feature without extents
Project: tools/e2fsprogs
Branch: master-lustre-test
Current Patch Set: 1
Commit: 4ac3ecb503215854504dbaf5f01d8758b97312b8

Comment by Gerrit Updater [ 21/Jan/19 ]

Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/33897/
Subject: LU-11609 mke2fs: allow 64bit feature without extents
Project: tools/e2fsprogs
Branch: master-lustre-test
Current Patch Set:
Commit: a2afee7659260924ca4224dd4eaf41474570cedb

Comment by Gerrit Updater [ 26/Feb/19 ]

Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/33568/
Subject: LU-11609 mke2fs: allow 64bit feature without extents
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set:
Commit: 4124ebad28cc7706a5c567e6d4a83fa6488bfb68

Comment by Andreas Dilger [ 22/Mar/19 ]

Patch landed to master-lustre for the next release (probably 1.44.6-wc1).

Comment by Andreas Dilger [ 22/Mar/19 ]

Patch pushed upstream https://patchwork.ozlabs.org/patch/1061015/

Generated at Sat Feb 10 02:45:22 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.