[Gluster-users] How can I use feature/quota?

2010-08-28 Thread galaxmen

I have 10 GlusterServer, each server 1.5TB, now I add more one GlusterServer
But how to redistribute data, to make data spread the same on all server?

To do this work, I intend limit disk size of 10 first GluterFS, so, new 
data will only fill on 11s Server, but I error:

/syntax error: line 8 (volume 'quota'): ";"
allowed tokens are 'volume', 'type', 'subvolumes', 'option', 
'end-volume'error in parsing volume file /etc/glfs/userdata0.vol

exiting
/

This my config of GLFS Server
---
volume posix
 type storage/posix
 option directory /mnt/sdb
end-volume

volume quota
   type features/quota
   option min-free-disk-limit 50  ; percent of filesystem usage limit
#option refresh-interval 20s; 20s is the default
#option disk-usage-limit 500GB
   subvolumes posix
end-volume

volume locks
 type features/locks
 subvolumes quota
end-volume

volume brick
 type performance/io-threads
 option thread-count 32
   option cache-size 1024MB
 subvolumes locks
end-volume

volume server
 type protocol/server
 option transport-type tcp
 option listen-port 2
 option auth.addr.brick.allow *
 subvolumes brick
end-volume
---
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] How to know (IP of GlusterServer) store a File in a GlusterFS System?

2010-07-26 Thread galaxmen

Thank you, but I have error,
After change code like your guide:
(REPLACE:
ret = dict_set_static_ptr 
(dict,"trusted.glusterfs.location",priv->hostname); 
BY:

ret = dict_set_str (dict, "trusted.glusterfs.location",  priv->hostname);)

I rebuild (make and make install, then restart gluster)
The result changed, but I't a strange string, not the Hostname:

[r...@test00/]# getfattr -n trusted.glusterfs.location /mnt/glfs/file1
getfattr: Removing leading '/' from absolute path names
# file: mnt/glfs/file1
trusted.glusterfs.location=*0sdGVzdDAxAA==*

While client is test00, servername is test01
--> Any thing error?


Amar Tumballi wrote:

Please apply this patch, and you should be able to get info of hostname:

diff --git a/xlators/storage/posix/src/posix.c
b/xlators/storage/posix/src/posix.c
index 0b7ab19..3275542 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -3232,9 +3232,9 @@ posix_getxattr (call_frame_t *frame, xlator_t *this,

if (loc->inode && S_ISREG (loc->inode->st_mode) && name &&
(strcmp (name, "trusted.glusterfs.location") == 0)) {
-ret = dict_set_static_ptr (dict,
-   "trusted.glusterfs.location",
-   priv->hostname);
+ret = dict_set_str (dict,
+"trusted.glusterfs.location",
+priv->hostname);
 if (ret < 0) {
 gf_log (this->name, GF_LOG_WARNING,
 "could not set hostname (%s) in
dictionary",





On Tue, Jul 13, 2010 at 4:31 AM, Jeff Anderson-Lee
wrote:

  

On 7/9/2010 2:00 AM, Amar Tumballi wrote:



As of now (in 3.0.x releases) there is no proper solution.. but you can
try

bash# getfattr -n trusted.glusterfs.location $filename

which gives the hostname of the machine which contains it.. (it gives only
one output even if you are using 'replicate')


  

I tried this and got nothing.  In fact "getfattr -d somefilename" returned
nothing as well.

Jeff Anderson-Lee

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




  



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


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


Re: [Gluster-users] How to know (IP of GlusterServer) store a File in a GlusterFS System?

2010-07-11 Thread galaxmen

Thank you!

But I'm using this command on client, it not show IP of file?

[r...@sv1 ~]# getfattr -n trusted.glusterfs.location /mnt/glfs/testnew/f1
getfattr: Removing leading '/' from absolute path names
# file: mnt/glfs/testnew/f1
trusted.glusterfs.location
[r...@sv1 ~]#

Have not any IP address?

I'm running distribute 10 server, 1 client!


Amar Tumballi wrote:

As of now (in 3.0.x releases) there is no proper solution.. but you can try

bash# getfattr -n trusted.glusterfs.location $filename

which gives the hostname of the machine which contains it.. (it gives only
one output even if you are using 'replicate')

Regards,
Amar

On Fri, Jul 9, 2010 at 1:57 PM, galaxmen  wrote:

  

Help me please!!!
Thank you!


galaxmen wrote:



I have a question:
GlusterServers store files, and GlusterClient get files from them

So, Have any API to know IP of GlusterServer store a particular file?

Thank you very much!
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


  

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




  



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


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


Re: [Gluster-users] How to know (IP of GlusterServer) store a File in a GlusterFS System?

2010-07-09 Thread galaxmen

Help me please!!!
Thank you!

galaxmen wrote:

I have a question:
GlusterServers store files, and GlusterClient get files from them

So, Have any API to know IP of GlusterServer store a particular file?

Thank you very much!
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users



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


[Gluster-users] How to know (IP of GlusterServer) store a File in a GlusterFS System?

2010-07-05 Thread galaxmen

I have a question:
GlusterServers store files, and GlusterClient get files from them

So, Have any API to know IP of GlusterServer store a particular file?

Thank you very much!
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


[Gluster-users] How about multi Gluster Server on a Physical Server?

2010-06-29 Thread galaxmen

I want to deploy 8 Gluster server on one Physical server,

My reason:
My servers have 8 HDDs, I not run RAID because I want to gain max IO of 
all HDD. (RAID 5, RAID6 only faster (IO) 2 time compare with single HDD)


So I deployed 8 Gluster Server on single Physical server, each 
glusterserver mount with one HDD

1 client connected to 8 Gserver (with different ports).
And all seem run well. (config: distribute, round-robin)
I see Total-Performance is much better than single gluster Server/Single 
physical server with RAID5


I want to ask: if with this way is NORMAIL config (not abnormal ?), and 
have not any warning than single Gluster server/single Physical Server?
(I also replicate data each server to protect data, and in the future, 
my system will extend, with more physical server, more client... )


Thanks for your help!
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users