Re: [Gluster-users] vfs_gluster for samba ?

2018-09-19 Thread Laurent Bardi
Le 19/09/2018 à 09:24, Anoop C S a écrit :
> On Wed, 2018-09-19 at 08:25 +0200, Laurent Bardi wrote:
>> Hi,
>>
>> Sorry if it has bee discussed, but i ve spend more than 2 hours on
>> goolgle to find answers, and nothing.
>>
>> i am on debian stretch and i use gluster from  your native repos.
>>
>> gluster version 4.1.4, samba version 4.5.12+dfsg-2+deb9u3 (the one from
>> native debian)
>>
>> The gluster vfs is not compiled by default with debian , everytime, i
>> had to download the deb src and recompile it(apt-get source samba, then
>> debuild -us -uc)
>>
>> after that the new samba-vfs-modulesxxx.deb contains the gluster_vfs.so.
>>
>> A) it doesnt work anymore (no glusterfs.so after rebuilding packages). I
>> ve read the log of the configure script it contains "gluster detected
>> api version 4" ?
> Further down the line were you able to read the logs to find those lines 
> which compiles
> vfs_glusterfs.c source?

in configure  :
Checking for glusterfs-api >=
4 : 16:07:16
runner /usr/bin/pkg-config "glusterfs-api >= 4" --cflags --libs
glusterfs-api
yes
Checking for header
api/glfs.h  :
16:07:16 runner /usr/bin/gcc -g -O2
-fdebug-prefix-map=/usr/local/archives/compile/samba/samba-4.5.12+dfsg=.
-fstack-protector-strong -Wformat -Werror=format-security -MD
-Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include/uuid
-D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1
-D_XOPEN_SOURCE_EXTENDED=1 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64
-DUSE_POSIX_ACLS=1 ../test.c -c -o default/test_1.o
no
Checking for library
gfapi  :
16:07:16 runner /usr/bin/gcc -g -O2
-fdebug-prefix-map=/usr/local/archives/compile/samba/samba-4.5.12+dfsg=.
-fstack-protector-strong -Wformat -Werror=format-security -MD -fPIC
-DPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include
-I/usr/include/uuid -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1
-D_XOPEN_SOURCE_EXTENDED=1 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64
-DUSE_POSIX_ACLS=1 ../test.c -c -o default/test_1.o
16:07:16 runner /usr/bin/gcc default/test_1.o -o
/usr/local/archives/compile/samba/samba-4.5.12+dfsg/bin/.conf_check_0/testbuild/default/libtestprog.so
-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -lpthread -Wl,-no-undefined
-Wl,--export-dynamic -shared -L/usr/local/lib -Wl,-Bdynamic -lgfapi
-lacl -lglusterfs -lgfrpc -lgfxdr -luuid
yes

it seems that glfs.h not found , but an  apt-file search glfs.h find it
at  : glusterfs-common: /usr/include/glusterfs/api/glfs.h

after that there is only reference to the gluster_vfs manpage , it does
not seems to compile anything.

I suspect a problem with samba package ? (in that case i m asking the
wrong list :-})

Many thanks  for your answers.
PS: i can send you the log , i dont want to bother the list.

>
>> B) in the doc i don t see anymore the use of
>>
>>  vfs objects = glusterfs
>> glusterfs:volfile_server = 
>> glusterfs:volume = 
>> glusterfs:logfile = 
>>
>> Is there any change i ve missed ?
> Hm.. That's interesting. I will get the documentation fixed to reflect the 
> usage of VFS module for
> GlusterFS with Samba.
>
>

-- 
Laurent BARDI /  RSI CNRS-IPBS / CRSSI DR14
INSTITUT  de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE
Tel : 05-61-17-59-05 http://www.ipbs.fr/
GSM : 06-23-46-06-28Laurent.BardiATipbs.fr
CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE
...
J'étais indéniablement misanthrope.
Je voulus traverser à gué un marigot infesté d'imbéciles. 
Quand j'atteignis l'autre rive, j'étais devenu philanthrope.

___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

[Gluster-users] vfs_gluster for samba ?

2018-09-19 Thread Laurent Bardi
Hi,

Sorry if it has bee discussed, but i ve spend more than 2 hours on
goolgle to find answers, and nothing.

i am on debian stretch and i use gluster from  your native repos.

gluster version 4.1.4, samba version 4.5.12+dfsg-2+deb9u3 (the one from
native debian)

The gluster vfs is not compiled by default with debian , everytime, i
had to download the deb src and recompile it(apt-get source samba, then
debuild -us -uc)

after that the new samba-vfs-modulesxxx.deb contains the gluster_vfs.so.

A) it doesnt work anymore (no glusterfs.so after rebuilding packages). I
ve read the log of the configure script it contains "gluster detected
api version 4" ?

B) in the doc i don t see anymore the use of

 vfs objects = glusterfs
glusterfs:volfile_server = 
glusterfs:volume = 
glusterfs:logfile = 

Is there any change i ve missed ?

-- 
Laurent BARDI /  RSI CNRS-IPBS / CRSSI DR14
INSTITUT  de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE
Tel : 05-61-17-59-05 http://www.ipbs.fr/
GSM : 06-23-46-06-28Laurent.BardiATipbs.fr
CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE
...
J'étais indéniablement misanthrope.
Je voulus traverser à gué un marigot infesté d'imbéciles. 
Quand j'atteignis l'autre rive, j'étais devenu philanthrope.

___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

[Gluster-users] plan to use as a nas for homedirs

2017-05-10 Thread Laurent Bardi

Hi,

I have 2x (40TB DAS attached  to a machine running ESX (64Go RAM)). I 
plan to use them as an active-active cluster with gluster + ctdb 
(serving only smb no nfs). The goal is to store homedirs and profiles  
for all my client machines (~ 150 win7 client).


Any advice are welcome !

-Should i use only one VM with gluster + ctdb on each esx , each VM 
accessing a raw disk of 40TB


or

-Should i use 4 or 8 VM on each esx with 4x10TB or 8x5TB raw disks (each 
VM driving a single rawdisk)


I there anybody on the list who already achieve that ?

Many thanks in advance.


--
Laurent BARDI /  RSI CNRS-IPBS / CRSSI DR14
INSTITUT  de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE
Tel : 05-61-17-59-05http://www.ipbs.fr/
GSM : 06-23-46-06-28Laurent.BardiATipbs.fr
CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE
...
J'étais indéniablement misanthrope.
Je voulus traverser à gué un marigot infesté d'imbéciles.
Quand j'atteignis l'autre rive, j'étais devenu philanthrope.

___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] root-squash permission denied on rename

2016-10-04 Thread Laurent Bardi
Hi,

i ve got same problem here with debian jessie up to date and last
version (gluster 3.8.4-1)

One possible Hack : force "other" with right "x" ( chmod -R o+x ; and
play with setfacl o:x).

Now for me it works.
The only trick is that anybody can cd to a directory they already know
without having any right... nevertheless  they can read/write to it!

If you want me to explain more contact me.


Le 04/10/2016 à 14:27, Michael Seidel a écrit :
> Hi,
>
> I've been hit by the same issue on SL 7.2 with the same
> not-so-satisfying solution to keep root squashing off for the time
> being. Did you find any solution or progress to this problem?
>
> OT: You mentioned running 3.7.10 on SL 6.7. Which repo did you install
> from, or was it self-compiled? I only get 3.7.1 from the official SL
> repos.
>
> Cheers,
> - Michael
> Helmholtz Zentrum Muenchen
> Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
> Ingolstaedter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de
> Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
> Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Alfons Enhsen
> Registergericht: Amtsgericht Muenchen HRB 6466
> USt-IdNr: DE 129521671
>
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users


-- 
Laurent BARDI /  RSI CNRS-IPBS / CRSSI DR14
INSTITUT  de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE
Tel : 05-61-17-59-05http://www.ipbs.fr/
Fax : 05-61-17-59-94Laurent.BardiATipbs.fr
CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE
...
J'étais indéniablement misanthrope.
Je voulus traverser à gué un marigot infesté d'imbéciles. 
Quand j'atteignis l'autre rive, j'étais devenu philanthrope.

___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users


[Gluster-users] root_squash problem

2016-09-12 Thread Laurent Bardi
Hi,

i ve setup a gluster mirror (2 machine runing debian jessie, and gluster
rebuild from source 3.8.3-1).

the undelying brick is on xfs filesystem (i ve mounted it with noattr2)

i ve directories in gluster vols with posix acl : fine

i share them with the native gluster NFS : fine if i set no_root_squash.

if i set root squash : the nfs.log says :

[2016-09-12 06:50:30.841786] W [MSGID: 114031]
[client-rpc-fops.c:2930:client3_3_lookup_cbk]
0-vnas_gluster_users-client-1: remote operation failed. Path:
/tetutetu1234
(----) [Permission non accordée]
[2016-09-12 06:50:30.842721] W [MSGID: 114031]
[client-rpc-fops.c:2930:client3_3_lookup_cbk]
0-vnas_gluster_users-client-0: remote operation failed. Path:
/tetutetu1234
(----) [Permission non accordée]
[2016-09-12 06:50:30.842793] E [MSGID: 112198]
[nfs3-helpers.c:3647:nfs3_fh_resolve_entry_lookup_cbk] 0-nfs-nfsv3:
Lookup failed: /tetutetu1234:
Permission non accordée [Permission non accordée]
[2016-09-12 06:50:30.842825] E [MSGID: 112069]
[nfs3.c:2838:nfs3_mkdir_resume] 0-nfs-nfsv3: Permission non accordée:
(10.1.1.16:1003) vnas_gluster_users : a52bb061-9e2d-4603-8471-454b972fff04

I ve tries many things (such as invalidate glusternfs, replace it with
kernel-nfs and it works). But  i need to use the gluster nfs as i want
to use CTDB (from samba) too , in order to build a real active/active
data cluster.

Moreover i need to use root_squashing too because it will be the
fileserver for all machine in the institute, so if someone with a linux
laptop and root access can mount the nfs gluster  homedirs it will have
acces to all homedirs : no security...

I ve not took the option nfs-ganesha as : i need to have NFS v3 with
posix acl (old machines such as irix)


A) Is there a way to increase the gluster nfs log verbosity ?

b) i ve in the nfs.log a lot of :
[2016-09-12 06:56:59.775860] E [MSGID: 112195]
[nfs-fops.c:84:nfs_fix_groups] 0-nfs-server: getpwuid_r(118) found nothing
The message "E [MSGID: 112195] [nfs-fops.c:84:nfs_fix_groups]
0-nfs-server: getpwuid_r(118) found nothing" repeated 74 times between
[2016-09-12 06:56:59.775860] and [2016-09-12 06:57:16.373337]

uid=118 is snmp ?Should i worry about it ?

C) Is there another solution with this damned root_squash ?

D) Am I totally insane to try this :): ?

Many thanks in advance


-- 
Laurent BARDI /  RSI CNRS-IPBS / CRSSI DR14
INSTITUT  de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE
Tel : 05-61-17-59-05http://www.ipbs.fr/
Fax : 05-61-17-59-94Laurent.BardiATipbs.fr
CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE
...
J'étais indéniablement misanthrope.
Je voulus traverser à gué un marigot infesté d'imbéciles. 
Quand j'atteignis l'autre rive, j'étais devenu philanthrope.

___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

[Gluster-users] does root squash works ?

2016-08-17 Thread Laurent Bardi
Hi,

I ve setup a 2 machine gluster system (in "mirror" mode).
The backend filesystem is xfs, i use sssd to query groups/users from and AD.

Everything is ok if i desactivate the root squash, but if i activate it : 
-for a given user in ith homedir under gluster i can create a file, but
not a dir ?!
-when i log via ssh it complains about xauthority timeout ?

I do not understand where is my mistake ?

-- 
Laurent BARDI /  RSI CNRS-IPBS / CRSSI DR14
INSTITUT  de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE
Tel : 05-61-17-59-05http://www.ipbs.fr/
Fax : 05-61-17-59-94Laurent.BardiATipbs.fr
CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE
...
J'étais indéniablement misanthrope.
Je voulus traverser à gué un marigot infesté d'imbéciles. 
Quand j'atteignis l'autre rive, j'étais devenu philanthrope.

___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users