all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH docs 1/2] qm: pct: mention move-disk for storage and reassign
Date: Mon, 15 Nov 2021 15:49:42 +0100	[thread overview]
Message-ID: <20211115144943.701622-1-a.lauterer@proxmox.com> (raw)

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---

A first mention. Not sure if we should quickly mention what is happening
in the background. If it is too much info at this location, remove it :)

 pct.adoc | 13 +++++++++++++
 qm.adoc  |  9 +++++++++
 2 files changed, 22 insertions(+)

diff --git a/pct.adoc b/pct.adoc
index 6f4d47a..3fd7361 100644
--- 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 b9f4269..62a53c0 100644
--- 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]]
-- 
2.30.2





             reply	other threads:[~2021-11-15 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-15 14:49 Aaron Lauterer [this message]
2021-11-15 14:49 ` [pve-devel] [PATCH docs 2/2] qm: adjust code blocks Aaron Lauterer
2021-11-15 14:53 ` [pve-devel] applied-series: [PATCH docs 1/2] qm: pct: mention move-disk for storage and reassign Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211115144943.701622-1-a.lauterer@proxmox.com \
    --to=a.lauterer@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal