跳转到主内容

在大型磁盘上执行 mkfs.xfs 时,OpenShift 中的虚拟机挂起

Views:
72
Visibility:
Public
Votes:
0
Category:
astra_trident
Specialty:
snapx
Last Updated:

适用于

  • Trident
  • OpenShift 环境
  • ONTAP-SAN

问题

  • 在使用 Trident 的 OpenShift 环境中,格式化大于 100GB 的磁盘时虚拟机会挂起mkfs.xfs

使用 100 GB 磁盘时:

[root@HOST_NAME ~]# mkfs.xfs -L <label> /dev/<device>
meta-data=/dev/vdx         isize=512   agcount=4, agsize=6553600 blks
     =             sectsz=512   attr=2, projid32bit=1
     =             crc=1     finobt=1, sparse=1, rmapbt=0
     =             reflink=1   bigtime=1 inobtcount=1 nrext64=0
data    =             bsize=4096   blocks=26214400, imaxpct=25
     =             sunit=0    swidth=0 blks
naming   =version 2        bsize=4096   ascii-ci=0, ftype=1
log    =internal log       bsize=4096   blocks=16384, version=2
     =             sectsz=512   sunit=0 blks, lazy-count=1
realtime =none           extsz=4096   blocks=0, rtextents=0
Discarding blocks...Done.

使用 >100GB 磁盘时:

[root@HOST_NAME ~]# mkfs.xfs -L <label> /dev/<device>
meta-data=/dev/vdx         isize=512   agcount=4, agsize=13107200 blks
     =             sectsz=512   attr=2, projid32bit=1
     =             crc=1     finobt=1, sparse=1, rmapbt=0
     =             reflink=1   bigtime=1 inobtcount=1 nrext64=0
data    =             bsize=4096   blocks=52428800, imaxpct=25
     =             sunit=0    swidth=0 blks
naming   =version 2        bsize=4096   ascii-ci=0, ftype=1
log    =internal log       bsize=4096   blocks=25600, version=2
     =             sectsz=512   sunit=0 blks, lazy-count=1
realtime =none           extsz=4096   blocks=0, rtextents=0

  • 在 OpenShift 主机上的 /var/log/messages 文件中观察到以下错误:

<span style="font-size:inherit">2025-09-14T09:52:03.745994-04:00  kernel: Buffer I/O error on dev dm-2, logical block 6251249536, async page read</span>
<span style="font-size:inherit">2025-09-14T09:52:03.746033-04:00  kernel: Buffer I/O error on dev dm-2, logical block 6251249537, async page read</span>
<span style="font-size:inherit">2025-09-14T09:52:03.746052-04:00  kernel: Buffer I/O error on dev dm-2, logical block 6251249538, async page read</span>

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.