[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] drive_add: Duplicate ID 'hda' for drive
From: |
Khitai Pang |
Subject: |
Re: [Qemu-discuss] drive_add: Duplicate ID 'hda' for drive |
Date: |
Thu, 29 Mar 2018 02:23:34 +0000 |
Resend.
I'm using qemu 2.11.1.
Best Regards,
Khitai
On 2018/3/29 0:29, Khitai Pang wrote:
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