Delete VM

Rubicon

New Member
Apr 17, 2017
7
0
1
45
I accidentally overwritten the machine in the storage, as a result the id 100 machine was only 1 GB instead of the last 1 TB. Tell me how to restore the disk with the machine?

Disk /dev/zd32: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 8192 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes

HELP!
 
I accidentally overwritten the machine in the storage, as a result the id 100 machine was only 1 GB instead of the last 1 TB. Tell me how to restore the disk with the machine?

Disk /dev/zd32: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 8192 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes

HELP!

Do you have a backup of the VM? If you don't, I don't know of any other way.
 
Unfortunately there is no copy, can somehow restore files from the machine?
This looks like a zfs volume, do you have snapshots of it, by any chance? Then you can just rollback to a previous state. If you don't have snapshots I suggest trying zfs-auto-snapshots for example. It can save you in many similar situations.