[one-users] Setting the "SHAREABLE" attribute

Stefan Kooman stefan at bit.nl
Thu Jan 30 06:38:23 PST 2014


Quoting Javier Fontan (jfontan at opennebula.org):
> I've been digging a bit more in the shareable issue and it seems that
> setting "shareable" to a disk just disables cache in qemu/kvm[1]:
> 
> --8<------
> 4158         virBufferAsprintf(&opt, ",cache=%s", mode);
> 4159     } else if (disk->shared && !disk->readonly) {
> 4160         virBufferAddLit(&opt, ",cache=off");
> 4161     }
> ------>8--
> 
> Isn't it enough to disable cache for disks that can be migrated?
Yes it is, at least in our environment (Ubuntu 13.10). Cache has to be
off (to avoid data loss while migrating vm).

/etc/one/vmm_exec/vmm_exec_kvm.conf:

DISK     = [ driver = "raw" , cache = "none", io = "native"]

Gr. Stefan
 

-- 
| BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
| GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl



More information about the Users mailing list