Hitachi

For Linux(R) (x86) Systems HA Monitor Cluster Software


8.6.4 Example of environment settings for a KVM-based virtualization environment

The following figure shows the system configuration that applies to the example of environment settings for a KVM-based virtualization environment.

Figure 8‒19: System configuration for a KVM-based virtualization environment

[Figure]

The following shows an example of the environment settings for the primary system and the secondary system in this system configuration.

Environment settings for the primary system (in a KVM-based virtualization environment)
XML settings for the guest OS (excerpts from the sections related to the shared disk and SCSI controller)
/*  XML settings for the guest OS  */
... (omitted)
    <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>
... (omitted)
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
    </controller>
... (omitted)
HA Monitor environment settings (definition file: /opt/hitachi/HAmon/etc/sysdef)
/*  HA Monitor environment settings  */
environment  name             host1,
             address          1,
             patrol           60,
             lan              path11,
             lanport          HAmon1;
function     pathpatrol       1,
             pathpatrol_retry 3:3,
             fence_reset      nouse,
             fence_scsi       use;
Server environment definition (definition file: /opt/hitachi/HAmon/etc/servers)
/*  Server environment definition  */
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;
Environment settings for the secondary system (in a KVM-based virtualization environment)
XML settings for the guest OS (excerpts from the sections related to the shared disk and SCSI controller)
/*  XML settings for the guest OS  */
... (omitted)
    <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>
... (omitted)
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
    </controller>
... (omitted)
HA Monitor environment settings (definition file: /opt/hitachi/HAmon/etc/sysdef)
/*  HA Monitor environment settings  */
environment  name             host2,
             address          2,
             patrol           60,
             lan              path21,
             lanport          HAmon1;
function     pathpatrol       1,
             pathpatrol_retry 3:3,
             fence_reset      nouse,
             fence_scsi       use;
Server environment definition (definition file: /opt/hitachi/HAmon/etc/servers)
/*  Server environment definition  */
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;