Opened 9 years ago
Last modified 9 years ago
#14825 new defect
Can not delete iscsi harddisk
Reported by: | ED | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 5.0.10 |
Keywords: | iscsi delete re-add | Cc: | |
Guest type: | other | Host type: | other |
Description (last modified by )
I have some trouble with deleting an iscsi disk in virtualbox. Also it is not possible to add the same iscsi disk to another virtual server. It does not matter if the first is powerd of or not. I get an error because a hard disk '192.168.1.8|iqn.2015-11.priv.thuis:target00' with UUID {fe6776f8-25fa-4b1c-b96e-e16afd633817} already exists
What i did:
VBoxManage storageattach iscsi-client --storagectl SATA --medium iscsi --port 1 --type hdd --server 192.168.1.8 --target iqn.2015-11.priv.thuis:target00
Because i did forget to add the username password I did delete the disk using the GUI.
I try to re-enter it with:
VBoxManage storageattach iscsi-client --storagectl SATA --medium iscsi --port 1 --type hdd --server 192.168.1.8 --target iqn.2015-11.priv.thuis:target00 --username user --password pass
I get:
Cannot register the hard disk '192.168.1.8|iqn.2015-11.priv.thuis:target00' {84b04650-7ac5-4b08-852b-0e4713e88f94} because a hard disk '192.168.1.8|iqn.2015-11.priv.thuis:target00' with UUID {fe6776f8-25fa-4b1c-b96e-e16afd633817} already exists VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component VirtualBoxWrap, interface IVirtualBox, callee IUnknown VBoxManage.exe: error: Context: "CreateMedium(Bstr("iSCSI").raw(), bstrISCSIMedium.raw(), AccessMode_ReadWrite, DeviceType_HardDisk, pMedium2Mount.asOutParam())" at line 608 of file VBoxManageStorageController.cpp C:\Program Files\Oracle\VirtualBox>vboxmanage list hdds UUID: 7d29ac59-43b0-4595-a7dc-e5b87033ff8c Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Windows 7-32\Windows 7.vdi Storage format: VDI Capacity: 25600 MBytes Encryption: disabled UUID: 274c38c6-e931-4a8f-acdf-89436214c23c Parent UUID: base State: created Type: normal (base) Location: D:\VMs\CoovaChilli-Deb1386\Debian i386-disk1.vmdk Storage format: VMDK Capacity: 8192 MBytes Encryption: disabled UUID: 24e8290b-c1d3-4cea-ab97-05e76c26b0a3 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\ubuntu i386\ubuntu i386.vdi Storage format: VDI Capacity: 8192 MBytes Encryption: disabled UUID: b72048bf-1990-4325-b7b5-1cfee0606d38 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Windows 7-64\Windows 7-64.vdi Storage format: VDI Capacity: 25600 MBytes Encryption: disabled UUID: f379e8af-2580-4a26-b0cc-97fa8f303883 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Ubuntu-server-14.04-64\Ubuntu-server-14.04-64.vdi Storage format: VDI Capacity: 8192 MBytes Encryption: disabled UUID: b0e885be-4407-44bc-89e5-589301fc311d Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Debian 8 64\Debian 8 64.vdi Storage format: VDI Capacity: 8192 MBytes Encryption: disabled UUID: 268f19c2-529a-411f-9334-9066a3074ad6 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Debian 8 32\Debian 8 32.vdi Storage format: VDI Capacity: 8192 MBytes Encryption: disabled UUID: 30cb79f9-1367-4ed6-802d-54682076a9d7 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Zoneminder-1.25.0-Ubuntu-12.04.1-LTS\Zoneminder-1.25.0-Ubuntu-12.04.vmdk Storage format: VMDK Capacity: 20480 MBytes Encryption: disabled UUID: 38a669e0-d520-4579-873d-14dd5a208d8e Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Samba-1\Debian 8 64-disk2.vmdk Storage format: VMDK Capacity: 8192 MBytes Encryption: disabled UUID: 336b4971-4929-446f-9f8b-777d031b5299 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Samba-2\Debian 8 64-disk2.vmdk Storage format: VMDK Capacity: 8192 MBytes Encryption: disabled UUID: c2b87337-d0d9-4812-9c9d-0412fc0cb206 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\iscsi-client\Debian 8 64-disk2.vmdk Storage format: VMDK Capacity: 8192 MBytes Encryption: disabled UUID: 9215613d-762e-486f-a314-280751d1a933 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\iscsi-target\Debian 8 64-disk2.vmdk Storage format: VMDK Capacity: 8192 MBytes Encryption: disabled UUID: 747eb50d-4b9a-47ff-bc95-0da5154f2ccc Parent UUID: base State: created Type: normal (base) Location: D:\VMs\iscsi-target\iSCSITarget1.vdi Storage format: VDI Capacity: 8192 MBytes Encryption: disabled UUID: 80501db1-5695-4330-9929-71992395d127 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\FreeNAS\FreeNAS.vdi Storage format: VDI Capacity: 8192 MBytes Encryption: disabled UUID: cd38abf5-7ca1-47fd-bc3d-6de6685cf692 Parent UUID: base State: created Type: normal (base) Location: D:\VMs\Werk\Debian 8 64-disk2.vmdk Storage format: VMDK Capacity: 8192 MBytes Encryption: disabled C:\Program Files\Oracle\VirtualBox>
The disk is not in the list !!! ? Why can i not add it then ?
When i try to delete it with:
C:\Program Files\Oracle\VirtualBox>vboxmanage closemedium disk {fe6776f8-25fa-4b1c-b96e-e16afd633817} VBoxManage.exe: error: The given path '{fe6776f8-25fa-4b1c-b96e-e16afd633817}' is not fully qualified VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee IUnknown VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
I have looked at the internet and forums for answers on this issue. I did not find a good solution
Is this a bug.
Or have i have to do it in some special way
I also want to use iscsi for two hosts, with one disk. If one fails i can start the other one automatically. (2 hosts one up, one down with one storage)
Thanks.
Erik
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Description: | modified (diff) |
---|
Just as some more background information: I have searched (before i made the ticket)and only found these:
Deleting iscsi medium by UUID - Norchem - 26-sept-2012
Storageattach: Invalid UUID or filename - Rschmied - 17 nov -2012