[LU-17036] mkfs.lustre fails with "The resize maximum must be greater than the filesystem size" Created: 17/Aug/23  Updated: 01/Sep/23  Resolved: 01/Sep/23

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

Type: Bug Priority: Minor
Reporter: Dongyang Li Assignee: Dongyang Li
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   
Running command: mkfs.lustre --ost "--servicenode=127.0.0.2@tcp" "--fsname=ds001" "--index=2" "--mgsnode=127.0.0.2@tcp" "--mkfsoptions=-m1 -i 131072 -E lazy_itable_init=0,lazy_journal_init=0,nodiscard -O project -J size=1024" "--backfstype=ldiskfs" /dev/ddn/ds001_ost0002.
      
         Permanent disk data:
      Target:     ds001:OST0002
      Index:      2
      Lustre FS:  ds001
      Mount type: ldiskfs
      Flags:      0x1062
                    (OST first_time update no_primnode )
      Persistent mount opts: ,errors=remount-ro
      Parameters: failover.node=127.0.0.2@tcp mgsnode=127.0.0.2@tcp
      
      checking for existing Lustre data: not found
      device size = 16777216MB
      formatting backing filesystem ldiskfs on /dev/ddn/ds001_ost0002
      	target name   ds001:OST0002
      	kilobytes     17179869180
      	options       -m1 -i 131072   -J size=1024 -I 512 -q -O project,extents,uninit_bg,mmp,dir_nlink,quota,huge_file,flex_bg -G 256 -E lazy_itable_init=0,lazy_journal_init=0,nodiscard,resize="4290772992" -F
      mkfs_cmd = mke2fs -j -b 4096 -L ds001:OST0002 -m1 -i 131072   -J size=1024 -I 512 -q -O project,extents,uninit_bg,mmp,dir_nlink,quota,huge_file,flex_bg -G 256 -E lazy_itable_init=0,lazy_journal_init=0,nodiscard,resize="4290772992" -F /dev/ddn/ds001_ost0002 17179869180k
         detected raid stride 1048576 too large, use optimum 512
         detected raid stripe width 1048576 too large, use optimum 512
         The resize maximum must be greater than the filesystem size.
         
         Bad option(s) specified: 
         
         Extended options are separated by commas, and may take an argument which
         	is set off by an equals ('=') sign.
         
         Valid extended options are:
         	mmp_update_interval=<interval>
         	num_backup_sb=<0|1|2>
         	stride=<RAID per-disk data chunk in blocks>
         	stripe-width=<RAID stride * data disks in blocks>
         	offset=<offset to create the file system>
         	resize=<resize maximum size in blocks>
         	packed_meta_blocks=<0 to disable, 1 to enable>
         	lazy_itable_init=<0 to disable, 1 to enable>
         	lazy_journal_init=<0 to disable, 1 to enable>
         	root_owner=<uid of root dir>:<gid of root dir>
         	test_fs
         	discard
         	nodiscard
         	encoding=<encoding>
         	encoding_flags=<flags>
         	quotatype=<quota type(s) to be enabled>


 Comments   
Comment by Gerrit Updater [ 17/Aug/23 ]

"Li Dongyang <dongyangli@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51970
Subject: LU-17036 utils: make sure resize option is legit
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: adcaa9173e1d09573e3a4cbfe1b3a2494ee13ba3

Comment by Gerrit Updater [ 31/Aug/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51970/
Subject: LU-17036 utils: make sure resize option is legit
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 479f9585b0bf02bdc43346dfd037837b8340dde7

Comment by Peter Jones [ 01/Sep/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:32:05 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.