PowerScale Isilon:無法安裝修補程式,需要 /var 分割區中的 x 個位元組。

Summary: 本文包含主動式因應措施,以避免在匯總修補程式 (RUP) 安裝期間填滿 /var 磁碟分割。

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

修補程式安裝失敗,輸出類似以下項目:
# isi upgrade patches install 9.2.1.14_GA-RUP_2022-07_PSP-2429.pkg --rolling
The below patches are deprecated by this patch and will be removed automatically:
- 9.2.1.7_GA-RUP_2021-12_PSP-1698
Would you like to proceed? (yes/[no]): yes
This patch request will require nodes in the cluster to be rebooted either in succession or simultaneously, depending on the options you supplied. Both scenarios can result in lost connectivity. Would you like to proceed? (yes/[no]): yes
Failed to install patch, 724933132 bytes in /var partition are required.

Cause

修補程式 OneFS 9.1.0、9.2.1 和 9.3.0 中導入的安全性修正已將修補程式的大小從大約 50MB 增加到超過 150MB。由於修補程式的大小增加,因此在進行安裝時,需要 /var 分割區中大量的可用空間。在某些情況下,可用空間要求可能無法實現。本文提供在 /var/crash 磁碟分割中建立符號連結至目錄的步驟,作為因應措施。

Resolution

注意:此因應措施中的步驟無法在已啟用相容模式的叢集上執行。
 
注意:只有在安裝 OneFS 9.1.0、9.2.1 或 9.3.0 匯總修補程式時,由於其大小會增加,才需要執行下列主動因應措施。不應在其他修補程式安裝或其他 OneFS 版本上部署因應措施。


先決條件

在執行在 /var/crash 磁碟分割中建立目錄符號連結的主動因應措施之前,必須先滿足一些先決條件:
  • 升級和修補程式框架必須處於閒置乾淨狀態
  1. 升級框架檢查;檢閱下列命令的輸出結果,確認沒有作用中的升級程序:
isi upgrade view
  1. 修補程式框架檢查:
    1. 在下列命令的輸出中,確認所有修補程式均處於 已安裝 狀態:
    isi upgrade patches list
    1. 執行下列命令,確認修補程式系統在任何節點上均未處於作用中狀態:
    isi_patch isactive
    1. 確認 /var/patch/tmp/ 和 /var/patch/catalog/ 目錄中沒有檔案:
    isi_for_array 'find /var/patch/catalog/ /var/patch/tmp/ -depth 1 -ls'
    注意:如果前兩次修補程式架構檢查 [a 和 b] 未識別任何問題,且在 /var/patch/tmp/ 或 /var/patch/catalog/ 目錄中找到檔案,則可安全地將這些檔案移至 /ifs/data/Isilon_Support。
  • 在 /var (500MB) 和 /var/crash (1GB) 分割區中必須有足夠的可用空間。應在報告可用空間量少於所需空間量的任何節點上執行分區清理。
  1. 下列命令會在 /var 磁碟分割中可用空間少於 500MB 的節點上輸出:
isi_for_array 'df -m /var' | awk '{if ($5 < 500) { print }}'
  1. 下列命令會在 /var/crash 分割區中少於 1GB 可用空間的節點上輸出:
isi_for_array 'df -m /var/crash' | awk '{if ($5 < 1000) { print }}'


主動式因應措施

重要注意事項:補丁安裝完成後,不要忘記執行剩餘的步驟!
 
  1. 在修補程式安裝之前,並在滿足所有先決條件後,執行下列命令順序,建立在 /var/crash 磁碟分割下使用的目錄,並建立這些目錄的符號連結:
isi_for_array 'mkdir -p /var/crash/patch/tmp /var/crash/patch/catalog'

isi_for_array 'ln -sF /var/crash/patch/tmp /var/patch/tmp'

isi_for_array 'ln -sF /var/crash/patch/catalog /var/patch/catalog'
  1. 按照修補程式讀我檔案中所述的方式執行修補程式安裝。
  2. 完成修補程式安裝後,執行下列命令以移除符號連結:
isi_for_array 'test -L /var/patch/catalog && unlink /var/patch/catalog'

isi_for_array 'test -L /var/patch/tmp && unlink /var/patch/tmp'
  1. 重新建立目錄並確認權限:
isi_for_array 'umask 037 && mkdir /var/patch/tmp /var/patch/catalog'

isi_for_array 'ls -ld  /var/patch/tmp /var/patch/catalog' 

cluster-1: drwxr-----  2 root  wheel  512 Feb 20 23:37 /var/patch/catalog 
cluster-1: drwxr-----  2 root  wheel  512 Feb 20 23:37 /var/patch/tmp 
cluster-2: drwxr-----  2 root  wheel  512 Feb 20 23:37 /var/patch/catalog 
cluster-2: drwxr-----  2 root  wheel  512 Feb 20 23:37 /var/patch/tmp

注意:如果 IOCA 報告失敗 (如下所示),且這些資料夾已經存在,我們可以使用以下命令手動修改權限:
# isi_for_array -s 'chmod 740 /var/patch/tmp /var/patch/catalog'
FAIL: Checks have identified permission issues on /var/patch directories that are required for patch installations: 2 
INFO: Please follow step 4 on 'Proactive Workaround section' within KB 000201666 (https://www.dell.com/support/kbdoc/en-ie/000201666) to correct the folder permissions.

Additional Information

Products

PowerScale OneFS
Article Properties
Article Number: 000201666
Article Type: Solution
Last Modified: 10 Jul 2024
Version:  11
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.