Update volumes/migrate-storage.md

This commit is contained in:
2026-08-01 20:22:22 +00:00
parent 9f09defe2c
commit b99f372303
+19 -1
View File
@@ -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 volume migration
LXC migration must be performed on a **stopped** LXC.
For the sake of this example, we are using LXC vmid 205. For the sake of this example, we are using LXC vmid 205.
Find the available storage name you want to migrate to first: Find the available storage name you want to migrate to first:
@@ -40,4 +42,20 @@ pct start 205
1. Shutdown the container 1. Shutdown the container
2. Move the container volume to the new lvmthin storage device 2. Move the container volume to the new lvmthin storage device
3. Start the container 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
```