Changes for page Storage

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

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

Summary

Details

Page properties
Content
... ... @@ -47,7 +47,6 @@
47 47  /dev/mapper/pve-vm--121--disk--0-part1 227328 25165790 24938463 11.9G Linux filesystem
48 48  /dev/mapper/pve-vm--121--disk--0-part14 2048 10239 8192 4M BIOS boot
49 49  /dev/mapper/pve-vm--121--disk--0-part15 10240 227327 217088 106M EFI System
50 -
51 51  ```
52 52  
53 53  Identify the vm disk path using the command:
... ... @@ -54,18 +54,20 @@
54 54  
55 55  ```bash
56 56  pvesm path STORAGE:vm-VM_ID-disk-0
56 +```
57 57  
58 -or
58 +Stop the container or vm:
59 59  
60 -pvesm path local-lvm:vm-401-disk-0
60 +```bash
61 +qm stop 401
62 +or
63 +lxc-stop 401
61 61  ```
62 62  
63 63  Then convert the the storage with:
64 64  
65 65  ```bash
66 -qemu-img convert -O qcow2 $(pvesm path local-lvm:vm-401-disk-0) nvme
69 +qemu-img convert -p -O qcow2 $(pvesm path local-lvm:vm-401-disk-0) vm-401-disk-0.qcow2
67 67  ```
68 68  
69 69  note, here we also move the storage from `local-lvm` to `nvme`.
70 -
71 -