[Gluster-users] qemu-kvm and gluster 3.7.9- Permission denied

Dmitry Melekhov dm at belkam.com
Wed Mar 30 05:19:35 UTC 2016


I'm playing with with gluster , so I'm newbie , :-) and trying to use it 
for kvm.

I have two hosts, one is Centos 7 - vmhost1 , another RHEL 6.7 - roxar.

I also have two Centos7 lxc containers on vmhost1 each has gluster 3.7.9 

I created VM and it works OK on Centos 7, but on RHEL6 I get i/o error 
very quickly:

[2016-03-30 04:51:32.321811] I [MSGID: 115029] 
[server-handshake.c:612:server_setvolume] 0-rep-volume-server: accepted 
client from 
rsion: 3.5.2)
[2016-03-30 04:51:32.342647] I [dict.c:473:dict_get] 
(-->/lib64/libglusterfs.so.0(default_getxattr_cbk+0xac) [0x7f22d5709c2c] 
f22cc407857] -->/lib64/libglusterfs.so.0(dict_get+0xac) [0x7f22d56fa06c] 
) 0-dict: !this || key=() [Invalid argument]
[2016-03-30 04:51:47.226529] E [MSGID: 115070] 
[server-rpc-fops.c:1558:server_open_cbk] 0-rep-volume-server: 1836: OPEN 
/vm.img (ebd2ed77-8caa-467c-8e8a-0b0ad575a7f5) ==> (Permission denied) 
[Permission denied]

Image owner was root, I mounted glusterfs and changed owner to qemu, now 
everything is OK,
but it is very interesting is there better/right way to fix this?
And why there is difference between RH versions?

Thank you!

More information about the Gluster-users mailing list