尝试调整ext3文件系统的大小时出现错误”resize2fs: New size too large to be expressed in 32 bits”

试图将现有逻辑卷扩展到大于16TiB的大小并调整其上的ext3文件系统的大小时,您可能会遇到以下错误消息:

[root@shizhanxia.com ]# resize2fs /dev/testvg/testlv
resize2fs 1.43.8 (1-Jan-2018)
resize2fs: New size too large to be expressed in 32 bits

此时,通过lvdisplay查看逻辑卷大小显示为17TB。

[root@shizhanxia.com ]# lvdisplay -m /dev/testvg/testlv
  --- Logical volume ---
  LV Path                /dev/testvg/testlv
          LV Name                testlv
          VG Name                testvg
          LV UUID                qzUm4T-hZLy-TMF1-YkgN-YMPs-puB7-YcrboX
          LV Write Access        read/write
          LV Creation host, time shizhanxia.com, 2023-02-03 07:12:55 +0000
          LV Status              available
          # open                 1
          LV Size                17.00 TiB
          Current LE             4456448
          Segments               1
          Allocation             inherit
          Read ahead sectors     auto
          - currently set to     1024
          Block device           254:0
          --- Segments ---
          Logical extents 0 to 4456447:
            Type                striped
            Stripes             2
            Stripe size         64.00 KiB
            Stripe 0:
              Physical volume   /dev/nvme3n1
              Physical extents  0 to 2228223
            Stripe 1:
              Physical volume   /dev/nvme4n1
              Physical extents  0 to 2228223

解决方案

将文件系统的大小调整为16 TiB(16777216 MB),这是ext3文件系统支持的最大大小。尝试调整ext3文件系统的大小时出现错误"resize2fs: New size too large to be expressed in 32 bits"

声明:本网站刊载的所有内容,包括文字、图片、音频、视频、软件、程序、以及网页版式设计等如无特殊说明或标注,均在网上搜集。仅供访问者个人学习、研究或欣赏,禁止商业性或盈利性用途,访问者应遵守著作权法的规定,在使用时征得本站和原著作权人的同意并支付许可使用费。本网站刊登内容,如有侵权请权利人予以告知,本站将立即予以删除。

给TA打赏
共{{data.count}}人
人已打赏
笔记

如何更改Linux操作系统上iSCSI服务的timeout超时时间

2023-4-13 14:48:15

笔记

VMware vSphere esxi8安装部署

2023-4-18 18:11:00

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
今日签到
有新私信 私信列表
搜索