尝试调整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"

剩余内容需解锁观看

解锁查看全文

立即回复
已经回复?立即刷新

原创文章,作者:实战侠,如若转载,请注明出处:https://www.shizhanxia.com/1331.html

(0)
上一篇 2023年4月13日 14:48
下一篇 2023年4月18日 18:11

相关推荐

发表回复

登录后才能评论