[LU-11923] meta_bg conflicts with resize_inode if explicitly specified for a small filesystem Created: 05/Feb/19  Updated: 30/Apr/21  Resolved: 27/Feb/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0, Lustre 2.10.6
Fix Version/s: Lustre 2.13.0

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Rank (Obsolete): 9223372036854775807

 Description   

If the meta_bg feature is explicitly specified for a filesystem smaller than 16TB, it causes a format error because the resize_inode feature is automatically enabled by /etc/mke2fs.conf for such filesystems:

mkfsoptions='-O meta_bg -E lazy_itable_init=0,lazy_journal_init=0 -J size=1024' --reformat --backfstype=ldiskfs /dev/sdc

device size = 14614528MB
formatting backing filesystem ldiskfs on /dev/sdc
        target name   testfs:OST0005
        4k blocks     3741319168
        options         -J size=1024 -I 512 -i 524288 -q -O meta_bg,extents,uninit_bg,mmp,dir_nlink,quota,huge_file,flex_bg -G 256 -E lazy_itable_init=0,lazy_journal_init=0 -F
mkfs_cmd = mke2fs -j -b 4096 -L scrlfs:OST0005   -J size=1024 -I 512 -i 524288 -q -O meta_bg,extents,uninit_bg,mmp,dir_nlink,quota,huge_file,flex_bg -G 256 -E lazy_itable_init=0,lazy_journal_init=0 -F /dev/sdc 3741319168
   The resize_inode and meta_bg features are not compatible.
   They can not be both enabled simultaneously.

Ideally this should be handled automatically in mke2fs itself, but it is also prudent to fix mkfs.lustre to pass ^resize_inode so that it also works with versions of mke2fs that do not have this fixed.

The meta_bg feature should also be enabled automatically for filesystems over 256TiB.



 Comments   
Comment by Gerrit Updater [ 05/Feb/19 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34178
Subject: LU-11923 utils: fix mkfs.lustre meta_bg handling
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: bd6b67926fcb6819aa05410afe5f50b117276672

Comment by Gerrit Updater [ 27/Feb/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34178/
Subject: LU-11923 utils: fix mkfs.lustre meta_bg handling
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b34dfa699e1e79626363affd26999453252eac7a

Comment by Peter Jones [ 27/Feb/19 ]

Landed for 2.13

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