qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] drive_add: Duplicate ID 'hda' for drive


From: Khitai Pang
Subject: [Qemu-discuss] drive_add: Duplicate ID 'hda' for drive
Date: Wed, 28 Mar 2018 16:29:09 +0000

Hi,


The following devices and drives are specified in my qemu command line:


-drive file=/home/test/kvm1/kvm1.qcow2,media=disk,cache=writeback,format=qcow2 \
-device virtio-scsi-pci,id=scsi \
-drive if=none,id=hda,file=/home/test/kvm1/mpath.img,cache=none,format=raw \
-device scsi-hd,drive=hda,serial=TEST \
-drive if=none,id=hdb,file=/home/test/kvm1/mpath.img,cache=none,format=raw \
-device scsi-hd,drive=hdb,serial=TEST


I use hda and hdb to emulate a multipath device.  After drive_del hda, I need 
to add it back, but it always fails:


(qemu) drive_del hda

(qemu) drive_add 0 
if=none,id=hda,file=/home/simon/ol7kvm/mpath.img,cache=none,format=raw
Duplicate ID 'hda' for drive


Any idea?



Best Regards,

Khitai

reply via email to

[Prev in Thread] Current Thread [Next in Thread]