Hitachi Dynamic Link Manager ユーザーズガイド(Linux®用)
ここでは,新規にHDLMデバイスを使用して,論理ボリュームを作成する手順を説明します。「図3-15 HDLMデバイス上に論理ボリュームを作成した場合のデバイス構成」に示す環境は,次の手順で構築してください。
図3-15 HDLMデバイス上に論理ボリュームを作成した場合のデバイス構成
devices { : # global_filter = [ "a/.*/" ] global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ] : # types = [ "fd", 16 ] : md_component_detection = 1 : allow_changes_with_duplicate_pvs = 0 : }変更後
devices { : # global_filter = [ "a/.*/" ] # global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ] 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 : }既存のglobal_filter,types,md_component_detectionおよびallow_changes_with_duplicate_pvsの行をコメントアウトし,下線部を追加します。
# This section allows you to configure which block devices should # be used by the LVM system. devices { : # filter = [ "a/.*/" ] filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ] : write_cache_state = 1 : # types = [ "fd", 16 ] : md_component_detection = 1 : }変更後
# This section allows you to configure which block devices should # be used by the LVM system. devices { : # filter = [ "a/.*/" ] # filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ] 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 : }既存のfilter,write_cache_state,typesおよびmd_component_detectionの行をコメントアウトし,下線部を追加します。
# This section allows you to configure which block devices should # be used by the LVM system. devices { : # filter = [ "a/.*/" ] : # global_filter = [ "a/.*/" ] global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ] : write_cache_state = 1 : # types = [ "fd", 16 ] : 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/.*/" ] # global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ] 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 : }既存のglobal_filter,write_cache_state,typesおよびmd_component_detectionの行をコメントアウトし,下線部を追加します。
# /sbin/vgscan
# pvcreate /dev/sddlmad1 Physical volume "/dev/sddlmad1" successfully created # pvcreate /dev/sddlmad2 Physical volume "/dev/sddlmad2" successfully created
# vgcreate vg01 /dev/sddlmad1 /dev/sddlmad2 Volume group "vg01" successfully created
# lvcreate -L 100M -n lvol1 vg01 Logical volume "lvol1" created
# mke2fs /dev/vg01/lvol1 Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 25688 inodes, 102400 blocks 5120 blocks (5.00%) reserved for the super user First data block=1 13 block groups 8192 blocks per group, 8192 fragments per group 1976 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 38 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
# mkdir /mnt/lvol1
# mount /dev/vg01/lvol1 /mnt/lvol1
# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
All Rights Reserved. Copyright© 2014, 2023, Hitachi, Ltd.