Hitachi Dynamic Link Manager ユーザーズガイド(Linux®用)
HDLMのアンインストールの手順を次に説明します。
# umount マウントポイント
# /sbin/lsmod
Module Size Used by
:
:
sddlmfdrv 254092 0
sddlmfdrvが表示され,かつUsedが0以外の場合は,「3.26.1 HDLM管理対象のデバイスへの操作」を実行したあと,手順2および手順3を再度実行して,HDLMデバイスを使用しないようにしてください。# /opt/DynamicLinkManager/remover/removehdlm
# rpm -qi HDLM パッケージ HDLM はインストールされていません
HDLMデバイスを使ったマルチパス構成のブートディスクの環境からHDLMをアンインストールして,SCSIデバイスを使ったブートディスクの環境に変更する方法を説明します。設定を誤ると,OSが起動できなくなることもあるので,注意してください。
なお,LVM2を用いたブートディスク環境の設定手順を説明します。ここではブートローダにgrubを用いた場合を示します。
# mount
/dev/mapper/vg00-lv00 on / type ext3 (rw)
:
#
# mount
/dev/sddlmaa9 on / type ext3 (rw)
:
#
devices {
:
global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
:
# types = [ "fd", 16 ]
types = [ "sddlmfdrv", 16 ]
:
md_component_detection=0
# md_component_detection=1
:
# allow_changes_with_duplicate_pvs = 0
allow_changes_with_duplicate_pvs = 1
:
}
変更後devices {
:
# global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]
:
# types = [ "fd", 16 ]
# types = [ "sddlmfdrv", 16 ]
:
# md_component_detection=0
md_component_detection=1
:
allow_changes_with_duplicate_pvs = 0
# allow_changes_with_duplicate_pvs = 1
:
}
既存のglobal_filterおよびtypesの行をコメントアウトし,下線部を追加します。# This section allows you to configure which block devices should
# be used by the LVM system.
devices {
:
filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
:
# write_cache_state = 1
write_cache_state = 0
:
# types = [ "fd", 16 ]
types = [ "sddlmfdrv", 16 ]
:
md_component_detection=0
# md_component_detection=1
:
}
変更後# This section allows you to configure which block devices should
# be used by the LVM system.
devices {
:
# filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]
:
write_cache_state = 1
# write_cache_state = 0
:
# types = [ "fd", 16 ]
# types = [ "sddlmfdrv", 16 ]
:
# md_component_detection=0
md_component_detection=1
:
}
既存のfilterおよびtypesの行をコメントアウトし,下線部を追加します。# This section allows you to configure which block devices should
# be used by the LVM system.
devices {
:
# filter = [ "a/.*/" ]
:
global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
:
# write_cache_state = 1
write_cache_state = 0
:
# types = [ "fd", 16 ]
types = [ "sddlmfdrv", 16 ]
:
md_component_detection=0
# md_component_detection=1
:
}
変更後# This section allows you to configure which block devices should
# be used by the LVM system.
devices {
:
# filter = [ "a/.*/" ]
:
# global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]
:
write_cache_state = 1
# write_cache_state = 0
:
# types = [ "fd", 16 ]
# types = [ "sddlmfdrv", 16 ]
:
# md_component_detection=0
md_component_detection=1
:
}
既存のglobal_filterおよびtypesの行をコメントアウトし,下線部を追加します。# /sbin/vgscan
# /sbin/blkid /dev/sddlmaa2 /dev/sddlmaa2: LABEL="/" UUID="19597725-5d20-4d1d-9906-f9f891b7711a" TYPE="ext2" #
# /sbin/swapoff /dev/{HDLMデバイス名}
# /sbin/mkswap -L {LABEL} {HDLMデバイス名}
# /sbin/swapon /dev/{HDLMデバイス名}
:
#/dev/sddlmaa2 / ext2 defaults 1 1
LABEL=/ / ext2 defaults 1 1
#/dev/sddlmaa1 /boot ext2 defaults 1 2
LABEL=/boot /boot ext2 defaults 1 2
:
# dracut /boot/initramfs-{kernel-version}.img {kernel-version}
SUSE LINUX Enterprise Server 12,SUSE LINUX Enterprise Server 15の場合
# /usr/bin/dracut /boot/initrd-{kernel-version} {kernel-version}
SUSE LINUX Enterprise Server 12,SUSE LINUX Enterprise Server 15,Red Hat Enterprise Linux 7,Red Hat Enterprise Linux 8,Oracle
Unbreakable Enterprise Kernel 7またはOracle Unbreakable Enterprise Kernel 8の場合は,SANブート環境で使用していた初期RAMディスクイメージをバックアップしてから,同じファイル名で実行してください。
# mkinitrd -i initrd-{kernel-version} -k {kernel-image※}
注※
# mkinitrd /boot/initrd-{kernel-version}.img {kernel-version}
title Red Hat Enterprise Linux (2.6.32-71.el6.i686)_hdlm変更後
title Red Hat Enterprise Linux (2.6.32-71.el6.i686)_sd
default=0
# shutdown -h now
# /bin/cat /proc/mounts | /bin/grep -w / | /bin/grep -v rootfs出力されたデバイスを基に次の確認をします。
# /bin/cat /proc/devices | /bin/grep -w {major}# /sbin/dmsetup ls --tree vg00-lv_tmp (253:1) |- (8:2) vg00-lv_var (253:2) |- (8:2) vg00-lv_swap (253:3) |- (8:2) vg00-lv_root (253:0) |- (8:2) #上記の例では,b.で表示された(major,minor)が(253,0)の場合,関連付けられたデバイスは(8:2)=(8, 2)=(major, minor)になります。
/bin/cat /proc/devices | /bin/grep -w {major}出力内容にsddlmfdrvが含まれていなければHDLMのブートディスク環境ではありません。# /opt/DynamicLinkManager/remover/removehdlm
# rpm -qi HDLM パッケージ HDLM はインストールされていません
All Rights Reserved. Copyright© 2014, 2023, Hitachi, Ltd.