Dmitry Melekhov
2016-Mar-30 05:19 UTC
[Gluster-users] qemu-kvm 0.12.1.2 and gluster 3.7.9- Permission denied
Hello! 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 installed. 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 roxar.p98.belkam.com-24191-2016/03/30-04:51:32:294822-rep-volume-client-0-0-0 (ve 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] -->/usr/lib64/glusterfs/3.7.9/xlator/features/marker.so(marker_getxattr_cbk+0xa7) [0x7 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!
Dmitry Melekhov
2016-Mar-30 07:28 UTC
[Gluster-users] qemu-kvm 0.12.1.2 and gluster 3.7.9- Permission denied
30.03.2016 09:19, Dmitry Melekhov ?????:> Hello! > > 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 installed. > > 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 > roxar.p98.belkam.com-24191-2016/03/30-04:51:32:294822-rep-volume-client-0-0-0 > (ve > 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] > -->/usr/lib64/glusterfs/3.7.9/xlator/features/marker.so(marker_getxattr_cbk+0xa7) > [0x7 > 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! >ooh, now I can't start VM on Centos7 host: libvirtError: Cannot access storage file '/vm.img' (as uid:107, gid:107): And can't change owner from Centos 7 host using fuse: chown qemu:qemu vm.img chown: changing ownership of 'vm.img': Input/output error Although I can do this from RHEL 6 host: [root at roxar replica]# chown qemu:qemu vm.img [root at roxar replica]# why? Is it possible to access glusterfs volume by different client versions?