8.6.4 KVMでの仮想化環境時の環境設定例
ここでは,KVMでの仮想化環境の場合の環境設定例で示すシステム構成を,次の図に示します。
このシステム構成での現用系と予備系の環境設定例を,次に示します。
- 現用系の環境設定(KVMでの仮想化環境の場合)
-
- ゲストOSのXML設定(共有ディスクおよびSCSIコントローラの個所の抜粋)
-
/* ゲストOSのXML設定 */ :(省略) <disk type='block' device='lun' sgio='unfiltered'> <driver name='qemu' type='raw'/> <source dev='/dev/disk/by-path/fc-0x51402ec015521038-0x50060e8010368dd1-lun-0'/> <target dev='sdb' bus='scsi'/> <shareable/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <disk type='block' device='lun' sgio='unfiltered'> <driver name='qemu' type='raw'/> <source dev='/dev/disk/by-path/fc-0x51402ec01552103a-0x50060e8010368dd1-lun-0'/> <target dev='sdc' bus='scsi'/> <shareable/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> :(省略) <controller type='scsi' index='0' model='virtio-scsi'> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </controller> :(省略)
- HAモニタの環境設定(定義ファイル:/opt/hitachi/HAmon/etc/sysdef)
-
/* HAモニタの環境設定 */ environment name host1, address 1, patrol 60, lan path11, lanport HAmon1; function pathpatrol 1, pathpatrol_retry 3:3, fence_reset nouse, fence_scsi use;
- サーバ対応の環境設定(定義ファイル:/opt/hitachi/HAmon/etc/servers)
-
/* サーバ対応の環境設定 */ server name /users/server1, alias server1, acttype monitor, initial online, disk /dev/vg01, dmmp_device /dev/mapper/mpatha, fs_name /dev/vg01/lvol01, fs_mount_dir /mnt/1;
- 予備系の環境設定(KVMでの仮想化環境の場合)
-
- ゲストOSのXML設定(共有ディスクおよびSCSIコントローラの個所の抜粋)
-
/* ゲストOSのXML設定 */ :(省略) <disk type='block' device='lun' sgio='unfiltered'> <driver name='qemu' type='raw'/> <source dev='/dev/disk/by-path/fc-0x51402ec01482ac14-0x50060e8010368dd1-lun-0'/> <target dev='sdb' bus='scsi'/> <shareable/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <disk type='block' device='lun' sgio='unfiltered'> <driver name='qemu' type='raw'/> <source dev='/dev/disk/by-path/fc-0x51402ec01482ac16-0x50060e8010368dd1-lun-0'/> <target dev='sdc' bus='scsi'/> <shareable/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> :(省略) <controller type='scsi' index='0' model='virtio-scsi'> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </controller> :(省略)
- HAモニタの環境設定(定義ファイル:/opt/hitachi/HAmon/etc/sysdef)
-
/* HAモニタの環境設定 */ environment name host2, address 2, patrol 60, lan path21, lanport HAmon1; function pathpatrol 1, pathpatrol_retry 3:3, fence_reset nouse, fence_scsi use;
- サーバ対応の環境設定(定義ファイル:/opt/hitachi/HAmon/etc/servers)
-
/* サーバ対応の環境設定 */ server name /users/server1, alias server1, acttype monitor, initial standby, disk /dev/vg01, dmmp_device /dev/mapper/mpatha, fs_name /dev/vg01/lvol01, fs_mount_dir /mnt/1;