diff --git a/volumes/migrate-storage.md b/volumes/migrate-storage.md index cb9a95e..a8f2559 100644 --- a/volumes/migrate-storage.md +++ b/volumes/migrate-storage.md @@ -5,6 +5,8 @@ If you messed up and placed your VM or LXC on the wrong storage type, this will --- ## LXC volume migration +LXC migration must be performed on a **stopped** LXC. + For the sake of this example, we are using LXC vmid 205. Find the available storage name you want to migrate to first: @@ -40,4 +42,20 @@ pct start 205 1. Shutdown the container 2. Move the container volume to the new lvmthin storage device -3. Start the container \ No newline at end of file +3. Start the container + +--- + +## VM volume migration + +VM migration is easier and can happen **live**. + +Example: +- `vmid 800` - VM ID number +- `storage scsi0` - VM storage device (hardware tab, hard disk # ID) +- `nvme` - target storage +- `--delete 1` - delete source volume + +``` +qm move-disk 800 scsi0 nvme --delete 1 +``` \ No newline at end of file