From: Anh K. H. <ky...@vi...> - 2011-03-08 09:22:06
|
On Fri, 4 Mar 2011 10:42:56 -0700 Thomas S Hatch <tha...@gm...> wrote: > I am currently migrating my moosefs environment into a new setup, > new OS, new partitioning, changing out disks for larger disks etc. > > So I need to be able to take a chunkserver down, delete the chunks > on it, and then have it rebalance as quickly as possible back into > the overall moosefs cluster, what is the fastest way to do this? > Should I make the chunks for removal before taking them offline? > Will that speed up the balancing? I think the safest way is to mark all disks on the chunk as *obsolete*, and increase the values of "CHUNKS_WRITE_REP_LIMIT" and "CHUNKS_READ_REP_LIMIT" in the file "mfsmaster.cfg" (the master and the chunk are required to restart; the number depends on your network and your file system performance.) My practice: I have two chunk servers and goal 2 for all files. I replaced a chunk by shutting it down. It's unsafe, but it works for me as my files are local :) If number of chunks is greater than your maximum goal, it's safe to shut down the chunk server that you want to replace (IMHO). Regards, -- Anh Ky Huynh @ UTC+7 Registered Linux User #392115 |