
On 17/01/12 23:00, Miki Kenneth wrote:
----- Original Message -----
From: "Omer Frenkel" <ofrenkel@redhat.com> To: "Jon Choate" <jchoate@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, January 17, 2012 10:41:43 AM Subject: Re: [Engine-devel] move disk command
----- Original Message -----
From: "Jon Choate" <jchoate@redhat.com> To: "Ayal Baron" <abaron@redhat.com> Cc: engine-devel@ovirt.org Sent: Monday, January 16, 2012 9:39:55 PM Subject: Re: [Engine-devel] move disk command
On 01/16/2012 02:26 PM, Ayal Baron wrote:
----- Original Message -----
As part of the multiple storage domains feature there will be new functionality added to allow users to move individual disks.
What are the prerequisites for moving a disk?
1) the disk must exist 2) the associated VM must be down
On 01/16/2012 05:26 PM, Jon Choate wrote: this can't just be a CanDoAction check - the lock has to be real to prevent a race from starting the VM after the validation.
Either down or disk is unplugged.
3) the associated VM must not be locked 4) the source storage domain must exist 5) the source storage domain must be available 6) the target domain must exist 7) the target domain must be available 8) the target domain must have adequate disk space 9) the target domain cannot be an ISO or export domain 10) the source domain cannot be an ISO or export domain This may be unrelated, but user would be allowed to export and import a floating disk, right? I would like the ability to import *any* disk in the export domain as a floating disk, but in the least, export and import disks not associated with a VM.
you are right, it is unrelated, this thread is about move disk of a vm between SDs, export and import is copy, and floating disks is part of the shared disk feature, this indeed need to be discussed in that scope. So what is the behavior of a move of a floating disk? can I move any type of disk? (shared?) between SDs?
You can move around all disks, except: - Template disk - which has VMs based on this disk in this SD. - VM disk - which is based on a template disk that does not exist on the destination domain.