[pve-devel] [PATCH qemu-server 05/31] blockdev: add helpers for attaching and detaching block devices

DERUMIER, Alexandre alexandre.derumier at groupe-cyllene.com
Mon Jun 30 12:35:22 CEST 2025


> +    # node and also implicit backing children referenced by a qcow2
> image.
> +    eval { mon_cmd($vmid, 'blockdev-del', 'node-name' =>
> "$node_name"); };
> +    if (my $err = $@) {
> +        return if $err =~ m/Failed to find node with node-name/; #
> already gone

>>does this happen regularly?

From my tests, I have seen different behaviour, depending if the
initial drive was defined in qemu command line  ,   or if it was live
hot-plugged first and hot-unplugged after.

I have also have seen different behaviour with block with defined node-
name and with autogenerated nodename.

I don't have retested since a while, so can't confirm 100%, I'll try to
do some test again today.


But I'm not sure we should return here, but instead simply skip and try
to remove the throttle group later.


More information about the pve-devel mailing list