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 中引入的安全修复将修补程序的大小从大约 50 MB 增加到超过 150 MB。由于修补程序大小的增加,安装时需要 /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 分区中可用空间少于 500 MB 的节点上具有输出:
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.