On 17-03-14 06:31, Gianluca Cecchi wrote: > check also your PostgreSQL version with the original one. HIH, Gianluca Okay I've finally found some time to fix my problems with the old storage domains. I reinstalled the box and it's running fine but I'd love to recover the old domain I used for downloading stuff.
I just reread your email from march 16th and I'm going to try the thing you've suggested, so I hope you're still willing to help me :). > Option A - > *doesn't require copying the disks > *if your vms had snapshots involving disks - it won't work currently. > > let's try to restore a specific vm and continue from there - i'm adding here > info - if needed i'll test it on my own deployment. > A. first of all, let's get the disks attached to some vm : some options to do > that. > *under the webadmin ui, select a vm listed under the "export" domain, there > should be a disks tab indicating what disks are attached to the vm - check if > you can see the disk id's there. > B. query the storage domain content using rest-api - afaik we don't return > that info from there. so let's skip that option. > 1. under the storage domain storage directory (storage) enter the /vms > directory - you should see bunch of OVF files there - that's a file > containing a vm configuration. > 2. open one specific ovf file - that's the vm that we'll attempt to restore - > the ovf file is a file containing the vm configuration > *within the ovf file look for the following string: "diskId" and copy those > ids aside, these should be the vm attached disks. > *copy the vm disk from the other storage domain, edit the metadata > accordingly to have the proper storage domain id listed > *try to import the disks using the method specified here: > https://bugzilla.redhat.com/show_bug.cgi?id=886133 > *after this, you should see the disks as "floating", then you can add the vm > using the OVF file we discussed in stage 2 using the method specified here: > http://gerrit.ovirt.org/#/c/15894/ In order to get the disks attached to a VM, I need to move them into a new import domain. How should I determine which files to get? There were multiple VMs in the directory, each having multiple LVM-based storage domains so I just had a look, I 'm only interested in images from "Downloadbak". I found: engine=# select image_guid,size,parentid,imagestatus,volume_type,volume_format,active from images order by parentid; image_guid | size | parentid | imagestatus | volume_type | volume_format | active --------------------------------------+--------------+--------------------------------------+-------------+-------------+---------------+-------- 1d304cb5-67bd-4e21-aa2c-2470c19af885 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t aca392f5-8395-46fe-9111-8a3c4812ff72 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 182ce48c-59d0-4883-8265-0269247d22e0 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t cadcce7f-53ff-4735-b5ff-4d8fd1991d51 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 2cd8d3dc-e92f-4be5-88fa-923076aba287 | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 1 | 5 | t 5e56a396-8deb-4c04-9897-0e4f6582abcc | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 1 | 5 | t 0ad131d7-2619-42a2-899f-d25c33969dc6 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t caecf666-302d-426c-8a32-65eda8d9e5df | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 1 | 5 | t 8633fb9b-9c08-406b-925e-7d5955912165 | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 1 | 5 | t b2c5d2d5-636c-408b-b52f-b7f5558c0f7f | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t e66b18a7-e2c5-4f6c-9884-03e5c7477e3d | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 988f90f6-a37d-4dfd-8477-70aa5d2db5b6 | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 1 | 5 | f e1c098fe-4b5d-4728-81d0-7edfdd3d0ec8 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 179ad90d-ed46-467d-ad75-aea6e3ea115e | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 4d583a7a-8399-4299-9799-dec33913c20a | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 9e5be41b-c512-4f22-9d7c-81090d62dc31 | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t f613aa23-4831-4aba-806e-fb7dcdcd704d | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 76749503-4a8b-4e8f-a2e4-9d89e0de0d71 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t c46bb1c0-dad9-490c-95b4-b74b25b80129 | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 8b511fc2-4ec5-4c82-9faf-93da8490adc9 | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 1 | 5 | t 88a7d07b-b4a3-497d-b2e5-3e6ebc85d83e | 8589934592 | 00000000-0000-0000-0000-000000000000 | 1 | 1 | 5 | t 829348f3-0f63-4275-92e1-1e84681a422b | 268435456000 | 00000000-0000-0000-0000-000000000000 | 1 | 2 | 5 | t 38eee7d5-9fd1-44b0-876c-b24e4bc0085b | 8589934592 | 988f90f6-a37d-4dfd-8477-70aa5d2db5b6 | 1 | 2 | 4 | t 00000000-0000-0000-0000-000000000000 | 85899345920 | | 0 | 2 | 4 | t engine=# select * from base_disks where disk_alias like 'download%'; disk_id | disk_interface | wipe_after_delete | propagate_errors | disk_alias | disk_description | shareable | boot | sgio | alignment | last_alignment_scan --------------------------------------+----------------+-------------------+------------------+--------------------+------------------+-----------+------+------+-----------+--------------------- a33a673d-751f-4287-a655-e84dfcfcd005 | VirtIO | f | Off | downloadbak_Disk1 | test | f | t | | 0 | 5e28342e-2e90-491b-a6c3-49b2443092fd | VirtIO | f | Off | downloadbak_Disk2 | | f | f | | 0 | 907f3071-69eb-4167-8e34-22d3985f63cf | VirtIO | f | Off | downloadbak_Disk3 | | f | f | | 0 | 26628bb8-a057-4fab-af65-20258f083ab0 | VirtIO | f | Off | downloadbak_Disk4 | | f | f | | 0 | 666b1602-6979-4b17-a7fe-6524a1bf603b | VirtIO | f | Off | downloadbak_Disk5 | | f | f | | 0 | cf5371aa-2cbe-4edc-a876-2b503208b0e6 | VirtIO | f | Off | downloadbak_Disk6 | | f | f | | 0 | d718155e-eaf2-41e0-aebd-799a31af18bc | VirtIO | f | Off | downloadbak_Disk7 | | f | f | | 0 | 8616828d-e3f3-4e55-863f-387df2110ebc | VirtIO | f | Off | downloadbak_Disk8 | | f | f | | 0 | 40909eb8-be4c-4280-b9ef-51f3fa36340e | VirtIO | f | Off | downloadbak_Disk9 | | f | f | | 0 | 8483a1b6-4d79-4675-8433-eb03dcd5f53d | VirtIO | f | Off | downloadbak_Disk10 | | f | f | | 0 | eb32f782-7b29-4f54-bd3e-a736ae8c5476 | VirtIO | f | Off | downloadbak_Disk11 | | f | f | | 0 | 85d7448a-ad17-4a77-86a9-6a55c1baf1a6 | VirtIO | f | Off | downloadbak_Disk12 | | f | f | | 0 | b5a5411b-b234-4340-8338-1f2b860e4265 | VirtIO | f | Off | downloadbak_Disk13 | | f | f | | 0 | 6055a0a2-a6e9-4466-b0eb-3928c5c84d99 | VirtIO | f | Off | downloadbak_Disk14 | | f | f | | 0 | (14 rows) What's the best way of getting those attached to another VM? Moving them into an import repo? Cheers, Boudewijn _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users