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 支援,與附加至 VNX2/VNX 系列陣列的 Linux 相比,這會導致 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 磁碟分割/檔案系統公用程式有各種交換器/選項可用於建立磁碟分割和檔案系統。它們可以使用扇區或圓柱體作為單元。我們希望他們使用扇區作為其效用的計量單位。

如果在 LUN 上建立兩個或更多個分割區,則應以 2048 的倍數起始 SECTOR 建立後續分割區。

如果使用“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

如果「-c」選項未搭配 fdisk 命令使用:

因應措施是,客戶可以使用 2048 (十進位) 作為 fdisk 的起始磁區。
」MKFS“,然後構建一個正確對齊的文件系統。請注意,Linux 磁碟分割/檔案系統公用程式有各種交換器/選項可用於建立磁碟分割和檔案系統。
它們可以使用扇區或圓柱體作為單元。我們希望他們使用扇區作為其效用的計量單位。

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.