Exadata, how to backup domU

Backup user domaine machine (domU) is quite easy in Exadata system.

1. Pause the DomU

[root@db01-m ~]# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  8571     4     r----- 15546936.0
vm01db01.mydomaine.local             48 180227    22        -b----  56705.8
...

root@db01-m ~]# xm pause vm01db01.mydomaine.local 


[root@db01-m ~]# xm list
Name                                 ID   Mem VCPUs  State   Time(s)
Domain-0                                0  8571     4  ----- 15475175.2
vm01db01.mydomaine.local        48 180227       22  --p--- 29.7          <==== in pause status

2. reflink orig_file snap_file

[root@db01-m ~]# mkdir -p /EXAVMIMAGES/Backup
[root@db01-m ~]# find /EXAVMIMAGES/GuestImages/vm01db01.mydomaine.local -type f -exec reflink {} /EXAVMIMAGES/Backup{} \;

3.Unpausing the DomU

root@db01-m ~]# xm unpause vm01db01.mydomaine.local 

4. Create a backup of the snapshots

[root@db01-m ~]# tar -cvzpf vm01db01.tar.gz /EXAVMIMAGES/Backup/vm01db01

5. remove reflinks

[root@db01-m ~]# rm –rf /EXAVMIMAGES/Backup/*

Published by dbaliw

Highly experienced Oracle Database Administrator and Exadata Specialist with over 15 years of expertise in managing complex database environments. Skilled in cloud technologies, DevOps practices, and automation. Certified Oracle Cloud Infrastructure Architect and Oracle Certified Master with a strong background in performance tuning, high availability solutions, and database migrations.

Leave a comment