Сообщения

Сообщения за декабрь, 2013

Restore deleted virtual disks under XEN or Oracle VM

Изображение
We have a high availabile Oracle VM hosts based on Oracle VM server release 3.2.2. FS - OCFS2. Human error occured and all virtual disks from repository was deleted with 'rm' command. All VM's remain active and continue working. Our first proposition: find files in the /proc/PID/fd directory and copy them. Failed. We found very small amount of deleted files there. The second way after some google-fu: All virtual images are mounted as loopback devices, so we can see them with 'losetup -a' command [root@t2ru-ovhost-03 recovery]# losetup -a /dev/loop0: [fc02]:2624777 (/OVS/Repositories/0004fb00000300005652fcdd8e980259/VirtualDisk*) /dev/loop1: [fc02]:2624776 (/OVS/Repositories/0004fb00000300005652fcdd8e980259/VirtualDisk*) /dev/loop2: [fc02]:2624779 (/OVS/Repositories/0004fb00000300005652fcdd8e980259/VirtualDisk*) /dev/loop3: [fc02]:2624786 (/OVS/Repositories/0004fb00000300005652fcdd8e980259/VirtualDisk*) /dev/loop4: [fc02]:2624789 (/OVS/Repositories/0