I've been fighting with this for almost 12 hours now, and the server is still not accessible. Much of the time is lost from dd'ing from the backup disk to a .raw image (even with bs=16M, I was only getting 32MB/s on a 150G device), as well as converting the said .raw image to a compressed qcow2 image (since disk space is kind of a concern on my small setup).
The conversion process up to this point have been:
I think it may have been because I didn't setup the networking properly in the old machine, and would like to get in to correct this, but is unable to figure out how to mount this qcow2 image. I've read I'd need to use modprobe nbd max_part=63, and then qemu-nbd to create a device to mount it, but I get this error when I do modprobe nbd (with or even without the max_part part):
Is there anything else I can do to mount the qcow2 image? Am I missing something obvious in the conversion process that should be done differently?
The conversion process up to this point have been:
- rsync -aAXv /* /mnt/sdb1 --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} # Uncreatively named mount point. It is an ext3 fs, I did not write directly to device.
- Installed Proxmox 2.2 with: linux ext4 maxroot=32 swapsize=32
- Created new KVM VM with correct kernel for the original Debian Squeeze (l26), qcow2 disk, no media, and shutdown the system
- Created my raw image: dd if=/dev/sdb bs=16M of = /var/lib/vz/images/100/olddisk.raw
- Converted my raw image to qcow2: qcow-img convert -c -O qcow2 /var/lib/vz/images/100/olddisk.raw /var/lib/vz/images/100/olddisk.qcow2
- Moved old vm-100-disk-1.qcow2 to vm-100-disk-1.qcow2.bak, and mved olddisk.qcow2 to vm-100-disk-1.qcow2
- Can't boot system -- 1/2 hr later, still 100% cpu and nothing works
I think it may have been because I didn't setup the networking properly in the old machine, and would like to get in to correct this, but is unable to figure out how to mount this qcow2 image. I've read I'd need to use modprobe nbd max_part=63, and then qemu-nbd to create a device to mount it, but I get this error when I do modprobe nbd (with or even without the max_part part):
Code:
FATAL: Error inserting nbd (/lib/modules/2.6.32-16-pve/kernel/drivers/block/nbd.ko): Invalid module format
Code:
root@shana-host:/var/lib/vz/images/100# lsmod | grep nbdroot@shana-host:/var/lib/vz/images/100# modprobe nbd
FATAL: Error inserting nbd (/lib/modules/2.6.32-16-pve/kernel/drivers/block/nbd.ko): Invalid module format
root@shana-host:/var/lib/vz/images/100# lsmod | grep nbd
root@shana-host:/var/lib/vz/images/100#