mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9461
This converts the rbd raw format on disk to qcow2 for compression.
This commit is contained in:
parent
3149705055
commit
46df85c5bf
|
|
@ -737,10 +737,10 @@ public class KVMStorageProcessor implements StorageProcessor {
|
|||
final QemuImgFile srcFile =
|
||||
new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(primaryPool.getSourceHost(), primaryPool.getSourcePort(), primaryPool.getAuthUserName(),
|
||||
primaryPool.getAuthSecret(), rbdSnapshot));
|
||||
srcFile.setFormat(PhysicalDiskFormat.RAW);
|
||||
srcFile.setFormat(snapshotDisk.getFormat());
|
||||
|
||||
final QemuImgFile destFile = new QemuImgFile(snapshotFile);
|
||||
destFile.setFormat(snapshotDisk.getFormat());
|
||||
destFile.setFormat(PhysicalDiskFormat.QCOW2);
|
||||
|
||||
s_logger.debug("Backing up RBD snapshot " + rbdSnapshot + " to " + snapshotFile);
|
||||
final QemuImg q = new QemuImg(cmd.getWaitInMillSeconds());
|
||||
|
|
|
|||
Loading…
Reference in New Issue