
On 02/03/2014 09:17 AM, Alexandr wrote:
01.02.2014 23:12, Itamar Heim пишет:
On 02/01/2014 09:58 PM, Alexandr wrote:
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@redhat.com> To: "Alexandr"<shuriku@shurik.kiev.ua>,users@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_Virtua...
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@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@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.
alisa/derez - any reason we don't support edit connection for gluster sd? I still cannot solve my problem with a storage, and now I have started most important virtual machines directly via libvirt and set in domain xml configuration file disk configuration to
disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/rhev/data-center/mnt/glusterSD/vms02.lis.ua:STORAGE/7f9709c1-3ab6-4af8-9e58-955ef7c9452e/images/fd0bf58e-3ba1-428c-a3e2-7e5410d6bc75/4ebf1396-28ac-4851-8b86-e0f1085f735e'/>
Now I have two questions:
1. If setup fresh ovirt installation how can I attach an existing gluster storage and import disks? Are http://www.ovirt.org/Features/Import_an_existing_Storage_Domain and http://www.ovirt.org/Features/Domain_Scan already implemented in 3.3.2? or 2. May be I can move these disk images into a new SD?
we're working on this, but for now you can only attach a clean SD. you can later move to it the disks and register them via the domain scan