<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        FONT-SIZE: 10.5pt; COLOR: #000080; LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体
}
</STYLE>

<META content="MSHTML 6.00.3790.4986" name=GENERATOR></HEAD>
<BODY style="MARGIN: 10px">
<DIV><SPAN class=short_text lang=en id=result_box><SPAN class="">sorry,maybe 
<SPAN class=short_text lang=en id=result_box><SPAN class="">my fault, it's mean 
if use the same vmid,can't save the data disk(mounted disk by the same vmid 
vm)? </SPAN></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=short_text lang=en><SPAN class=""><SPAN class=short_text 
lang=en><SPAN class=""></SPAN></SPAN></SPAN></SPAN> </DIV>
<DIV><SPAN class=short_text lang=en><SPAN class=""><SPAN class=short_text 
lang=en><SPAN class="">thks you the quick 
reply!</SPAN></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=short_text lang=en><SPAN class=""><SPAN class=short_text 
lang=en><SPAN class=""></SPAN></SPAN></SPAN></SPAN> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>lyt_yudi</SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<DIV 
style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; COLOR: #000000; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:dietmar@proxmox.com">Dietmar 
Maurer</A></DIV>
<DIV><B>Date:</B> 2012-07-14 14:51</DIV>
<DIV><B>To:</B> <A href="mailto:lyt_yudi@126.com">lyt_yudi</A></DIV>
<DIV><B>CC:</B> <A 
href="mailto:pve-user@pve.proxmox.com">pve-user</A></DIV>
<DIV><B>Subject:</B> RE: about restore to the exist vm,deleted the mounted 
disk(data disks).</DIV></DIV></DIV>
<DIV>
<DIV>I suggest you restore to another vmid instead.</DIV>
<DIV> </DIV>
<DIV>> -----Original Message-----</DIV>
<DIV>> From: lyt_yudi [mailto:lyt_yudi@126.com]</DIV>
<DIV>> Sent: Samstag, 14. Juli 2012 07:28</DIV>
<DIV>> To: Dietmar Maurer</DIV>
<DIV>> Cc: pve-user</DIV>
<DIV>> Subject: about restore to the exist vm,deleted the mounted disk(data disks).</DIV>
<DIV>> </DIV>
<DIV>> hi,Dietmar</DIV>
<DIV>> </DIV>
<DIV>> Just the</DIV>
<DIV>> title,When i restore a virtual machine from the vm template(only have a syste</DIV>
<DIV>> m disk), I don't want to delete the mounted disk.</DIV>
<DIV>> </DIV>
<DIV>> such as this vm:</DIV>
<DIV>> # cat /etc/pve/qemu-server/100.conf</DIV>
<DIV>> bootdisk: virtio0</DIV>
<DIV>> cores: 4</DIV>
<DIV>> cpuunits: 1000</DIV>
<DIV>> ide0: none,media=cdrom</DIV>
<DIV>> localtime: 1</DIV>
<DIV>> memory: 4096</DIV>
<DIV>> name: test</DIV>
<DIV>> net0: virtio=1A:3D:E8:A5:B7:C1,bridge=vmbr3</DIV>
<DIV>> onboot: 1</DIV>
<DIV>> ostype: l26</DIV>
<DIV>> sockets: 1</DIV>
<DIV>> virtio0: local:101/vm-100-disk-1.raw</DIV>
<DIV>> virtio1: local:101/vm-100-disk-2.raw,backup=no</DIV>
<DIV>> </DIV>
<DIV>> vm-100-disk-1.raw is the vm(test) system disk, vm-100-disk-</DIV>
<DIV>> 2.raw is the data disk</DIV>
<DIV>> </DIV>
<DIV>> when i restored to this the vm(test) from the vm template(only a system disk</DIV>
<DIV>> ), the data disk(vm-100-disk-2.raw) is being deleted.</DIV>
<DIV>> God, it's so very sad! :(</DIV>
<DIV>> </DIV>
<DIV>> I tryed changed "virtio1" to "unused1",like:</DIV>
<DIV>> unused1: local:101/vm-100-disk-2.raw,backup=no</DIV>
<DIV>> but restored,the data disk(vm-100-disk-2.raw) is still being removed.</DIV>
<DIV>> </DIV>
<DIV>> So,I suggest add options for the mounted disk,like this :)</DIV>
<DIV>> virtio1: local:101/vm-100-disk-2.raw,backup=no,delete=no</DIV>
<DIV>> or</DIV>
<DIV>> unused1: local:101/vm-100-disk-2.raw,backup=no,delete=no</DIV>
<DIV>> </DIV>
<DIV>> But,only add this options,maybe can't solve this problem,Perhaps restore</DIV>
<DIV>> function needs to be adjusted,and so so.</DIV>
<DIV>> </DIV>
<DIV>> # pveversion -v</DIV>
<DIV>> pve-manager: 2.1-12 (pve-manager/2.1/be112d89) running kernel: 2.6.32-</DIV>
<DIV>> 13-pve</DIV>
<DIV>> proxmox-ve-2.6.32: 2.1-71</DIV>
<DIV>> pve-kernel-2.6.32-13-pve: 2.6.32-71</DIV>
<DIV>> lvm2: 2.02.95-1pve2</DIV>
<DIV>> clvm: 2.02.95-1pve2</DIV>
<DIV>> corosync-pve: 1.4.3-1</DIV>
<DIV>> openais-pve: 1.1.4-2</DIV>
<DIV>> libqb: 0.10.1-2</DIV>
<DIV>> redhat-cluster-pve: 3.1.92-2</DIV>
<DIV>> resource-agents-pve: 3.9.2-3</DIV>
<DIV>> fence-agents-pve: 3.1.8-1</DIV>
<DIV>> pve-cluster: 1.0-27</DIV>
<DIV>> qemu-server: 2.0-43</DIV>
<DIV>> pve-firmware: 1.0-17</DIV>
<DIV>> libpve-common-perl: 1.0-28</DIV>
<DIV>> libpve-access-control: 1.0-24</DIV>
<DIV>> libpve-storage-perl: 2.0-21</DIV>
<DIV>> vncterm: 1.0-2</DIV>
<DIV>> vzctl: 3.0.30-2pve5</DIV>
<DIV>> vzprocps: 2.0.11-2</DIV>
<DIV>> vzquota: 3.0.12-3</DIV>
<DIV>> pve-qemu-kvm: 1.1-4</DIV>
<DIV>> ksm-control-daemon: 1.1-1</DIV>
<DIV>> </DIV>
<DIV>> The above is my test results,Perhaps I was wrong,Please you point out!</DIV>
<DIV>> Thanks you :)</DIV>
<DIV>> </DIV>
<DIV>> ________________________________________</DIV>
<DIV>> lyt_yudi</DIV>
<DIV> </DIV></DIV></BODY></HTML>