See Figure 7–2.
# ldm add-vdsdev mpgroup=foo backend-path1 volume@primary-vds0
backend-path1 is the path to the virtual disk back end from the primary domain.
# ldm add-vdsdev mpgroup=foo backend-path2 volume@alternate-vds0
backend-path2 is the path to the virtual disk back end from the alternate domain.
# ldm add-vdisk disk-name volume@primary-vds0 ldom
After you configure the virtual disk with multipathing and start the guest domain, the virtual disk accesses its back end through one of the service domains it has been associated with. If this service domain becomes unavailable, the virtual disk attempts to access its back end through another service domain that is part of the same multipathing group.
Caution - When defining a multipathing group (mpgroup), ensure that the virtual disk back ends that are part of the same mpgroup are effectively the same virtual disk back end. If you add different back ends into the same mpgroup, you might see some unexpected behavior, and you can potentially lose or corrupt data stored on the back ends.