Changes for page Storage

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

From version 4.2
edited by Kevin Wiki
on 2025/09/23 07:42
Change comment: There is no comment for this version
To version 3.4
edited by Kevin Wiki
on 2025/09/23 07:32
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 -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`
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`
34 34  
35 35  ```bash
36 36  $ fdisk -l
... ... @@ -47,26 +47,7 @@
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 -Identify the vm disk path using the command:
53 -
54 -```bash
55 -pvesm path STORAGE:vm-VM_ID-disk-0
56 56  ```
57 57  
58 -Stop the container or vm:
59 -
60 -```bash
61 -qm stop 401
62 -or
63 -lxc-stop 401
64 -```
65 -
66 -Then convert the the storage with:
67 -
68 -```bash
69 -qemu-img convert -p -O qcow2 $(pvesm path local-lvm:vm-401-disk-0) vm-401-disk-0.qcow2
70 -```
71 -
72 -note, here we also move the storage from `local-lvm` to `nvme`.
53 +