PDA

View Full Version : [Solved] Algorithm for gmirror


dennylin93
November 29th, 2009, 10:57
Hi, I'm planning to set up RAID 1 with gmirror (2 SATA disks). Which algorithm should I use? The Handbook uses round-robin, but the man page says that split is the default algorithm. Are there any pros and cons that I should consider beforehand?

aragon
November 29th, 2009, 18:02
Apparently gmirror's balance code is pretty limited, and none of the algorithms are vastly better than each other. Ivan Voras and others have written some interesting patches, but none have made it into the tree yet, AFAIK.

Take a look at this: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/113885

BTW, I use the prefer algorithm.

dennylin93
November 30th, 2009, 12:12
Thanks. I guess I'll stick to the Handbook then.