Using VxVM snapshot as a backup copy of the boot image during the upgrade

Last published : Jun 10, 2026
You have the ability to preserve a backup copy of the guest boot image using the Veritas Volume Manager (VxVM) snapshot feature.
Veritas recommends the following configuration:
  • VxVM 7.4.2 in the control domain.
  • A mirrored VxVM volume per guest LDom boot image.
  • For ease of management, you may want to group all the LDOM boot image volumes into a separate disk group.
To upgrade the guest boot image
  1. Shut down the guest after synchronizing the operating system file system:
    \# sync
    \# init 0
    1. Stop and unbind the guest:
    \# ldm stop guest
    \# ldm unbind guest
  2. (Optional) Taking a snapshot of a VxVM volume requires allocating a DCO object that is done by executing the vxsnap prepare command. Veritas recommends that you mirror the DCO for redundancy. If you choose to do so, add two disks of reasonable size (such as 2gb) to the disk group containing the boot volumes:
    \# vxdg -g disk_group adddisk [ disk3 disk4 ]
    1. Perform one of the following:
      • If you performed step 3, prepare the separate disks in the disk group for DCO for the snapshot operation:
    \# vxsnap -g disk_group prepare boot_volume [alloc=disk3 disk4]
  • If you skipped step 3, prepare the boot volume for snapshot operation:
    \# vxsnap -g disk_group prepare boot_volume
    1. Ensure that the mirror plexes of the volume are completely synchronized:
    \# vxtask list
The output of the vxtask list command shows if any currently synchronize operation is in progress. If there is any such task in progress then you have to wait until it completes.
\# vxsnap -g disk_group print
This should show that the dirty percentage is 0% and the valid percentage is 100% for both the original and the snapshot volumes. If not, wait until the original and the snapshot volumes are synchronized.
  1. Take the snapshot of the boot volume and specify the name of the plex that you want to use for backup.
    \# vxsnap -g disk_group make \
    source=boot_volume/new=backup_vol/plex=backup_plex
    where backup_plex is the plex that you want to use for backup.
    This operation creates a snapshot volume using the backup_plex. This snapshot volume can be used to revert to the boot image to the point-in-time it was taken.
    1. Ensure that the new snapshot volume is completely synchronized:
    \# vxtask list
The output of the vxtask list command shows if any currently synchronize operation is in progress. If there is any such task in progress then you have to wait until it completes.
\# vxsnap -g disk_group print
This should show that the dirty percentage is 0% and the valid percentage is 100% for both the original and the snapshot volume. If not, wait until the original and the snapshot volumes are synchronized.
  1. Bind and restart the guest and boot the guest:
    \# ldm bind guest
    \# ldm start guest
    The guest is now booting from the primary plex.
    1. Perform the upgrade of the intended guest.
    2. Once the upgrade is successful reattach the snapshot volume to the original boot volume. This operation causes the backup plex to get re-attached back to the boot volume as a mirror, making the volume redundant again with two mirrored plexes.
    \# vxsnap -g disk_group reattach backup_vol source=boot_volume