Hi,
I've tried to reproduce this problem, but I couldn't. It works in my setup,
which is 2 gluster nodes running CentOS 6 and using a distributed volume,
here are the packages and settings:
[root@c6glfs01 ~]# rpm -qa "gluster*"
glusterfs-cli-3.6.2-1.el6.x86_64
glusterfs-libs-3.6.2-1.el6.x86_64
glusterfs-3.6.2-1.el6.x86_64
glusterfs-fuse-3.6.2-1.el6.x86_64
glusterfs-server-3.6.2-1.el6.x86_64
glusterfs-api-3.6.2-1.el6.x86_64
glusterfs-geo-replication-3.6.2-1.el6.x86_64
[root@c6glfs01 ~]#
[root@c6glfs01 ~]# gluster volume info distvol1
Volume Name: distvol1
Type: Distribute
Volume ID: 00227413-63f3-48c3-8ca0-cc3e4fcb54f8
Status: Started
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: c6glfs01.stephand.kvm:/export/vdc1/brick
Brick2: c6glfs02.stephand.kvm:/export/vdc1/brick
Options Reconfigured:
server.allow-insecure: on
[root@c6glfs01 ~]#
[root@c6glfs01 ~]# cat /etc/glusterfs/glusterd.vol
volume management
type mgmt/glusterd
option working-directory /var/lib/glusterd
option transport-type socket,rdma
option transport.socket.keepalive-time 10
option transport.socket.keepalive-interval 2
option transport.socket.read-fail-log off
option ping-timeout 30
# option base-port 49152
option rpc-auth-allow-insecure on
end-volume
It's exactly the same on the second gluster node.
The system running bareos-sd is RHEL 7, packages and config:
[root@rh7lab01 ~]# rpm -qa "bareos-*"
bareos-storage-14.2.2-46.1.el7.x86_64
bareos-common-14.2.2-46.1.el7.x86_64
bareos-storage-glusterfs-14.2.2-46.1.el7.x86_64
[root@rh7lab01 ~]#
[root@rh7lab01 ~]# rpm -qa "gluster*"
glusterfs-3.6.0.53-1.el7.x86_64
glusterfs-api-3.6.0.53-1.el7.x86_64
glusterfs-libs-3.6.0.53-1.el7.x86_64
glusterfs-fuse-3.6.0.53-1.el7.x86_64
[root@rh7lab01 ~]#
[root@rh7lab01 ~]# cat /etc/bareos/bareos-sd.d/device-gluster.conf
#
# Preparations:
#
# include this configuration file in bareos-sd.conf by
# @/etc/bareos/bareos-sd.d/device-gluster.conf
#
Device {
Name = GlusterStRHEL7
Archive Device =
gluster://c6glfs01.stephand.kvm/distvol1/rh7lab01/bareos-storage
Device Type = gfapi
Media Type = GlusterFile
Label Media = yes
Random Access = yes
Automatic Mount = yes
Removable Media = no
Always Open = no
}
To set/check ownership/permission I use a fuse mount on the same systems that
runs bareos-sd, the numeric UID/GID of the bareos user must match:
[root@rh7lab01 ~]# mount -t glusterfs c6glfs01.stephand.kvm:/distvol1 /mnt
[root@rh7lab01 ~]# id bareos
uid=998(bareos) gid=997(bareos) groups=997(bareos),6(disk),30(tape)
[root@rh7lab01 ~]#
[root@rh7lab01 ~]# ls -lad /mnt/rh7lab01
drwxr-xr-x. 3 root root 54 Apr 28 09:29 /mnt/rh7lab01
[root@rh7lab01 ~]# ls -lad /mnt/rh7lab01/bareos-storage
drwxr-xr-x. 2 bareos bareos 72 Apr 28 19:07 /mnt/rh7lab01/bareos-storage
[root@rh7lab01 ~]# ls -ladn /mnt/rh7lab01/bareos-storage
drwxr-xr-x. 2 998 997 72 Apr 28 19:07 /mnt/rh7lab01/bareos-storage
[root@rh7lab01 ~]# ls -la /mnt/rh7lab01/bareos-storage/
total 20477
drwxr-xr-x. 2 bareos bareos 72 Apr 28 19:07 .
drwxr-xr-x. 3 root root 54 Apr 28 09:29 ..
-rw-r-----. 1 bareos bareos 10451170 Apr 28 19:07 SmallVol-0010
-rw-r-----. 1 bareos bareos 10451170 Apr 28 19:07 SmallVol-0011
-rw-r-----. 1 bareos bareos 65282 Apr 28 19:07 SmallVol-0012
[root@rh7lab01 ~]# ls -lan /mnt/rh7lab01/bareos-storage/
total 20477
drwxr-xr-x. 2 998 997 72 Apr 28 19:07 .
drwxr-xr-x. 3 0 0 54 Apr 28 09:29 ..
-rw-r-----. 1 998 997 10451170 Apr 28 19:07 SmallVol-0010
-rw-r-----. 1 998 997 10451170 Apr 28 19:07 SmallVol-0011
-rw-r-----. 1 998 997 65282 Apr 28 19:07 SmallVol-0012
[root@rh7lab01 ~]# umount /mnt
Here, we also see how the files were created when the bareos-sd
is running as user bareos.
On 04/27/2015 03:12 PM, Taylor wrote:
> Yes, I installed the packages on the gluster server nodes from
> http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/CentOS/glusterfs-epel.repo.
> The Gluster nodes are Centos 6.6.
>
> They are all reporting as 3.6.2-1.el6
>
> The Bareos server is running RHEL 7. Yes its using packages from bareos,
> They all report 14.2.2-46.1.el7.
So this RHEL 7 server is running both bareos-dir and bareos-sd? Which versions
are on that system:
rpm -qa "bareos-storage*"; rpm -qa "gluster*"
>
> Gluster API on the client I was testing on was 3.6.0.29-2.el6 on a Centos 6.6
> machine.
No Gluster API is needed on a client machine beeing backed up, the only
relevant part
here is the system running bareos-sd
Regards
--
Stephan Dühr [email protected]
Bareos GmbH & Co. KG Phone: +49 221-630693-90
http://www.bareos.com
Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf,
J. Steffens, Philipp Storz, M. v. Wieringen
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.