Hitachi Dynamic Link Manager Software Users Guide for Linux

Settings for KVM
If you install HDLM in an environment in which KVM is used, you need to
register HDLM devices into the hardware configuration file (/etc/libvirt/
qemu/domain-name.xml). For details on the hardware configuration file, see
the OS documentation.
To register HDLM devices by using the virsh command:
1. Execute the following command to check the domain name and operating
status of the guest OS.
# virsh list --all
Id Name State
----------------------------------
1
domK running
The underlined part indicates the domain name.
2. If the guest OS is running, stop it.
For details on how to stop the guest OS, see the OS documentation.
3. To register a new HDLM device, register the HDLM device into the
hardware configuration file.
The following example shows how to register the HDLM device (/dev/
sddlmac) as the IDE device (/dev/hdb) into the guest OS:
<disk type='block' device='disk'>
<source dev='/dev/sddlmac'/>
<target dev='hdb' bus='ide'/>
</disk>
For details on the values that can be specified for disk type, target
dev, and target bus, see the OS documentation.
4. To migrate an environment that uses a SCSI device to an environment
that uses an HDLM device, change the SCSI device registered in the
hardware configuration file to an HDLM device.
The following example shows how to edit the hardware configuration file
when migrating the SCSI device (/dev/sda) to the HDLM device (/dev/
sddlmad):
Before:
<source dev='/dev/sda'/>
After:
<source dev='/dev/sddlmad'/>
For details on which SCSI devices correspond to which HDLM devices, see
Displaying Corresponding Information About an HDLM Device, SCSI
Device, and LDEV on page 4-38.
5. Execute the following command to enable the settings in the hardware
configuration file.
3-182
Creating an HDLM Environment
Hitachi Dynamic Link Manager (for Linux®) User Guide