johan.smits
08/10/09, 09:55
Ik heb 2 servers als server client draaien met gluster.
Dit zijn webservers. (Debian Lenny)
Nu heb ik het probleem dat wanneer ik via samba de share open waar gluster share benader krijg ik soms de melding dat het bestand gelocked is. Ook schrijft het systeem soms maar 0byte weg en kan soms niet de totale file lezen.
Op het systeem zelf werkt het wel goed. Moet ik op samba locking uitzetten ofzo of welke settings moet ik hiervoor gebruiken?
Ik gebruik deze versies en configuraties:
glusterfs 2.0.6 built on Oct 2 2009 19:02:10
Repository revision: v2.0.6
volume web02
type protocol/client
option transport-type tcp/client
option remote-host web02.backdoor
option remote-subvolume brick
end-volume
volume web03
type protocol/client
option transport-type tcp/client
option remote-host web03.backdoor
option remote-subvolume brick
end-volume
volume replicate
type cluster/replicate
subvolumes web02 web03
end-volume
volume writebehind
type performance/write-behind
option window-size 1MB
subvolumes replicate
end-volume
volume cache
type performance/io-cache
option cache-size 512MB
subvolumes writebehind
end-volume
volume posix
type storage/posix
option directory /data
end-volume
volume locks
type features/locks
subvolumes posix
end-volume
volume brick
type performance/io-threads
option thread-count 8
subvolumes locks
end-volume
volume server
type protocol/server
option transport-type tcp/server
option auth.addr.brick.allow *
subvolumes brick
end-volume
Samba: Version 3.2.5
[http]
comment = Web Folder
path = /dataGFS
guest ok = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = www-data
force group = www-data
Dit zijn webservers. (Debian Lenny)
Nu heb ik het probleem dat wanneer ik via samba de share open waar gluster share benader krijg ik soms de melding dat het bestand gelocked is. Ook schrijft het systeem soms maar 0byte weg en kan soms niet de totale file lezen.
Op het systeem zelf werkt het wel goed. Moet ik op samba locking uitzetten ofzo of welke settings moet ik hiervoor gebruiken?
Ik gebruik deze versies en configuraties:
glusterfs 2.0.6 built on Oct 2 2009 19:02:10
Repository revision: v2.0.6
volume web02
type protocol/client
option transport-type tcp/client
option remote-host web02.backdoor
option remote-subvolume brick
end-volume
volume web03
type protocol/client
option transport-type tcp/client
option remote-host web03.backdoor
option remote-subvolume brick
end-volume
volume replicate
type cluster/replicate
subvolumes web02 web03
end-volume
volume writebehind
type performance/write-behind
option window-size 1MB
subvolumes replicate
end-volume
volume cache
type performance/io-cache
option cache-size 512MB
subvolumes writebehind
end-volume
volume posix
type storage/posix
option directory /data
end-volume
volume locks
type features/locks
subvolumes posix
end-volume
volume brick
type performance/io-threads
option thread-count 8
subvolumes locks
end-volume
volume server
type protocol/server
option transport-type tcp/server
option auth.addr.brick.allow *
subvolumes brick
end-volume
Samba: Version 3.2.5
[http]
comment = Web Folder
path = /dataGFS
guest ok = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = www-data
force group = www-data