Using Backups To Migrate Systems

I am using last Cloudmin version and I want migrate a backed up VM machine using Using "Backups To Migrate Systems" illustrated here https://www.virtualmin.com/documentation/cloudmin/vm/backup On Cloudmin interface i see:

Restoring 1 systems from /mnt/nas-backup/samba3/backupVirtualMachine on Cloudmin master .. Finding systems to restore .. .. found 1 systems Working out backup sources .. .. found 1 usable sources

Re-creating missing system pgsql7.kvm.mydoman.com .. Creating virtual system with KVM ..

If I log on to mi host with htop a see a process : dd if=/dev/zero of=/kvm/.img bs=32768 that create a huge file now of abot 300Gb when my real virtual machine img file is 45 Gb

Why ?

I don't stop i thing that this will fill all my HD space

My linux machine is:

Linux nas1-2 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux

THanks Alberto

Status: 
Active

Comments

Body: View changes

Hi at about 360Gb I manually kill the dd process and the restore process on Cloudmin is go to end. Is this normal ? THanks Alberto

.. creation started. Waiting for creation to complete .. .. creation has completed successfully.

Adding DNS entry pgsql7.kvm.mydomain. for IP address .. .. system has no IP address!

Fetching current status .. .. status successfully retrieved (Down)

Re-fetching current status of host system nas1-2 .. .. status successfully retrieved (Webmin)

Enabling system at host boot time .. .. done

.. done Restoring pgsql7.kvm.studiozocca.com from /mnt/nas-backup/samba3/backupVirtualMachine/pgsql7.kvm.mydomain.gz on Cloudmin master .. Restoring copies of disks for pgsql7.kvm.mydomain .................................................................................. ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................ .. restored backup Updating network interface bridges .. .. no bridges needed fixing

I get the same problem! File grows indefinitely

How large is the disk image of the VM being backed up?

The backed up image is 3.8 Gb, and I killed the process when the new VM file was about 350Gb! It's KVM too

Is the VM using a LVM volume group for disk images, or a regular file?

I am not sure anymore, and as I have no access to the old machine (that I am trying to restore), and neither to the old Cloudmin (the cloudmin server crashed - HW failure - a few hours after the old machine) so I can';t tell you for sure, but maybe you can know through the content of the .serv and .disks files?BTW there are 2 other files: xxxx.xx.gz and xxxx.xx.gz1 but the latter one is zero byte.

****.**.serv:

short_host=ns1.****.**
created=1551368218
module=server-manager
kvm_memory=512
ssh_protocol=2
host=ns1.****.**
kvm_args=-enable-kvm
kvm_filesystem=/data/kvm/ns1.****.**.img
kvm_bootdevice=c
id=1551368218225270
mac=*******
ssh_pass=******
desc=
kvm_drives=file=/data/kvm/ns1.****.**.img,media=disk,index=0,if=ide file=/data/kvm/ns1.****.**.swap,media=disk,cache=off,index=1,if=ide
ssl=1
ip=163.172.***.**
kvm_monitor_port=40000
ssh_user=root
kvm_smp=1
kvm=1197
ssh_pass_same=1
user=root
kvm_on=1551368099214580
missing=0
kvm_model=virtio
pass=********
xen_wholedisk=0
ssh_nologin=0
port=10000
kvm_net=tap,vlan=0,script=/data/kvm/ns1.****.**-eth0.sh
manager=kvm
statustime=1566534931
status_hostkey=0
kvm_vnc_display=12
kvm_disktotal=13958643712
status=virt
status_msg=
file=/etc/webmin/servers/1551368218225270.serv
statuslast=downwebmin
statuslasttime=1566534931
statushistory=virt
ssh_ciphers=
ssh_sudo=
label_map=
unix_hostname=ns1.****.**
ip_addresses=163.172.***.**
root_shell=/bin/bash
ip6_addresses=
has_net_ssleay=1
webminroot=/usr/share/webmin
mac_addresses=*****
fast=1
no_webmin_login=0
checkssl=
webmin_real_os_type=Ubuntu Linux
kvm_ip6=fe80::*****
webmin_os_type=debian-linux
webmin_os_version=9.0
webmin_real_os_version=16.04
webmin_config_directory=/etc/webmin
all_poss=57
update_system=apt
virtualmin_error=
virtualmin_poss=3
virtualmin_checked=1
virtualmin_domains=2
status_err=Host system 163.172.***.** is down
backup_atboot=1
sec=1
nsname=
bind8_view=

****.**.disks:

ARRAY,HASH%2CVAL%252Cstorage%25255Fid%2CVAL%252Cfiles%2CVAL%252Ccache%2CUNDEF%2CVAL%252Cdrive%25255Findex%2CVAL%252C0%2CVAL%252Cvirtdev%2CVAL%252Chda%2CVAL%252Cdevice%2CVAL%252C0%2CVAL%252Cmedia%2CVAL%252Cdisk%2CVAL%252Cstorage%2CVAL%252CRegular%252520files%2CVAL%252Csize%2CVAL%252C12884901888%2CVAL%252Creal%2CVAL%252C%25252Fdata%25252Fkvm%25252Fns1%25252E*****%25252E**%25252Eimg%2CVAL%252Cindex%2CVAL%252C0%2CVAL%252Cvirt%2CVAL%252C%25252Fdev%25252Fhda%2CVAL%252Cformat%2CVAL%252Cdisk,HASH%2CVAL%252Creal%2CVAL%252C%25252Fdata%25252Fkvm%25252Fns1%25252E*****%25252E**%25252Eswap%2CVAL%252Cvirt%2CVAL%252C%25252Fdev%25252Fhdb%2CVAL%252Cindex%2CVAL%252C1%2CVAL%252Cformat%2CVAL%252Cdisk%2CVAL%252Cdrive%25255Findex%2CVAL%252C1%2CVAL%252Cstorage%25255Fid%2CVAL%252Cfiles%2CVAL%252Ccache%2CVAL%252Coff%2CVAL%252Cdevice%2CVAL%252C0%2CVAL%252Cmedia%2CVAL%252Cdisk%2CVAL%252Cvirtdev%2CVAL%252Chdb%2CVAL%252Cstorage%2CVAL%252CRegular%252520files%2CVAL%252Csize%2CVAL%252C1073741824

Ok, looks like it's not using LVM based on that .serv file.

Try adding the line kvm_disksize= 13958643712 to the .serv file and see if that helps.