[LU-399] mkfs.lustre: The resize maximum must be greater than the filesystem size. Created: 07/Jun/11  Updated: 13/Jul/22  Resolved: 14/Jun/11

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

Type: Bug Priority: Major
Reporter: Jian Yu Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None
Environment:

Lustre Branch: master
Lustre Build: http://newbuild.whamcloud.com/job/lustre-master/156/arch=x86_64,build_type=server,distro=el5,ib_stack=ofa/
e2fsprogs Build: http://newbuild.whamcloud.com/job/e2fsprogs-master/28/arch=x86_64,distro=el5/


Issue Links:
Related
Story Points: 1
Severity: 3
Rank (Obsolete): 4989

 Description   

While formatting an 128TB LUN with master build, I got the following failure:

# mkfs.lustre --reformat --fsname=largefs --ost --mgsnode=192.168.77.1@o2ib --mkfsoptions='-t ext4 -i 1058576' --mountfsoptions='errors=remount-ro,extents,mballoc,force_over_16tb' /dev/large_vg/ost_lv

mkfs.lustre FATAL: Unable to build fs /dev/large_vg/ost_lv (256)
  
mkfs.lustre FATAL: mkfs failed 256
  
   Permanent disk data:Target:     largefs-OSTffff
Index:      unassigned
Lustre FS:  largefs
Mount type: ldiskfs
Flags:      0x72
              (OST needs_index first_time update )
Persistent mount opts: errors=remount-ro,extents,mballoc,force_over_16tb
Parameters: mgsnode=192.168.77.1@o2ib
  
device size = 134217728MB
formatting backing filesystem ldiskfs on /dev/large_vg/ost_lv
        target name  largefs-OSTffff
        4k blocks     34359738368
        options       -t ext4 -i 1058576 -J size=400 -I 256 -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 largefs-OSTffff -t ext4 -i 1058576 -J size=400 -I 256 -q -O extents,uninit_bg,dir_nlink,huge_file,flex_bg -G 256 -E resize=4290772992,lazy_journal_init, -F /dev/large_vg/ost_lv 34359738368
  
   Warning: the fs_type huge is not defined in mke2fs.conf
  
   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:
        stride=<RAID per-disk data chunk in blocks>
        stripe-width=<RAID stride * data disks in blocks>
        resize=<resize maximum size in blocks>
        lazy_itable_init=<0 to disable, 1 to enable>
        lazy_journal_init=<0 to disable, 1 to enable>
        test_fs
        discard
        nodiscard

The issue does not exist on b1_8 branch because the changes made in LU-255 were only landed on master branch. We need re-work on the patch.



 Comments   
Comment by Andreas Dilger [ 08/Jun/11 ]

The LU-255 changes were supposed to take this into account already, but I forgot that mo_device_size is in units of kB when computing the block count, so the check was off by a factor of 1024. I've submitted a patch to http://review.whamcloud.com/912 that should fix this problem.

Comment by Andreas Dilger [ 09/Jun/11 ]

Doesn't actually affect 1.8.6, because the LU-255 patch hasn't landed there. We might consider this for 1.8.7 in order to make life easier for users with > 16TB filesystems, otherwise they need to specify a fair number of options to mkfs.lustre to get a good filesystem.

Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » i686,server,el5,ofa #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,ofa #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » i686,client,el5,ofa #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Build Master (Inactive) [ 13/Jun/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #167
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Comment by Andreas Dilger [ 14/Jun/11 ]

Fixed

Comment by Build Master (Inactive) [ 14/Jun/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #170
LU-399 do not use mke2fs -E resize for large LUNs

Oleg Drokin : 82a3a9d16c5a9c09255f43b324e160b79cb73e0d
Files :

  • lustre/utils/mkfs_lustre.c
Generated at Sat Feb 10 01:06:38 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.