[Gluster-users] Question of min-free-disk
eagleeyes
eagleeyes at 126.com
Thu Jul 30 02:16:55 UTC 2009
But i configure was
volume brick1
type storage/posix # POSIX FS translator
option directory /home/data # Export this directory
end-volume
volume brick2
type storage/posix # POSIX FS translator
option directory /home/data2 # Export this directory
end-volume
volume server
type protocol/server
option transport-type tcp
option transport.socket.bind-address 172.20.92.95 # Default is to listen on all interfaces
option transport.socket.listen-port 6996 # Default is 6996
subvolumes brick1 brick2
option auth.addr.brick1.allow * # Allow access to "brick" volume
option auth.addr.brick2.allow * # Allow access to "brick" volume
end-volume
client configur was:
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
It all in the same disk .
2009-07-30
eagleeyes
发件人: Raghavendra G
发送时间: 2009-07-30 01:55:48
收件人: eagleeyes
抄送: gluster-users
主题: Re: [Gluster-users] Question of min-free-disk
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