mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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…
x
Reference in New Issue
Block a user