[LU-720] mkfs.lustre fails by "don't specify multiple -E options" Created: 25/Sep/11  Updated: 25/Sep/11  Resolved: 25/Sep/11

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

Type: Bug Priority: Minor
Reporter: Shuichi Ihara (Inactive) Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 6551

 Description   

I'm testing with lustre-1.8.6.60 for early 1.8.7 testing.
mkfs.lustre failed and got the following errors when I added "-E stride=32 -E stripe-width=256" to --mkfsoptions.

mkfs.lustre --reformat --ost --param ost.quota_type=ug2 --fsname=lustre --mkfsoptions="-E stride=32 -E stripe-width=256" --mgsnode=192.168.10.120@o2ib /dev/mpath/ost00

Permanent disk data:
Target: lustre-OSTffff
Index: unassigned
Lustre FS: lustre
Mount type: ldiskfs
Flags: 0x72
(OST needs_index first_time update )
Persistent mount opts: errors=remount-ro,extents,mballoc
Parameters: ost.quota_type=ug2 mgsnode=192.168.10.120@o2ib

device size = 14934016MB
mkfs.lustre: don't specify multiple -E options

mkfs.lustre FATAL: mkfs failed 22
mkfs.lustre: exiting with 22 (Invalid argument)

Without these options, mkfs.lustre works well.

mkfs.lustre --reformat --ost --param ost.quota_type=ug2 --fsname=lustre --mgsnode=192.168.10.120@o2ib /dev/mpath/ost00
Permanent disk data:
Target: lustre-OSTffff
Index: unassigned
Lustre FS: lustre
Mount type: ldiskfs
Flags: 0x72
(OST needs_index first_time update )
Persistent mount opts: errors=remount-ro,extents,mballoc
Parameters: ost.quota_type=ug2 mgsnode=192.168.10.120@o2ib

device size = 14934016MB
formatting backing filesystem ldiskfs on /dev/mpath/ost00
target name lustre-OSTffff
4k blocks 3823108096
options -J size=400 -I 256 -i 524288 -q -O extents,uninit_bg,dir_nlink,huge_file,flex_bg -G 256 -E resize=4290772992,lazy_journal_init -F
mkfs_cmd = mke2fs -j -b 4096 -L lustre-OSTffff -J size=400 -I 256 -i 524288 -q -O extents,uninit_bg,dir_nlink,huge_file,flex_bg -G 256 -E resize=4290772992,lazy_journal_init -F /dev/mpath/ost00 3823108096
Writing CONFIGS/mountdata



 Comments   
Comment by Zhenyu Xu [ 25/Sep/11 ]

just use "--mkfsoptions="-E stride=32,stripe-width=256" will work.

Comment by Shuichi Ihara (Inactive) [ 25/Sep/11 ]

Ah, sorry, I figured out.
mkfs.lustre in 1.8.7 was changed a littile bit to support -E lazy_journal_init for the quick format.
--mkfsoptions="-E stride=32,stripe-width=256" works, instaed of multipul "-E" options.

Please close this ticket.

Comment by Shuichi Ihara (Inactive) [ 25/Sep/11 ]

Bobijam,
Thanks. it semes to be posted at the same time
yeah, you are correct and I verified mkfs.lustre works well!

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