Hitachi

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


7.5.16 Handling a failure in the path to the shared disk (if the path to the shared disk is made redundant in a KVM-based virtualization environment)

This subsection describes how to handle a failure in any paths to the shared disk if the path to the disk is made redundant.

To restore the status of a path that was made redundant during guest OS operation, you must re-attach the shared disk to the guest OS after you have corrected the problem. The following describes the procedure for re-attaching the shared disk.

  1. Execute the following command to detach the shared disk from the guest OS:

    # virsh detach-disk guest-OS-name device-name
  2. Execute the following command to attach the shared disk to the guest OS:

    # virsh attach-device guest-OS-name <(cat <<EOF
    <disk type='block' device='lun' sgio='unfiltered'>
        <driver name='qemu' type='raw' cache='none'/>
        <source dev='/dev/disk/by-path/symbolic-link-name'/>
        <target dev='device-name' bus='scsi'/>
        <shareable/>
    
    </disk>
    EOF
    )