[Gluster-users] Bricks not rebalancing

James Kahn jkahn at idea11.com.au
Mon Aug 27 07:30:08 UTC 2012


Thanks for the info Shishir.

What algorithm does Gluster use to hash files to bricks?
Will files in one directory be mostly distributed amongst multiple bricks?

Most of our files are named with a 37 character GUID, if that makes a
difference.




-----Original Message-----
From: Shishir Gowda <sgowda at redhat.com>
Date: Monday, 27 August 2012 4:30 PM
To: James Kahn <jkahn at idea11.com.au>
Cc: "gluster-users at gluster.org" <gluster-users at gluster.org>
Subject: Re: [Gluster-users] Bricks not rebalancing

>Hi James,
>
>Distribute hashes files based on the names, and not file sizes.
>
>It looks like in your case, most of the files hash to the same brick.
>
>Rebalance would not help you, as rebalance only moves files from
>non-hashed subvolume to hashed subvolumes.
>
>You might try to add bricks, and issue rebalance, to better distribute
>your data.
>
>With regards,
>Shishir
>
>----- Original Message -----
>From: "James Kahn" <jkahn at idea11.com.au>
>To: gluster-users at gluster.org
>Sent: Saturday, August 25, 2012 2:19:32 PM
>Subject: [Gluster-users] Bricks not rebalancing
>
>I have a two brick distributed volume (single host) that has become
>significantly lopsided between bricks. One brick has 1.8TB allocated and
>the other only has 500GB allocated. Most of the files are very large.
>
>I'm trying to rebalance between bricks and gluster isn't doing anything.
>
>Any ideas on how to fix this?
>
>gluster> volume status storage1 detail
>Status of volume: storage1
>--------------------------------------------------------------------------
>-
>---
>Brick                : Brick abc2.xx.com:/exports/exp1
>Port                 : 24013
>Online               : Y
>Pid                  : 1553
>File System          : xfs
>Device               : /dev/xvdb1
>Mount Options        : rw,inode64
>Inode Size           : 256
>Disk Space Free      : 179.6GB
>Total Disk Space     : 2.0TB
>Inode Count          : 419429824
>Free Inodes          : 419428942
>--------------------------------------------------------------------------
>-
>---
>Brick                : Brick abc2.xx:/exports/exp2
>Port                 : 24014
>Online               : Y
>Pid                  : 1559
>File System          : xfs
>Device               : /dev/xvdc1
>Mount Options        : rw,inode64
>Inode Size           : 256
>Disk Space Free      : 1.5TB
>Total Disk Space     : 2.0TB
>Inode Count          : 419429824
>Free Inodes          : 419429032
> 
>gluster> volume rebalance storage1 start
>Starting rebalance on volume storage1 has been successful
>gluster> volume rebalance storage1 status
>                                    Node Rebalanced-files          size
>   scanned      failures         status
>                               ---------      -----------   -----------
>-----------   -----------   ------------
>                               localhost                0            0
>     262            0      completed
>
>
>Thanks.
>
>
>_______________________________________________
>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