Update volumes/migrate-storage.md
This commit is contained in:
@@ -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:
|
||||
@@ -41,3 +43,19 @@ pct start 205
|
||||
1. Shutdown the container
|
||||
2. Move the container volume to the new lvmthin storage device
|
||||
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
|
||||
```
|
||||
Reference in New Issue
Block a user