I have a vm on a proxmox 7.4 cluster with disks under LVM, and I want to export as a qcow2.
I found the disk path with
root@n2:~# pvesm path vd2v1:vm-118-disk-0
/dev/msa2040-vd2v1/vm-118-disk-0
However, the path in unavailable when the VM is turned off (details below).
How do I make the disk paths "available" so I can use qemu-img to export with command below?
qemu-img convert -O qcow2 -f raw /dev/msa2040-vd2v1/vm-118-disk-0 /mnt/pve/backup2/images/clone-vm118-disk0.qcow2
I could try lvchange -a to activate the LV, but not sure if that will break anything on a production cluster... Please advise?
here is what lvs shows when vm is off
root@n2:~# lvs | grep 118
vm-118-disk-0 msa2040-vd2v1 -wi------- 100.00g
vm-118-disk-1 msa2040-vd2v1 -wi------- 300.00g
lvdisplay show status NOT available
--- Logical volume ---
LV Path /dev/msa2040-vd2v1/vm-118-disk-0
LV Name vm-118-disk-0
VG Name msa2040-vd2v1
LV UUID BetbQZ-Em5g-eZKy-OdUR-bT9Z-XKC3-3MjCj6
LV Write Access read/write
LV Creation host, time p1, 2020-09-22 09:38:13 -0500
LV Status NOT available
LV Size 100.00 GiB
Current LE 25600
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/msa2040-vd2v1/vm-118-disk-1
LV Name vm-118-disk-1
VG Name msa2040-vd2v1
LV UUID 7h4ZyT-jvrq-SBEN-rEhF-a9LW-jHsk-gjuwMP
LV Write Access read/write
LV Creation host, time p1, 2020-09-22 09:41:47 -0500
LV Status NOT available
LV Size 300.00 GiB
Current LE 76800
Segments 1
Allocation inherit
Read ahead sectors auto
I found the disk path with
root@n2:~# pvesm path vd2v1:vm-118-disk-0
/dev/msa2040-vd2v1/vm-118-disk-0
However, the path in unavailable when the VM is turned off (details below).
How do I make the disk paths "available" so I can use qemu-img to export with command below?
qemu-img convert -O qcow2 -f raw /dev/msa2040-vd2v1/vm-118-disk-0 /mnt/pve/backup2/images/clone-vm118-disk0.qcow2
I could try lvchange -a to activate the LV, but not sure if that will break anything on a production cluster... Please advise?
here is what lvs shows when vm is off
root@n2:~# lvs | grep 118
vm-118-disk-0 msa2040-vd2v1 -wi------- 100.00g
vm-118-disk-1 msa2040-vd2v1 -wi------- 300.00g
lvdisplay show status NOT available
--- Logical volume ---
LV Path /dev/msa2040-vd2v1/vm-118-disk-0
LV Name vm-118-disk-0
VG Name msa2040-vd2v1
LV UUID BetbQZ-Em5g-eZKy-OdUR-bT9Z-XKC3-3MjCj6
LV Write Access read/write
LV Creation host, time p1, 2020-09-22 09:38:13 -0500
LV Status NOT available
LV Size 100.00 GiB
Current LE 25600
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/msa2040-vd2v1/vm-118-disk-1
LV Name vm-118-disk-1
VG Name msa2040-vd2v1
LV UUID 7h4ZyT-jvrq-SBEN-rEhF-a9LW-jHsk-gjuwMP
LV Write Access read/write
LV Creation host, time p1, 2020-09-22 09:41:47 -0500
LV Status NOT available
LV Size 300.00 GiB
Current LE 76800
Segments 1
Allocation inherit
Read ahead sectors auto