Moore, Michael
2010-Jul-28 16:07 UTC
[Gluster-users] Adding volumes - How redistribute existing data
Hi, ? I am trying to add several new backend volumes to an existing GlusterFS setup.? I am running GlusterFS 3.0.4 using the distribute translator. I've tried running the "scale-n-defrag.sh" script to redistribute the data across the additional volumes, but after running for a significant time, nothing was significantly redistributed.? What are the proper steps to do to redistribute the data?? Do I need to clean up the links GlusterFS makes on the backends before I run scale-n-defrag? ? I am running GlusterFS 3.0.4 on top of CentOS 5.4.? This is not running GlusterSP. Thank you. Michael Moore Staff Engineer - Network SOLiD Advanced Research and Collaborations 500 Cummings Center Suite 2400 Beverly, MA 01915 T: 978-232-7886 Michael.Moore at lifetech.com Mike.Moore at appliedbiosystems.com
Amar Tumballi
2010-Jul-29 05:22 UTC
[Gluster-users] Adding volumes - How redistribute existing data
Hi Michael, Sorry for the confusion on 'scale-n-defrag.sh' script. To make sure the script does defrag, you need to have two options set in distribute volume. 'option unhashed-sticky-bit on' 'option lookup-unhashed on' Without these options it will not move the data files in backend. If you don't want to bring down the current mount point to run the defrag, you can have another mount point with changed volume file, and run defrag over it. Let us know if you have any more questions regarding defrag process. Regards, Amar On Wed, Jul 28, 2010 at 9:37 PM, Moore, Michael <Michael.Moore at lifetech.com>wrote:> Hi, > > I am trying to add several new backend volumes to an existing GlusterFS > setup. I am running GlusterFS 3.0.4 using the distribute translator. I've > tried running the "scale-n-defrag.sh" script to redistribute the data across > the additional volumes, but after running for a significant time, nothing > was significantly redistributed. What are the proper steps to do to > redistribute the data? Do I need to clean up the links GlusterFS makes on > the backends before I run scale-n-defrag? > > I am running GlusterFS 3.0.4 on top of CentOS 5.4. This is not running > GlusterSP. >
phil cryer
2010-Aug-06 15:39 UTC
[Gluster-users] Adding volumes - How redistribute existing data
If a drive dies and you want to repopulate its replacement with `ls -R /mnt/glusterfs` is it necessary to have the options set too, or is this specific to the scale-n-defrag.sh script? P On Thu, Jul 29, 2010 at 12:22 AM, Amar Tumballi <amar at gluster.com> wrote:> Hi Michael, > > Sorry for the confusion on 'scale-n-defrag.sh' script. > > To make sure the script does defrag, you need to have two options set in > distribute volume. > > 'option unhashed-sticky-bit on' > 'option lookup-unhashed on' > > Without these options it will not move the data files in backend. If you > don't want to bring down the current mount point to run the defrag, you can > have another mount point with changed volume file, and run defrag over it. > > Let us know if you have any more questions regarding defrag process. > > Regards, > Amar > > On Wed, Jul 28, 2010 at 9:37 PM, Moore, Michael > <Michael.Moore at lifetech.com>wrote: > >> Hi, >> >> ? I am trying to add several new backend volumes to an existing GlusterFS >> setup. ?I am running GlusterFS 3.0.4 using the distribute translator. ?I've >> tried running the "scale-n-defrag.sh" script to redistribute the data across >> the additional volumes, but after running for a significant time, nothing >> was significantly redistributed. ?What are the proper steps to do to >> redistribute the data? ?Do I need to clean up the links GlusterFS makes on >> the backends before I run scale-n-defrag? >> >> ? I am running GlusterFS 3.0.4 on top of CentOS 5.4. ?This is not running >> GlusterSP. >> > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > gluster.org/cgi-bin/mailman/listinfo/gluster-users > >-- philcryer.com