]> git.proxmox.com Git - pve-docs.git/commitdiff
qm: pct: mention move-disk for storage and reassign
authorAaron Lauterer <a.lauterer@proxmox.com>
Mon, 15 Nov 2021 14:49:42 +0000 (15:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Nov 2021 14:51:49 +0000 (15:51 +0100)
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
pct.adoc
qm.adoc

index 6f4d47a22589ffb96351c5787388c19e9b5bfb89..3fd7361b2539796e53d51b48533cb99020298580 100644 (file)
--- a/pct.adoc
+++ b/pct.adoc
@@ -1050,6 +1050,19 @@ backup jobs and HA resource configurations.
 # pct destroy 100 --purge
 ----
 
+Move a mount point volume to a different storage.
+
+----
+# pct move-volume 100 mp0 other-storage
+----
+
+Reassign a volume to a different CT. This will remove the volume `mp0` from
+the source CT and attaches it as `mp1` to the target CT. In the background
+the volume is being renamed so that the name matches the new owner.
+
+----
+#  pct move-volume 100 mp0 --target-vmid 200 --target-volume mp1
+----
 
 
 Obtaining Debugging Logs
diff --git a/qm.adoc b/qm.adoc
index b9f42698b3a96fd777f26d0d90fc45de6b45978c..62a53c0e1e8e0cfaeced93b95f066646d1cd4123 100644 (file)
--- a/qm.adoc
+++ b/qm.adoc
@@ -1447,6 +1447,15 @@ backup jobs and HA resource configurations.
 
  qm destroy 300 --purge
 
+Move a disk image to a different storage.
+
+ qm move-disk 300 scsi0 other-storage
+
+Reassign a disk image to a different VM. This will remove the disk `scsi1` from
+the source VM and attaches it as `scsi3` to the target VM. In the background
+the disk image is being renamed so that the name matches the new owner.
+
+ qm move-disk 300 scsi1 --target-vmid 400 --target-disk scsi3
 
 
 [[qm_configuration]]