[Gluster-users] Permission Problems

Rafael Pappert rafael at pappert.biz
Mon Apr 19 13:04:34 UTC 2010


Hello List,

first of all my configuration:

I have 2 GlusterPlatform 3.0.3 Servers virtualized on VMWare Esxi 4. With one Volume exported as "raid 1".
I mounted the share with the GlusterClient 3.0.2 with the following /etc/fstab line:

/etc/glusterfs/client.vol /mnt/images   glusterfs       defaults   0       0

The client.vol looks like this:

# auto generated by /usr/bin/glusterfs-volgen (mount.vol)
# Cmd line:
# $ /usr/bin/glusterfs-volgen --conf-dir=/etc/glusterfs --name=images --raid=1 --transport=tcp --port=10002 --auth=192.168.1.168,192.168.1.167,* gluster2:/exports/sda2/images gluster1:/exports/sda2/images

# RAID 1
# TRANSPORT-TYPE tcp
volume gluster2-1
    type protocol/client
    option transport-type tcp
    option remote-host 192.168.1.168
    option transport.socket.nodelay on
    option transport.remote-port 10002
    option remote-subvolume brick1
end-volume

volume gluster1-1
    type protocol/client
    option transport-type tcp
    option remote-host 192.168.1.167
    option transport.socket.nodelay on
    option transport.remote-port 10002
    option remote-subvolume brick1
end-volume

volume mirror-0
    type cluster/replicate
    subvolumes gluster2-1 gluster1-1
end-volume

volume writebehind
    type performance/write-behind
    option cache-size 4MB
    subvolumes mirror-0
end-volume

volume readahead
    type performance/read-ahead
    option page-count 4
    subvolumes writebehind
end-volume

volume iocache
    type performance/io-cache
    option cache-size `grep 'MemTotal' /proc/meminfo  | awk '{print $2 * 0.2 / 1024}' | cut -f1 -d.`MB
    option cache-timeout 1
    subvolumes readahead
end-volume

volume quickread
    type performance/quick-read
    option cache-timeout 1
    option max-file-size 64kB
    subvolumes iocache
end-volume

volume statprefetch
    type performance/stat-prefetch
    subvolumes quickread
end-volume

Everything seems to be ok, but I just can write as root user to the mounted volume. 

I tried to set the rights with the uid, gid options in the fstab. But no success.
Long story short, how can I mount the volume with "user rights".

Best regards,
Rafael.







More information about the Gluster-users mailing list