[PVE-User] about restore to the exist vm, deleted the mounted disk(data disks).

lyt_yudi lyt_yudi at 126.com
Sat Jul 14 07:28:17 CEST 2012


Just the title,When i restore a virtual machine from the vm template(only have a system disk), I don't want to delete the mounted disk.

such as this vm:
# cat /etc/pve/qemu-server/100.conf 
bootdisk: virtio0
cores: 4
cpuunits: 1000
ide0: none,media=cdrom
localtime: 1
memory: 4096
name: test
net0: virtio=1A:3D:E8:A5:B7:C1,bridge=vmbr3
onboot: 1
ostype: l26
sockets: 1
virtio0: local:101/vm-100-disk-1.raw
virtio1: local:101/vm-100-disk-2.raw,backup=no

vm-100-disk-1.raw is the vm(test) system disk,
vm-100-disk-2.raw is the data disk

when i restored to this the vm(test) from the vm template(only a system disk), the data disk(vm-100-disk-2.raw) is being deleted.
God, it's so very sad! :(

I tryed changed "virtio1" to "unused1",like:
unused1: local:101/vm-100-disk-2.raw,backup=no
but restored,the data disk(vm-100-disk-2.raw) is still being removed.

So,I suggest add options for the mounted disk,like this :)
virtio1: local:101/vm-100-disk-2.raw,backup=no,delete=no
unused1: local:101/vm-100-disk-2.raw,backup=no,delete=no

But,only add this options,maybe can't solve this problem,Perhaps restore function needs to be adjusted,and so so.

# pveversion -v
pve-manager: 2.1-12 (pve-manager/2.1/be112d89)
running kernel: 2.6.32-13-pve
proxmox-ve-2.6.32: 2.1-71
pve-kernel-2.6.32-13-pve: 2.6.32-71
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.92-2
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.8-1
pve-cluster: 1.0-27
qemu-server: 2.0-43
pve-firmware: 1.0-17
libpve-common-perl: 1.0-28
libpve-access-control: 1.0-24
libpve-storage-perl: 2.0-21
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.1-4
ksm-control-daemon: 1.1-1

The above is my test results,Perhaps I was wrong,Please you point out! Thanks you :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pve-user/attachments/20120714/bc9d4f58/attachment-0014.html>

More information about the pve-user mailing list