天天看点

GlusterFS cann't active in oVirt because gluster's brick directory & subd's permission problem not vdsm.kvm 755

今天在ovirt中使用glusterfs时, 发现一点问题, gfs deactive后就无法激活了, 查看日志.

问题出在权限上面.

查看brick的目录权限, 两个brick节点的权限都变成了root:root. 600.

drw-------  4 root root       4096 aug  6 17:03 gfs_b1

而ovirt要求的目录是vdsm:kvm的, 不管是nfs还是glusterfs. 都需要这样的owner和group.

查看 http://wiki.ovirt.org/features/glusterfs_storage_domain

指出, 使用glusterfs, 必须修改volume的权限.

修改gid, uid和server.allow-insecure.

修改所有 brick 目录的mod

现在可以正常的激活glusterfs domain了.

[参考]

1. http://blog.gluster.org/category/glusterfs-openstack-cinder/

2. http://wiki.ovirt.org/features/glusterfs_storage_domain

3. http://www.middleswarth.net/2012/07/04/installing-ovirt-3-1-and-glusterfs-using-either-nfs-or-posix-native-file-system/

继续阅读