Hitachi Dynamic Link Manager ユーザーズガイド(Linux®用)
HDLMデバイスでLVMの物理ボリュームを使用する環境から,SCSIデバイスでLVMの物理ボリュームを使用する環境に移行する手順を説明します。
ここでは,LVM2の環境で,マルチパス環境のHDLMデバイス上にある論理ボリュームを,シングルパス環境のSCSIデバイス上に移行する場合の手順について説明します。
「図3-22 HDLMデバイス上にある論理ボリュームをSCSIデバイス上に移行する場合のデバイス構成」に示す環境を作成するには,次の手順で行ってください。HDLMをアンインストールするときは,この手順をアンインストールの前に実施してください。
図3-22 HDLMデバイス上にある論理ボリュームをSCSIデバイス上に移行する場合のデバイス構成
「図3-22 HDLMデバイス上にある論理ボリュームをSCSIデバイス上に移行する場合のデバイス構成」のsda1,sdb1,sdc1,sdd1は同じLUを示します。また,sda2,sdb2,sdc2,sdd2も同じLUを示します。sddlmaa1とsddlmaa2はそれぞれのLUに対応するHDLMデバイスを示します。
# umount /mnt/lvol1
# vgchange -an vg01 0 logical volume(s) in volume group "vg01" now active
# vgexport vg01 Volume group "vg01" successfully exported
devices {
:
# global_filter = [ "a/.*/" ]
global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
:
# types = [ "fd", 16 ]
types = [ "sddlmfdrv", 16 ]
:
# md_component_detection = 1
md_component_detection=0
:
# allow_changes_with_duplicate_pvs = 0
allow_changes_with_duplicate_pvs = 1
:
}
変更後devices {
:
# global_filter = [ "a/.*/" ]
# 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 = 1
# md_component_detection=0
:
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/.*/" ]
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 = 1
md_component_detection=0
:
}変更後# This section allows you to configure which block devices should
# be used by the LVM system.
devices {
:
# filter = [ "a/.*/" ]
# 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 = 1
# md_component_detection=0
:
}既存のfilterおよびtypesの行をコメントアウトし,下線部を追加します。# This section allows you to configure which block devices should
# be used by the LVM system.
devices {
:
# filter = [ "a/.*/" ]
:
# global_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 = 1
md_component_detection=0
:
}変更後# This section allows you to configure which block devices should
# be used by the LVM system.
devices {
:
# filter = [ "a/.*/" ]
:
# global_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 = 1
# md_component_detection=0
:
}既存のglobal_filterおよびtypesの行をコメントアウトし,下線部を追加します。# vgscan Reading all physical volumes. This may take a while... Found exported volume group "vg01" using metadata type lvm2
# vgimport vg01 Volume group "vg01" successfully imported
# pvscan PV /dev/sda1 VG vg01 lvm2 [468.00 MB / 368.00 MB free] PV /dev/sda2 VG vg01 lvm2 [548.00 MB / 548.00 MB free] Total: 2 [1016.00 MB] / in use: 2 [1016.00 MB] / in no VG: 0 [0 ]
# vgchange -ay vg01 1 logical volume(s) in volume group "vg01" now active
# mount /dev/vg01/lvol1 /mnt/lvol1
All Rights Reserved. Copyright© 2014, 2023, Hitachi, Ltd.