跳转至主要内容
  • 快速、轻松地下订单
  • 查看订单并跟踪您的发货状态
  • 创建并访问您的产品列表
  • 使用“Company Administration”(公司管理),管理Dell EMC站点、产品和产品级联系人。

Dell EMC PowerPath for Linux 7.4 及次要版本安装和管理指南

之前已使用手动步骤配置 PowerPath 版本 6.5 时的 NDU 升级

NDU 升级的步骤 - 如果 PowerPath 6.5 使用手动步骤进行配置。

步骤

  1. 禁用 PowerPath 在重新引导时自动启动。
    • 对于所有操作系统:
      [root@hostname ~]# systemctl disable PowerPath.service
      [root@hostname ~]# systemctl disable PowerPathPoststart.service
      [root@hostname ~]# systemctl disable EmcpMond.service
      
  2. 通过 UUID 将 /etc/fstab 还原到装载引导分区。
    • 对于具有 BIOS 固件的主机且仅限 OL 7、RHEL7、SLES12、SLES15:
      #/dev/emcpowera1 /boot ext4 nofail 1 2
      UUID=110223d8-f5f3-4058-812f-16d9e9ee7eab /boot ext4 defaults 1 2
    • 对于具有 UEFI 固件的主机且仅限 SLES12 和 SLES15:
      #/dev/emcpowera1 /boot/efi vfat nofail 1 2
      UUID=110223d8-f5f3-4058-812f-16d9e9ee7eab /boot/efi vfat defaults 1 2
    • 对于具有 UEFI 固件的主机且仅限 OL 7 和 RHEL7:
      #/dev/emcpowera1 /boot ext4 nofail 1 2
      UUID=110223d8-f5f3-4058-812f-16d9e9ee7eab /boot ext4 defaults 1 2
      
      #/dev/emcpowera2 /boot/efi vfat umask=0077,shortname=winnt 0 0
      UUID=4AA3-84F3 /boot/efi vfat umask=0077,shortname=winnt 0 0
  3. 重新装载引导分区,使其装载到本机设备而不是伪设备上。
    • 对于具有 BIOS 固件的主机和所有支持的操作系统:
      [root@hostname ~]# umount /boot/
      [root@hostname ~]# mount /boot/
    • 对于具有 UEFI 固件的主机且仅限 SLES12 和 SLES15:
      [root@hostname ~]# umount /boot/efi
      [root@hostname ~]# mount /boot/efi
    • 对于具有 UEFI 固件的主机和所有其他操作系统:
      [root@hostname ~]# umount /boot/efi
      [root@hostname ~]# umount /boot/
      [root@hostname ~]# mount /boot/
      [root@hostname ~]# mount /boot/efi
  4. 编辑 /etc/lvm/lvm.conf 文件以还原筛选器参数,使其接受所有设备。
    对于所有操作系统:
    #global_filter = [ "a/emcpower.*/", "r/sd.*/", "r/disk.*/", "r/nvme.*/", "r/scini.*/" ]
    global_filter = [ "a/.*/" ]
  5. 运行 vgscan -v 以重新构建 LVM2 高速缓存。
  6. 运行 lvmdiskscan 以确保筛选器字段工作正常。验证输出中是否列出了所有数据块设备。
  7. 仅对于 SLES12 和 SLES15 主机,在 /etc/lvm/lvm.conf 文件中,按照如下所述启用 allow_changes_with_duplicate_pvs 参数(如果之前尚未启用):
    allow_changes_with_duplicate_pvs = 1
    注: 如果之前的参数尚未存在,请将其添加到 devices{} 部分中。
  8. 重新创建 ramdisk 映像并更新 grub 引导加载配置。
    • 对于所有操作系统:
      1. PowerPathdracut 配置文件移出 /usr/lib/dracut/modules.d/
        [root@hostname ~]# mv /usr/lib/dracut/modules.d/90powerpath ~/dracut/
      2. 生成新的 ramdisk 映像文件。
        • 对于 OL 7 和 RHEL7:
          [root@hostname ~]# dracut /boot/initramfs-$(uname -r).img $(uname -r)
        • 对于 SLES12 和 SLES15:
          [root@hostname ~]# dracut /boot/initrd-$(uname -r) $(uname -r)
      3. /etc/grub.d 文件夹中的 40_custom 文件安装和配置 PowerPath 时,删除之前添加的条目。
      4. 重新创建 grub.cfg 文件以删除 PowerPath 引导条目。
        • 对于具有 BIOS 固件的主机和所有支持的操作系统:
          [root@hostname ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
        • 对于具有 UEFI 固件的主机且仅限 OL 7 和 RHEL7:
          [root@hostname ~]# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
        • 对于具有 UEFI 固件的主机且仅限 SLES12 和 SLES15:
          [root@hostname ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
      5. 通过在 grub.cfg 文件中搜索并使用 grub2-set-default 命令设置默认引导条目获得相关标题。
        • 对于 OL 7 和 RHEL7:
          [root@hostname ~]# grub2-set-default 'Red Hat Enterprise Linux Server'
        • 对于 SLES12 和 SLES15:
          [root@hostname ~]# grub2-set-default 'SLES'
  9. 按照 无中断升级 中的步骤执行 PowerPath 无中断升级。
  10. 保存 /etc/fstab 文件的备份。识别引导 LUN 的 emcpowerX 伪设备。
    在下面的示例中,假设 emcpowera 是引导 LUN。根据配置修改 /etc/fstab
    • 对于具有 BIOS 固件的主机和所有操作系统:

      编辑 /etc/fstab 以从伪设备的第一个分区 (/dev/emcpowera1) 装载 /boot
      #UUID=110223d8-f5f3-4058-812f-16d9e9ee7eab /boot ext4 defaults 1 2
      /dev/emcpowera1 /boot ext4 nofail 1 2
    • 对于具有 UEFI 固件的主机且仅限 SLES12 和 SLES15:

      编辑 /etc/fstab 以从伪设备的第一个分区 (/dev/emcpowera1) 装载 /boot/efi
      #UUID=110223d8-f5f3-4058-812f-16d9e9ee7eab /boot/efi vfat defaults 1 2
      /dev/emcpowera1 /boot/efi vfat nofail 1 2
    • 对于具有 UEFI 固件的主机且仅限 OL 7 和 RHEL7:

      编辑 /etc/fstab 以从伪设备的第一个分区 (/dev/emcpowera1) 装载 /boot,并从第二个分区 (/dev/emcpowera2) 装载 /boot/efi
      #UUID=110223d8-f5f3-4058-812f-16d9e9ee7eab /boot ext4 defaults 1 2
      /dev/emcpowera1 /boot ext4 nofail 1 2
      
      #UUID=4AA3-84F3 /boot/efi vfat umask=0077,shortname=winnt 0 0
      /dev/emcpowera2 /boot/efi vfat umask=0077,shortname=winnt 0 0
  11. 重新装载引导分区,使其根据配置装载到伪设备上。
    • 对于具有 BIOS 固件的主机和所有支持的操作系统:
      [root@hostname ~]# umount /boot/
      [root@hostname ~]# mount /boot/
    • 对于具有 UEFI 固件的主机且仅限 SLES12 和 SLES15:
      [root@hostname ~]# umount /boot/efi
      [root@hostname ~]# mount /boot/efi
    • 对于具有 UEFI 固件的主机且仅限 OL 7 和 RHEL7:
      [root@hostname ~]# umount /boot/efi
      [root@hostname ~]# umount /boot/
      [root@hostname ~]# mount /boot/
      [root@hostname ~]# mount /boot/efi
  12. 保存 /etc/lvm/lvm.conf 文件的备份,并将 /etc/lvm/lvm.conf 中的 LVM 筛选器更改为仅接受伪设备:
    对于所有操作系统:
    #global_filter = [ "a/.*/" ]
    global_filter = [ "a/emcpower.*/", "r/sd.*/", "r/disk.*/", "r/nvme.*/", "r/scini.*/" ]
  13. 运行 vgscan -v 以重新构建 LVM2 高速缓存。
  14. 运行 lvmdiskscan 以确保筛选器字段工作正常。验证输出未列出已筛选设备节点。

对此内容评级

准确性
有用性
易理解性
这篇文章对您有帮助吗?
0/3000 characters
  请提供评级(1-5星)。
  请提供评级(1-5星)。
  请提供评级(1-5星)。
  请选择这篇文章是否有帮助。
  注释中不得包含以下特殊字符:<>()\