01.02.2014 21:57, Meital Bourvine пишет:
> I think that it should be something like this:
>
> Method: PUT
>
> URL:https://<IP>/api/storageconnections/<ID>
>
> Body:
> <storage_connection>
> <address></address>
> <type></type>
> <port></port>
> <target></target>
> </storage_connection>
>
> (Add the correct details to the body.
>
> ----- Original Message -----
>> From: "Itamar Heim"<iheim(a)redhat.com>
>> To: "Alexandr"<shuriku@shurik.kiev.ua>,users(a)ovirt.org
>> Sent: Saturday, February 1, 2014 7:58:56 PM
>> Subject: Re: [Users] Reattach storage domain
>>
>> On 02/01/2014 06:56 PM, Alexandr wrote:
>>> Thank you. Can you provide me more detailed steps, I'm not familiar with
>>> rest api :(
>> sorry i can't give more details right now:
>> manage connection details:
>>
http://www.ovirt.org/Features/Manage_Storage_Connections
>>
>> rest api (and other things):
>>
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Vir...
>>
>>
>>> 01.02.2014 19:51, Itamar Heim пишет:
>>>> On 02/01/2014 06:38 PM, Alexandr wrote:
>>>>> Hello!
>>>>>
>>>>> Unfortunately my master storage domain (gluster) is dead. I setup
>>>>> another gluster-storage and attach it to the ovirt. Hostname, path
and
>>>>> volume name are same as old ones. Then I restored from tar archive
all
>>>>> files. But I cannot activate master domain, operation failed and
domain
>>>>> status remains "inactive". I see - it mounted on nodes:
>>>>>
>>>>> vms02.lis.ua:STORAGE on
>>>>> /rhev/data-center/mnt/glusterSD/vms02.lis.ua:STORAGE
>>>>> a
>>>>> I attached engine.log, can someone provide me recovery steps?
>>>>>
>>>>> P.S. Sorry for my english
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users(a)ovirt.org
>>>>>
http://lists.ovirt.org/mailman/listinfo/users
>>>>>
>>>> the right way to do this would be to restore it not via engine, then
>>>> use the rest api to edit the storage domain connection (mount) in the
>>>> engine.
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>>
http://lists.ovirt.org/mailman/listinfo/users
>>
I tried to change it via ovirt-shell and receive an error:
[oVirt shell (connected)]# update storageconnection
4a1d8b07-f393-4134-86cc-4f46145cca2b --address vms02.lis.ua --path STORAGE
error:
status: 400
reason: Bad Request
detail: Cannot edit Storage Connection. Storage connection parameters
can be edited only for NFS, Posix, local or iSCSI data domains.