Can't import disks into proxmox - dreaded "volume deactivation failed"

Matt998

New Member
Dec 1, 2023
6
0
1
Hello,
"new" proxmox user here trying to migrate some VMs from hyper-v to proxmox. I did extensive searches for a possible solution but I just got more confused.

THE PROBLEM:

When I try to import .img images using the command qm importdisk <ID> <image> <storage> <lvm> sometimes, fails with the following error:

importing disk 'wsus1.img' to VM 113 ...
Logical volume "vm-113-disk-0" created.
transferred 0.0 B of 700.0 GiB (0.00%)
transferred 7.0 GiB of 700.0 GiB (1.00%)
transferred 14.0 GiB of 700.0 GiB (2.00%)
[................]
transferred 686.2 GiB of 700.0 GiB (98.03%)
transferred 693.2 GiB of 700.0 GiB (99.03%)
transferred 700.0 GiB of 700.0 GiB (100.00%)
transferred 700.0 GiB of 700.0 GiB (100.00%)
can't deactivate LV '/dev/fast/vm-113-disk-0': Logical volume fast/vm-113-disk-0 in use.
Logical volume "vm-113-disk-0" successfully removed.
volume deactivation failed: fast:vm-113-disk-0 at /usr/share/perl5/PVE/Storage.pm line 1246.

It happens with other VMs to... but other (smaller) migrate just fine. Nobody is altering the configuration of the cluster during the import.

MY SETUP

I have a three node setup with HA, storage is a SAN Dell M5024 which is accessed via iSCSI (multipath). I use two volumes, "fast" and "slow". Some more config info:

File /etc/multipath.conf
blacklist {
wwid .*
}

blacklist_exceptions {
wwid "3600c0ff000f9459476406f6501000000"
wwid "3600c0ff000f94837b83c6f6501000000"
}

multipaths {
multipath {
wwid "3600c0ff000f94837b83c6f6501000000"
alias mpath-fast
}
multipath {
wwid "3600c0ff000f9459476406f6501000000"
alias mpath-slow
}
}

defaults {
polling_interval 2
path_selector "round-robin 0"
path_grouping_policy multibus
uid_attribute ID_SERIAL
rr_min_io 100
failback immediate
no_path_retry queue
user_friendly_names yes
}

output of multipath -ll

mpath-fast (3600c0ff000f94837b83c6f6501000000) dm-5 DellEMC,ME5
size=14T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| |- 10:0:0:0 sdc 8:32 active ready running
| `- 11:0:0:0 sdd 8:48 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
|- 9:0:0:0 sdb 8:16 active ready running
`- 12:0:0:0 sdh 8:112 active ready running
mpath-slow (3600c0ff000f9459476406f6501000000) dm-6 DellEMC,ME5
size=15T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| |- 9:0:0:1 sdg 8:96 active ready running
| `- 12:0:0:1 sdi 8:128 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
|- 11:0:0:1 sdf 8:80 active ready running
`- 10:0:0:1 sde 8:64 active ready running

output of pveversion -v

proxmox-ve: 8.1.0 (running kernel: 6.5.11-4-pve)
pve-manager: 8.1.3 (running version: 8.1.3/b46aac3b42da5d15)
proxmox-kernel-helper: 8.0.9
proxmox-kernel-6.5.11-4-pve-signed: 6.5.11-4
proxmox-kernel-6.5: 6.5.11-4
ceph-fuse: 17.2.7-pve1
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx7
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.0
libproxmox-rs-perl: 0.3.1
libpve-access-control: 8.0.7
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.1.0
libpve-guest-common-perl: 5.0.6
libpve-http-server-perl: 5.0.5
libpve-network-perl: 0.9.4
libpve-rs-perl: 0.8.7
libpve-storage-perl: 8.0.5
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve3
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.0.4-1
proxmox-backup-file-restore: 3.0.4-1
proxmox-kernel-helper: 8.0.9
proxmox-mail-forward: 0.2.2
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.2
proxmox-widget-toolkit: 4.1.3
pve-cluster: 8.0.5
pve-container: 5.0.8
pve-docs: 8.1.3
pve-edk2-firmware: 4.2023.08-1
pve-firewall: 5.0.3
pve-firmware: 3.9-1
pve-ha-manager: 4.0.3
pve-i18n: 3.1.2
pve-qemu-kvm: 8.1.2-4
pve-xtermjs: 5.3.0-2
qemu-server: 8.0.10
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.0-pve3

output of pve -v
PV VG Fmt Attr PSize PFree DevSize PV UUID
/dev/mapper/mpath-fast fast lvm2 a-- <13,92t <9,04t <13,92t YbfOOP-AuiW-hMsQ-i1t8-H6Ms-F0rm-2kjVow
/dev/mapper/mpath-slow slow lvm2 a-- 14,55t <6,74t 14,55t 8Ib2Cn-dJ05-RGcl-dLtL-dElE-0nGZ-72r2Kj
/dev/sda3 pve lvm2 a-- <892,75g 16,00g <892,75g 7icZxD-M1YG-1tOg-0Yh0-XIf2-4V7U-n50dgd

output of vgs -v

VG Attr Ext #PV #LV #SN VSize VFree VG UUID VProfile
fast wz--n- 4,00m 1 17 0 <13,92t <9,04t 4UwFDr-AnfK-7Pn1-5pUv-JNuy-shJY-iK0hJo
pve wz--n- 4,00m 1 3 0 <892,75g 16,00g Ezmeoj-zMw3-E0IN-euNn-LEVz-dZwr-O0c5kw
slow wz--n- 4,00m 1 2 0 14,55t <6,74t 6rsewH-OkaB-HUws-8yZr-i5dK-AP9q-EVxuUo

output of lvs -v

LV VG #Seg Attr LSize Maj Min KMaj KMin Pool Origin Data% Meta% Move Cpy%Sync Log Convert LV UUID LProfile
vm-100-disk-0 fast 1 -wi-a----- <1,01t -1 -1 252 7 IssLYe-JA0a-sIlc-6vrv-cI4b-FJK0-fA1LC4
vm-101-disk-0 fast 1 -wi-ao---- 4,00m -1 -1 252 10 TRfMri-xmpR-r5zn-Zds5-YwBk-NVeC-H62NlW
vm-101-disk-1 fast 1 -wi-ao---- 150,00g -1 -1 252 8 GMz7f0-WZ4m-ch3P-xCKg-reyd-Vcls-1ypFix
vm-101-disk-3 fast 1 -wi-ao---- 4,00m -1 -1 252 17 gITu6X-IVGm-y8Aj-4j6T-ChSf-CRHQ-osfR5N
vm-102-disk-0 fast 1 -wi-a----- 1,95t -1 -1 252 11 o3b8DE-KDsv-YulU-UdHi-Ka3P-fENi-HvGhGR
vm-103-disk-0 fast 1 -wi-a----- 127,00g -1 -1 252 12 fdm3Sz-ca6B-TESy-zqbA-OFWE-2Ejg-7QPipz
vm-105-disk-0 fast 1 -wi-a----- 50,00g -1 -1 252 14 MGEQCt-eR1I-Tunf-8B3A-Kbm7-EQmJ-ixeunr
vm-106-disk-0 fast 1 -wi-a----- 100,00g -1 -1 252 15 8MBUsR-mmUJ-mGv1-tBgT-iT6K-W140-e3vPAH
vm-107-disk-0 fast 1 -wi-a----- 50,00g -1 -1 252 13 lORKwS-hMO2-pjKw-cUdw-tiYT-xqX5-Mz6sdb
vm-108-disk-0 fast 1 -wi-a----- 300,00g -1 -1 252 18 bHD3yt-SJwV-Tg82-KrHS-RK6U-xAGI-klrm6c
vm-108-disk-1 fast 1 -wi-ao---- 300,00g -1 -1 252 19 2AGYZG-RNet-iON6-fciL-PZCe-RzrN-F1KnmC
vm-109-disk-0 fast 1 -wi------- 32,00g -1 -1 -1 -1 wgXY9o-1saj-THd5-8EsU-dWJr-VZeC-bd9vZz
vm-110-disk-0 fast 1 -wi-ao---- 127,00g -1 -1 252 20 REbDMO-j49V-M6GR-KaZR-OPs4-Rqz1-oer0iq
vm-111-disk-0 fast 1 -wi-ao---- 127,00g -1 -1 252 22 53v827-F9zT-mCtT-vGog-RUYr-YC9h-QvA66l
vm-112-disk-0 fast 1 -wi-ao---- 400,00g -1 -1 252 21 AEVeJS-iYkV-gyf3-fBLd-b2PV-pEKA-ifWraP
vm-115-disk-0 fast 1 -wi-ao---- 100,00g -1 -1 252 25 7cyjzc-lgsI-rOQe-5JNe-eC9j-wf7A-6fekfd
vm-116-disk-0 fast 1 -wi------- 100,00g -1 -1 -1 -1 REUknx-2KaY-uoFC-1q1g-WONg-NjOo-T4mugf
data pve 1 twi-a-tz-- <757,29g -1 -1 252 4 0,00 0,25 0RCDyo-eQYC-LlpX-f1jA-umHZ-4uVQ-pwABbb
root pve 1 -wi-ao---- 96,00g -1 -1 252 1 P4nmjd-mh2G-wLr0-EueZ-3jsd-xiIk-JFgdkR
swap pve 1 -wi-ao---- 8,00g -1 -1 252 0 jeVNcu-vHPF-APX7-lkOW-eIbh-v2sc-cPYNGu
vm-100-disk-0 slow 1 -wi-a----- 4,00m -1 -1 252 16 PC03Ft-abTe-CLXI-OIto-2z1J-LpH3-RtW8dW
vm-101-disk-0 slow 1 -wi-ao---- 7,81t -1 -1 252 9 MRF2WJ-Zhfh-SeFZ-cqbu-e1y9-0Iwn-Wki8B1

Any idea?
Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!