[Gluster-users] Question of min-free-disk

Raghavendra G raghavendra at gluster.com
Wed Jul 29 17:55:44 UTC 2009


Yes, min-free-disk option to dht works. But please note following points
1. Availability of disk space is checked only during creation of new files. If the disk space availability falls below configured limit, writes to files already on disk will continue without any warnings/errors.
2. If the subvolume on which the file being created (hashed subvolume), has free disk space less than min-free-disk, the file will be created on the node which has maximum free disk among all the children. Note that the file will be created even though this node has less than the min-free-disk space. Please note that, dht does not treat non-availability of min-free-disk of disk space as an error. On the other hand it tries its best to spread the files to other nodes, when the hashed subvolume does not have required space.

regards,
Raghavendra.

----- Original Message -----
From: "eagleeyes" <eagleeyes at 126.com>
To: "gluster-users" <gluster-users at gluster.org>
Sent: Monday, July 27, 2009 9:28:55 AM GMT +04:00 Abu Dhabi / Muscat
Subject: [Gluster-users] Question of min-free-disk

Hi
   Did the option min-free-disk  can work ? Today , i used min-free-disk  of dht ,but it  didn't work .
   i used one server as glusterfsd and glusterfs 
   the  configure of client 
   
volume client1
   type protocol/client
   option transport-type tcp
   option remote-host 172.20.92.95         # IP address of the remote brick
   option transport.socket.remote-port 6996              # default server port is 6996
   option remote-subvolume brick1        # name of the remote volume
end-volume
volume client2
   type protocol/client
   option transport-type tcp
   option remote-host 172.20.92.95         # IP address of the remote brick
   option transport.socket.remote-port 6996              # default server port is 6996
   option remote-subvolume brick2        # name of the remote volume
end-volume
volume dht
  type  cluster/dht
  option min-free-disk 90%
  subvolumes client1 client2 
end-volume


2627:/data # df  -h 
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             9.9G  6.0G  3.5G  64% /
udev                  447M   72K  447M   1% /dev
/dev/sda3              62G  7.6G   51G  13% /home
glusterfs.vol.sample  124G   16G  102G  13% /data   
The data  exceeded  90%, and  I  writed 1G file into data ,had no error happend . Why min-free-disk didn't work  ?

   


2009-07-27 



eagleeyes 

_______________________________________________
Gluster-users mailing list
Gluster-users at gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users



More information about the Gluster-users mailing list