[Gluster-users] Migrating a VM makes its gluster storage inaccessible

Bernhard Glomm bernhard.glomm at ecologic.eu
Tue Jan 28 13:27:38 UTC 2014


Hi Paul & all,

I found your other mail more convincing,
the permission change might be just a side effect...

a) we think in 3.4.0 it was working, and we didn't changed the libvirt/qemu version
(later in the day I will roll back to gluster from raring (13.04) repo and try to reproduce, just to be sure)

b) If it would be just a libvirt issue, why is the file not accesible even for root on the host OS?

root at pong[/3]:~ # file /srv/vms/mnt_atom01/atom01.img
/srv/vms/mnt_atom01/atom01.img: writable, regular file, no read permission

while it is readable on the brick 

root at pong[/3]:~ # file /ecopool/fs_atom01/atom01.img
/ecopool/fs_atom01/atom01.img: x86 boot sector; partition 1: ID=0x83, starthead 1, startsector 63, 16777165 sectors; partition 2: ID=0xf, starthead 254, startsector 16777228, 1677718 sectors, code offset 0x63


in this case host "pong" is the receiving side of the migration,
on host "ping", the file stays readable 

root at ping[/1]:~ # file /srv/vms/mnt_atom01/atom01.img
/srv/vms/mnt_atom01/atom01.img: x86 boot sector; partition 1: ID=0x83, starthead 1, startsector 63, 16777165 sectors; partition 2: ID=0xf, starthead 254, startsector 16777228, 1677718 sectors, code offset 0x63


Regards

Bernhard



On 28.01.2014 13:57:48, Paul Boven wrote:
> Hi everyone,
> 
> On the libvirt Wiki, I found the text below which might well apply to 
> our live-migration issue:
> 
> "The directory used for storing disk images has to be mounted from 
> shared storage on both hosts. Otherwise, the domain may lose access to 
> its disk images during migration because source libvirtd may change the 
> owner, permissions, and SELinux labels on the disk images once it 
> successfully migrates the domain to its destination. Libvirt avoids 
> doing such things if it detects that the disk images are mounted from a 
> shared storage. "
> 
> So perhaps libvirtd fails to recognize that it is on shared storage, and 
> it is the originating libvirt that throws a wrench in the wheels by 
> changing the ownership?
> 
> http://wiki.libvirt.org/page/Migration_fails_because_disk_image_cannot_be_found
> 
> Regards, Paul Boven.
> -- 
> Paul Boven <> boven at jive.nl> > +31 (0)521-596547
> Unix/Linux/Networking specialist
> Joint Institute for VLBI in Europe - www.jive.nl
> VLBI - It's a fringe science
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users




-- 


  
         
    
        
      
        
          
            Bernhard Glomm

            IT Administration


          
            
                  Phone:
                
                
                  +49 (30) 86880 134
                
              
                  Fax:
                
                
                  +49 (30) 86880 100
                
              
                  Skype:
                
                
                  bernhard.glomm.ecologic
                
              
        
      
    
            
            
            
            
            
            
            
            
      
    
        
          Ecologic Institut gemeinnützige GmbH | Pfalzburger Str. 43/44 | 10717 Berlin | Germany

          GF: R. Andreas Kraemer | AG: Charlottenburg HRB 57947 | USt/VAT-IdNr.: DE811963464

          Ecologic™ is a Trade Mark (TM) of Ecologic Institut gemeinnützige GmbH
        
      
    
         

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140128/7ca3c3a5/attachment.html>


More information about the Gluster-users mailing list