[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] drive_add: Duplicate ID 'hda' for drive
From: |
Narcis Garcia |
Subject: |
Re: [Qemu-discuss] drive_add: Duplicate ID 'hda' for drive |
Date: |
Sun, 1 Apr 2018 10:51:26 +0200 |
I'd try to use "index=N" variable at "-drive" parameters:
-drive file=disk1.qcow2,index=0
-drive file=disk2.qcow2,index=1
El 29/03/18 a les 04:23, Khitai Pang ha escrit:
> 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
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-discuss] drive_add: Duplicate ID 'hda' for drive,
Narcis Garcia <=