之前已使用手动步骤配置 PowerPath 版本 6.5 时的 NDU 升级
NDU 升级的步骤 - 如果 PowerPath 6.5 使用手动步骤进行配置。
步骤
-
禁用 PowerPath 在重新引导时自动启动。
-
对于所有操作系统:
[root@hostname ~]# systemctl disable PowerPath.service
[root@hostname ~]# systemctl disable PowerPathPoststart.service
[root@hostname ~]# systemctl disable EmcpMond.service
-
通过 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
-
重新装载引导分区,使其装载到本机设备而不是伪设备上。
-
对于具有 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
-
编辑 /etc/lvm/lvm.conf 文件以还原筛选器参数,使其接受所有设备。
对于所有操作系统:
#global_filter = [ "a/emcpower.*/", "r/sd.*/", "r/disk.*/", "r/nvme.*/", "r/scini.*/" ]
global_filter = [ "a/.*/" ]
-
运行 vgscan -v 以重新构建 LVM2 高速缓存。
-
运行 lvmdiskscan 以确保筛选器字段工作正常。验证输出中是否列出了所有数据块设备。
-
仅对于 SLES12 和 SLES15 主机,在 /etc/lvm/lvm.conf 文件中,按照如下所述启用 allow_changes_with_duplicate_pvs 参数(如果之前尚未启用):
allow_changes_with_duplicate_pvs = 1
注: 如果之前的参数尚未存在,请将其添加到 devices{} 部分中。
-
重新创建 ramdisk 映像并更新 grub 引导加载配置。
- 对于所有操作系统:
- 将 PowerPath 的 dracut 配置文件移出 /usr/lib/dracut/modules.d/
[root@hostname ~]# mv /usr/lib/dracut/modules.d/90powerpath ~/dracut/
- 生成新的 ramdisk 映像文件。
- 从 /etc/grub.d 文件夹中的 40_custom 文件安装和配置 PowerPath 时,删除之前添加的条目。
- 重新创建 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
- 通过在 grub.cfg 文件中搜索并使用 grub2-set-default 命令设置默认引导条目获得相关标题。
-
按照 无中断升级 中的步骤执行 PowerPath 无中断升级。
-
保存 /etc/fstab 文件的备份。识别引导 LUN 的 emcpowerX 伪设备。
在下面的示例中,假设 emcpowera 是引导 LUN。根据配置修改 /etc/fstab。
-
重新装载引导分区,使其根据配置装载到伪设备上。
- 对于具有 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
-
保存 /etc/lvm/lvm.conf 文件的备份,并将 /etc/lvm/lvm.conf 中的 LVM 筛选器更改为仅接受伪设备:
对于所有操作系统:
#global_filter = [ "a/.*/" ]
global_filter = [ "a/emcpower.*/", "r/sd.*/", "r/disk.*/", "r/nvme.*/", "r/scini.*/" ]
-
运行 vgscan -v 以重新构建 LVM2 高速缓存。
-
运行 lvmdiskscan 以确保筛选器字段工作正常。验证输出未列出已筛选设备节点。