Dell Unity:Linux LUN 格式警告对齐偏移 512 字节。这可能会导致性能不佳

Summary: Dell Unity:Linux LUN 格式警告对齐偏移 512 字节。这可能会导致性能不佳。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

此问题是因为 Dell Unity 公布了 SPC-4 支持,与 Linux 连接到 VNX2/VNX 系列阵列相比,这导致 Linux SCSI 行为发生变化。

有两件事会影响 makefs 的性能:

  1. Linux 现在向精简 Dell Unity LUN 发出取消映射命令。
  2. Linux 使用查询重要产品数据页面0xB2返回的数据来决定如何对齐文件系统,阵列返回的数据会导致文件系统未对齐。

Linux LUN 格式警告对齐偏移 512 字节。这可能会导致性能不佳。

# mkfs.ext3 /dev/mapper/mpathd1

mke2fs 1.42.9 (28-Dec-2013)
/dev/mapper/mpathd1 alignment is offset by 512 bytes.
This may result in very poor performance, (re)-partitioning suggested.    <<<<<<<<<<<

Disk /dev/mapper/VGsdb-LVsdb: 29.9 TiB, 32875361599488 bytes, 64209690624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 8192 bytes / 33553920 bytes
Alignment offset: 512 bytes

 

Cause

在无分区的 LUN 上创建分区时,Linux fdisk 使用查询重要数据页面0xB0中找到的最佳传输大小作为起始扇区。由于此最佳传输大小为 65535,mkfs 随后将(正确地)声明文件系统未对齐。

更改 Inq VPD 页面中的最佳传输大小0xB0将在未来的 Dell Unity 更新中完成。

 

Resolution

要解决此问题,客户可以使用 2048(十进制)作为 fdisk 的起始扇区。然后使用“mkfs”构建一个正确对齐的文件系统。请注意,Linux 分区/文件系统实用程序具有用于创建分区和文件系统的各种开关/选项。它们可以使用扇区或柱面作为单元。我们希望他们使用 SECTORS 作为其实用程序的度量单位。

如果在 LUN 上创建两个或更多分区,则后续分区的起始 SECTOR 应为 2048 的倍数。

如果您使用“fdisk -c”,则必须指定从 65536 开始(系统提供默认值 65535)。“-c”是 dos 兼容模式,根据 linux 手册页,应使用此选项。

此外,如果不使用“-c”选项,则会获得以下信息。

[root@localhost nasadmin]# fdisk -u /dev/sdi

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c').

作为“fdisk -c”使用 65536 作为起始扇区的解决方法。从而生成协调一致的文件系统。

 

Additional Information

如果 fdisk 命令未使用“-c”选项:

要解决此问题,客户可以使用 2048(十进制)作为 fdisk 的起始扇区。
mkfs“,然后构建一个正确对齐的文件系统。请注意,Linux 分区/文件系统实用程序具有用于创建分区和文件系统的各种开关/选项。
它们可以使用扇区或柱面作为单元。我们希望他们使用 SECTORS 作为其实用程序的度量单位。

Partition number (1-4): 1
First sector (1-167772159, default 65535): 2048
Last sector, +sectors or +size{K,M,G} (2048-167772159, default 167772159):
Using default value 167772159

----------------------

如果将“-c”选项与 fdisk 命令配合使用:

这同样适用,但您应从值 65536 开始。

primary partition (1-4)
Partition number (1-4): 1
First sector (65535-524287999, default 131070): 65536
Last sector, +sectors or +size{K,M,G} (65536-524287999, default 524287999): 524287999

这里的关键是,用于正确开始对齐的数字应该可以被 2048 整除。

以上面为例:65536/2048 = 32 >>>> 对齐正确,65536 可用于对齐分区。

65556/2048=32.00976 >>>>对齐不正确,因此无法使用此值。

 

Affected Products

Dell EMC Unity Family

Products

Dell Unity 300, Dell EMC Unity 400, Dell EMC Unity 500, Dell EMC Unity 600, Dell EMC Unity Family
Article Properties
Article Number: 000052567
Article Type: Solution
Last Modified: 20 Oct 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.