<div dir="ltr"><div><div><div><div>Federico,<br><br></div>You&#39;re a life savor.. Its was a permissions issues, somehow, the owner and group was assigned as root. I matched permission with the original data and it works! Cant believe I missed something so simple.<br>
</div></div>Thanks you!<br><br></div>Usman<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 4, 2013 at 11:07 AM, Federico Simoncelli <span dir="ltr">&lt;<a href="mailto:fsimonce@redhat.com" target="_blank">fsimonce@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Usman,<br>
 the only thing that comes to my mind is something related to:<br>
<br>
<a href="http://gerrit.ovirt.org/13529" target="_blank">http://gerrit.ovirt.org/13529</a><br>
<br>
which means that in some way the restored volumes are either inaccessible<br>
(permissions?) or their metadata is corrupted (but it doesn&#39;t seem so).<br>
<br>
There is probably another Traceback in the logs that should give us more<br>
information.<br>
<br>
Could you post somewhere the entire vdsm log?<br>
<br>
Thanks.<br>
<div class="im">--<br>
Federico<br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Usman Aslam&quot; &lt;<a href="mailto:usman@linkshift.com">usman@linkshift.com</a>&gt;<br>
</div><div class="im">&gt; To: &quot;Federico Simoncelli&quot; &lt;<a href="mailto:fsimonce@redhat.com">fsimonce@redhat.com</a>&gt;<br>
&gt; Cc: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
&gt; Sent: Friday, October 4, 2013 4:49:08 PM<br>
&gt; Subject: Re: [Users] VM wont restart after some NFS snapshot restore.<br>
&gt;<br>
&gt; Federico,<br>
&gt;<br>
&gt; The files reside on this mount on the hypervisor<br>
&gt; /rhev/data-center/mnt/<a href="http://xyz-02.tufts.edu" target="_blank">xyz-02.tufts.edu</a>:<br>
&gt; _vol_tusk__vm_tusk__vm/fa3279ec-2912-45ac-b7bc-9fe89151ed99/images/79ccd989-3033-4e6a-80da-ba210c94225a<br>
&gt;<br>
&gt; and are symlinked as described below<br>
&gt;<br>
&gt; [root@xyz-02 430cd986-6488-403b-8d46-29abbc3eba38]# pwd<br>
&gt; /rhev/data-center/430cd986-6488-403b-8d46-29abbc3eba38<br>
&gt; [root@xyz-02 430cd986-6488-403b-8d46-29abbc3eba38]# ll<br>
&gt; total 12<br>
&gt; lrwxrwxrwx 1 vdsm kvm 120 Oct  3 12:35 ee2ae498-6e45-448d-8f91-0efca377dcf6<br>
&gt; -&gt; /rhev/data-center/mnt/<a href="http://xyz-02.tufts.edu" target="_blank">xyz-02.tufts.edu</a>:<br>
&gt; _vol_tusk__iso_tusk__iso/ee2ae498-6e45-448d-8f91-0efca377dcf6<br>
&gt; lrwxrwxrwx 1 vdsm kvm 118 Oct  3 12:35 fa3279ec-2912-45ac-b7bc-9fe89151ed99<br>
&gt; -&gt; /rhev/data-center/mnt/<a href="http://xyz-02.tufts.edu" target="_blank">xyz-02.tufts.edu</a>:<br>
&gt; _vol_tusk__vm_tusk__vm/fa3279ec-2912-45ac-b7bc-9fe89151ed99<br>
&gt; lrwxrwxrwx 1 vdsm kvm 118 Oct  3 12:35 mastersd -&gt;<br>
&gt; /rhev/data-center/mnt/<a href="http://xyz-02.tufts.edu" target="_blank">xyz-02.tufts.edu</a>:<br>
&gt; _vol_tusk__vm_tusk__vm/fa3279ec-2912-45ac-b7bc-9fe89151ed99<br>
&gt;<br>
</div>&gt; I did a diff and the contents of the the *Original *meta file (that works<br>
&gt; and VM starts but have bad file system) and the *Backup *meta file (the<br>
&gt; files being restored from nfs snapshot) *are exactly the same*.<br>
<div class="HOEnZb"><div class="h5">&gt; Contents are listed blow. Also the files sizes for all six related files<br>
&gt; are exactly the same.<br>
&gt;<br>
&gt; [root@xyz-02 images]# cat<br>
&gt; 79ccd989-3033-4e6a-80da-ba210c94225a/039a8482-c267-4051-b1e6-1c1dee49b3d7.meta<br>
&gt; DOMAIN=fa3279ec-2912-45ac-b7bc-9fe89151ed99<br>
&gt; VOLTYPE=SHARED<br>
&gt; CTIME=1368457020<br>
&gt; FORMAT=RAW<br>
&gt; IMAGE=59b6a429-bd11-40c6-a218-78df840725c6<br>
&gt; DISKTYPE=2<br>
&gt; PUUID=00000000-0000-0000-0000-000000000000<br>
&gt; LEGALITY=LEGAL<br>
&gt; MTIME=1368457020<br>
&gt; POOL_UUID=<br>
&gt; DESCRIPTION=Active VM<br>
&gt; TYPE=SPARSE<br>
&gt; SIZE=104857600<br>
&gt; EOF<br>
&gt; [root@tss-tusk-ovirt-02 images]# cat<br>
&gt; 79ccd989-3033-4e6a-80da-ba210c94225a/8d48505d-846d-49a7-8b50-d972ee051145.meta<br>
&gt; DOMAIN=fa3279ec-2912-45ac-b7bc-9fe89151ed99<br>
&gt; CTIME=1370303194<br>
&gt; FORMAT=COW<br>
&gt; DISKTYPE=2<br>
&gt; LEGALITY=LEGAL<br>
&gt; SIZE=104857600<br>
&gt; VOLTYPE=LEAF<br>
&gt; DESCRIPTION=<br>
&gt; IMAGE=79ccd989-3033-4e6a-80da-ba210c94225a<br>
&gt; PUUID=039a8482-c267-4051-b1e6-1c1dee49b3d7<br>
&gt; MTIME=1370303194<br>
&gt; POOL_UUID=<br>
&gt; TYPE=SPARSE<br>
&gt; EOF<br>
&gt;<br>
&gt; Any help would be greatly appreciated!<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Usman<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Oct 4, 2013 at 9:50 AM, Federico Simoncelli<br>
&gt; &lt;<a href="mailto:fsimonce@redhat.com">fsimonce@redhat.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; Hi Usman,<br>
&gt; &gt;  can you paste somewhere the content of the meta files?<br>
&gt; &gt;<br>
&gt; &gt;  $ cat 039a8482-c267-4051-b1e6-1c1dee49b3d7.meta<br>
&gt; &gt; 8d48505d-846d-49a7-8b50-d972ee051145.meta<br>
&gt; &gt;<br>
&gt; &gt; could you also provide the absolute path to those files? (in the vdsm host)<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; --<br>
&gt; &gt; Federico<br>
&gt; &gt;<br>
&gt; &gt; ----- Original Message -----<br>
&gt; &gt; &gt; From: &quot;Usman Aslam&quot; &lt;<a href="mailto:usman@linkshift.com">usman@linkshift.com</a>&gt;<br>
&gt; &gt; &gt; To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
&gt; &gt; &gt; Sent: Thursday, October 3, 2013 4:29:43 AM<br>
&gt; &gt; &gt; Subject: [Users] VM wont restart after some NFS snapshot restore.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have some VM&#39;s that live on NFS share. Basically, I had to revert the<br>
&gt; &gt; VM<br>
&gt; &gt; &gt; disk to a backup from a few days ago. So I powered the VM down, copied<br>
&gt; &gt; over<br>
&gt; &gt; &gt; the following files<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 039a8482-c267-4051-b1e6-1c1dee49b3d7<br>
&gt; &gt; &gt; 039a8482-c267-4051-b1e6-1c1dee49b3d7.lease<br>
&gt; &gt; &gt; 039a8482-c267-4051-b1e6-1c1dee49b3d7.meta<br>
&gt; &gt; &gt; 8d48505d-846d-49a7-8b50-d972ee051145<br>
&gt; &gt; &gt; 8d48505d-846d-49a7-8b50-d972ee051145.lease<br>
&gt; &gt; &gt; 8d48505d-846d-49a7-8b50-d972ee051145.meta<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; and now when I try to power the VM, it complains<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 2013-Oct-02, 22:02:38<br>
&gt; &gt; &gt; Failed to run VM zabbix-prod-01 (User: admin@internal).<br>
&gt; &gt; &gt; 2013-Oct-02, 22:02:38<br>
&gt; &gt; &gt; Failed to run VM zabbix-prod-01 on Host<br>
&gt; &gt; &gt; <a href="http://tss-tusk-ovirt-01-ovirtmgmt.tusk.tufts.edu" target="_blank">tss-tusk-ovirt-01-ovirtmgmt.tusk.tufts.edu</a> .<br>
&gt; &gt; &gt; 2013-Oct-02, 22:02:38<br>
&gt; &gt; &gt; VM zabbix-prod-01 is down. Exit message: &#39;truesize&#39;.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Any ideas on how I could resolve this? Perhaps a better way of<br>
&gt; &gt; approaching<br>
&gt; &gt; &gt; the restore on a filesystem level?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I see the following the vsdm.log<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thread-7843::ERROR::2013-10-02<br>
&gt; &gt; &gt; 22:02:37,548::vm::716::vm.Vm::(_startUnderlyingVm)<br>
&gt; &gt; &gt; vmId=`8e8764ad-6b4c-48d8-9a19-fa5cf77208ef`::The vm start process failed<br>
&gt; &gt; &gt; Traceback (most recent call last):<br>
&gt; &gt; &gt; File &quot;/usr/share/vdsm/vm.py&quot;, line 678, in _startUnderlyingVm<br>
&gt; &gt; &gt; self._run()<br>
&gt; &gt; &gt; File &quot;/usr/share/vdsm/libvirtvm.py&quot;, line 1467, in _run<br>
&gt; &gt; &gt; devices = self.buildConfDevices()<br>
&gt; &gt; &gt; File &quot;/usr/share/vdsm/vm.py&quot;, line 515, in buildConfDevices<br>
&gt; &gt; &gt; self._normalizeVdsmImg(drv)<br>
&gt; &gt; &gt; File &quot;/usr/share/vdsm/vm.py&quot;, line 408, in _normalizeVdsmImg<br>
&gt; &gt; &gt; drv[&#39;truesize&#39;] = res[&#39;truesize&#39;]<br>
&gt; &gt; &gt; KeyError: &#39;truesize&#39;<br>
&gt; &gt; &gt; Thread-7843::DEBUG::2013-10-02<br>
&gt; &gt; 22:02:37,553::vm::1065::vm.Vm::(setDownStatus)<br>
&gt; &gt; &gt; vmId=`8e8764ad-6b4c-48d8-9a19-fa5cf77208ef`::Changed state to Down:<br>
&gt; &gt; &gt; &#39;truesize&#39;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Any help would be really nice, thanks!<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Usman<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Users mailing list<br>
&gt; &gt; &gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; &gt; &gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Usman Aslam<br>
&gt; <a href="tel:401.6.99.66.55" value="+14016996655">401.6.99.66.55</a><br>
&gt; <a href="mailto:usman@linkshift.com">usman@linkshift.com</a><br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Usman Aslam<br>401.6.99.66.55<br><a href="mailto:usman@linkshift.com">usman@linkshift.com</a>
</div>