Manual backup

The backup process involves creating a copy of the data volume from the source system and securely storing it for future recovery.

Procedure

  1. List all running instances:
    virsh list --all
    Sample output
    Id   Name            State  
    ------------------------------ 
    1   goveng    running
  2. List all block devices attached to the CCRT domain:
    virsh domblklist <domain-name>
    Sample output
    Target     Source 
    ------------------------------ 
    vda          goveng_ccrt 
    vdb          goveng_cloudinit 
    vdc          goveng_db
  3. List storage pools:
    virsh pool-list
    Name                      State          Autostart
    ------------------------------------------------
    storagedirpool       active              yes
  4. List volume inside storage pool:
    virsh vol-list <storage-pool-name>
    Name                                    Path 
    ---------------------------------------------------------------------- 
    ccrt                             /var/lib/libvirt/images/storage/ccrt
    goveng_cloudinit            /var/lib/libvirt/images/storage/goveng_cloudinit 
    goveng_db                   /var/lib/libvirt/images/storage/goveng_db 
    goveng_ccrt                /var/lib/libvirt/images/storage/goveng_ccrt
    In this example, hsm_signer_db is the data volume to back up.
  5. Compress the data volume:
    zip -r <zip-file> <data-volume>
    
    Sample output
    zip -r goveng_db.zip goveng_db
    updating: goveng (deflated 1%)
  6. Copy the compressed file to the target LPAR.