Changes for page Storage

Last modified by Kevin Wiki on 2025/09/23 07:42

From version 3.4
edited by Kevin Wiki
on 2025/09/23 07:32
Change comment: There is no comment for this version
To version 4.1
edited by Kevin Wiki
on 2025/09/23 07:35
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -30,7 +30,7 @@
30 30  
31 31  ## Moving images from LVM storage
32 32  
33 -Identify the lvm disk we are after. If is was LXC container with id 401, a disk might look like `/dev/mapper/pve-vm--401--disk--0`
33 +The actual disk is mounted as a mapper device. If is was LXC container with id 401, a disk might look like `/dev/mapper/pve-vm--401--disk--0`
34 34  
35 35  ```bash
36 36  $ fdisk -l
... ... @@ -50,4 +50,22 @@
50 50  
51 51  ```
52 52  
53 +Identify the vm disk path using the command:
54 +
55 +```bash
56 +pvesm path STORAGE:vm-VM_ID-disk-0
57 +
58 +or
59 +
60 +pvesm path local-lvm:vm-401-disk-0
61 +```
62 +
63 +Then convert the the storage with:
64 +
65 +```bash
66 +qemu-img convert -O qcow2 $(pvesm path local-lvm:vm-401-disk-0) nvme
67 +```
68 +
69 +note, here we also move the storage from `local-lvm` to `nvme`.
70 +
53 53